Class HistoryServerLeveldbStateStoreService
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.mapreduce.v2.hs.HistoryServerStateStoreService
org.apache.hadoop.mapreduce.v2.hs.HistoryServerLeveldbStateStoreService
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.v2.hs.HistoryServerStateStoreService
HistoryServerStateStoreService.HistoryServerStateNested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidImplementation-specific shutdown.protected voidinitStorage(org.apache.hadoop.conf.Configuration conf) Implementation-specific initialization.Load the history server state from the state storage.voidremoveToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId) Blocking method to remove a delegation token from the state storage.voidremoveTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey masterKey) Blocking method to remove a delegation token master key.protected voidImplementation-specific startup.voidstoreToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId, Long renewDate) Blocking method to store a delegation token along with the current token sequence number to the state storage.voidstoreTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey masterKey) Blocking method to store a delegation token master key.voidupdateToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId, Long renewDate) Blocking method to update the expiration of a delegation token in the state storage.Methods inherited from class org.apache.hadoop.mapreduce.v2.hs.HistoryServerStateStoreService
serviceInit, serviceStart, serviceStopMethods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
HistoryServerLeveldbStateStoreService
public HistoryServerLeveldbStateStoreService()
-
-
Method Details
-
initStorage
Description copied from class:HistoryServerStateStoreServiceImplementation-specific initialization.- Specified by:
initStoragein classHistoryServerStateStoreService- Parameters:
conf- the configuration- Throws:
IOException
-
startStorage
Description copied from class:HistoryServerStateStoreServiceImplementation-specific startup.- Specified by:
startStoragein classHistoryServerStateStoreService- Throws:
IOException
-
closeStorage
Description copied from class:HistoryServerStateStoreServiceImplementation-specific shutdown.- Specified by:
closeStoragein classHistoryServerStateStoreService- Throws:
IOException
-
loadState
Description copied from class:HistoryServerStateStoreServiceLoad the history server state from the state storage.- Specified by:
loadStatein classHistoryServerStateStoreService- Throws:
IOException
-
storeToken
public void storeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId, Long renewDate) throws IOException Description copied from class:HistoryServerStateStoreServiceBlocking method to store a delegation token along with the current token sequence number to the state storage. Implementations must not return from this method until the token has been committed to the state store.- Specified by:
storeTokenin classHistoryServerStateStoreService- Parameters:
tokenId- the token to storerenewDate- the token renewal deadline- Throws:
IOException
-
updateToken
public void updateToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId, Long renewDate) throws IOException Description copied from class:HistoryServerStateStoreServiceBlocking method to update the expiration of a delegation token in the state storage. Implementations must not return from this method until the expiration date of the token has been updated in the state store.- Specified by:
updateTokenin classHistoryServerStateStoreService- Parameters:
tokenId- the token to updaterenewDate- the new token renewal deadline- Throws:
IOException
-
removeToken
public void removeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId) throws IOException Description copied from class:HistoryServerStateStoreServiceBlocking method to remove a delegation token from the state storage. Implementations must not return from this method until the token has been removed from the state store.- Specified by:
removeTokenin classHistoryServerStateStoreService- Parameters:
tokenId- the token to remove- Throws:
IOException
-
storeTokenMasterKey
public void storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey masterKey) throws IOException Description copied from class:HistoryServerStateStoreServiceBlocking method to store a delegation token master key. Implementations must not return from this method until the key has been committed to the state store.- Specified by:
storeTokenMasterKeyin classHistoryServerStateStoreService- Parameters:
masterKey- the master key to store- Throws:
IOException
-
removeTokenMasterKey
public void removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey masterKey) throws IOException Description copied from class:HistoryServerStateStoreServiceBlocking method to remove a delegation token master key. Implementations must not return from this method until the key has been removed from the state store.- Specified by:
removeTokenMasterKeyin classHistoryServerStateStoreService- Parameters:
masterKey- the master key to remove- Throws:
IOException
-