java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Servicepublic class HistoryServerLeveldbStateStoreService extends HistoryServerStateStoreService
HistoryServerStateStoreService.HistoryServerState| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
HistoryServerLeveldbStateStoreService() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
closeStorage() |
Implementation-specific shutdown.
|
protected void |
initStorage(org.apache.hadoop.conf.Configuration conf) |
Implementation-specific initialization.
|
HistoryServerStateStoreService.HistoryServerState |
loadState() |
Load the history server state from the state storage.
|
void |
removeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId) |
Blocking method to remove a delegation token from the state storage.
|
void |
removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey masterKey) |
Blocking method to remove a delegation token master key.
|
protected void |
startStorage() |
Implementation-specific startup.
|
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.
|
void |
storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey masterKey) |
Blocking method to store a delegation token master key.
|
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.
|
serviceInit, serviceStart, serviceStopclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic HistoryServerLeveldbStateStoreService()
protected void initStorage(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
HistoryServerStateStoreServiceinitStorage in class HistoryServerStateStoreServiceconf - the configurationjava.io.IOExceptionprotected void startStorage()
throws java.io.IOException
HistoryServerStateStoreServicestartStorage in class HistoryServerStateStoreServicejava.io.IOExceptionprotected void closeStorage()
throws java.io.IOException
HistoryServerStateStoreServicecloseStorage in class HistoryServerStateStoreServicejava.io.IOExceptionpublic HistoryServerStateStoreService.HistoryServerState loadState() throws java.io.IOException
HistoryServerStateStoreServiceloadState in class HistoryServerStateStoreServicejava.io.IOExceptionpublic void storeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
java.lang.Long renewDate)
throws java.io.IOException
HistoryServerStateStoreServicestoreToken in class HistoryServerStateStoreServicetokenId - the token to storerenewDate - the token renewal deadlinejava.io.IOExceptionpublic void updateToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId,
java.lang.Long renewDate)
throws java.io.IOException
HistoryServerStateStoreServiceupdateToken in class HistoryServerStateStoreServicetokenId - the token to updaterenewDate - the new token renewal deadlinejava.io.IOExceptionpublic void removeToken(org.apache.hadoop.mapreduce.v2.api.MRDelegationTokenIdentifier tokenId)
throws java.io.IOException
HistoryServerStateStoreServiceremoveToken in class HistoryServerStateStoreServicetokenId - the token to removejava.io.IOExceptionpublic void storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey masterKey)
throws java.io.IOException
HistoryServerStateStoreServicestoreTokenMasterKey in class HistoryServerStateStoreServicemasterKey - the master key to storejava.io.IOExceptionpublic void removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey masterKey)
throws java.io.IOException
HistoryServerStateStoreServiceremoveTokenMasterKey in class HistoryServerStateStoreServicemasterKey - the master key to removejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.