java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.ServiceHistoryServerFileSystemStateStoreService, HistoryServerLeveldbStateStoreService, HistoryServerNullStateStoreService@Private
@Unstable
public abstract class HistoryServerStateStoreService
extends org.apache.hadoop.service.AbstractService
| Modifier and Type | Class | Description |
|---|---|---|
static class |
HistoryServerStateStoreService.HistoryServerState |
| Constructor | Description |
|---|---|
HistoryServerStateStoreService() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract void |
closeStorage() |
Implementation-specific shutdown.
|
protected abstract void |
initStorage(org.apache.hadoop.conf.Configuration conf) |
Implementation-specific initialization.
|
abstract HistoryServerStateStoreService.HistoryServerState |
loadState() |
Load the history server state from the state storage.
|
abstract void |
removeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId) |
Blocking method to remove a delegation token from the state storage.
|
abstract void |
removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key) |
Blocking method to remove a delegation token master key.
|
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
Initialize the state storage
|
void |
serviceStart() |
Start the state storage for use
|
void |
serviceStop() |
Shutdown the state storage.
|
protected abstract void |
startStorage() |
Implementation-specific startup.
|
abstract void |
storeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
java.lang.Long renewDate) |
Blocking method to store a delegation token along with the current token
sequence number to the state storage.
|
abstract void |
storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key) |
Blocking method to store a delegation token master key.
|
abstract void |
updateToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
java.lang.Long renewDate) |
Blocking method to update the expiration of a delegation token
in the state storage.
|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
serviceInit in class org.apache.hadoop.service.AbstractServiceconf - the configurationjava.io.IOExceptionpublic void serviceStart()
throws java.io.IOException
serviceStart in class org.apache.hadoop.service.AbstractServicejava.io.IOExceptionpublic void serviceStop()
throws java.io.IOException
serviceStop in class org.apache.hadoop.service.AbstractServicejava.io.IOExceptionprotected abstract void initStorage(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
conf - the configurationjava.io.IOExceptionprotected abstract void startStorage()
throws java.io.IOException
java.io.IOExceptionprotected abstract void closeStorage()
throws java.io.IOException
java.io.IOExceptionpublic abstract HistoryServerStateStoreService.HistoryServerState loadState() throws java.io.IOException
java.io.IOExceptionpublic abstract void storeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
java.lang.Long renewDate)
throws java.io.IOException
tokenId - the token to storerenewDate - the token renewal deadlinejava.io.IOExceptionpublic abstract void updateToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
java.lang.Long renewDate)
throws java.io.IOException
tokenId - the token to updaterenewDate - the new token renewal deadlinejava.io.IOExceptionpublic abstract void removeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId)
throws java.io.IOException
tokenId - the token to removejava.io.IOExceptionpublic abstract void storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
throws java.io.IOException
key - the master key to storejava.io.IOExceptionpublic abstract void removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
throws java.io.IOException
key - the master key to removejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.