java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Servicepublic class LeveldbTimelineStateStore extends TimelineStateStore
TimelineStateStore.TimelineServiceState| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
LeveldbTimelineStateStore() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
closeStorage() |
Implementation-specific shutdown.
|
protected void |
initStorage(org.apache.hadoop.conf.Configuration conf) |
Implementation-specific initialization.
|
TimelineStateStore.TimelineServiceState |
loadState() |
Load the timeline service state from the state storage.
|
void |
removeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId) |
Blocking method to remove a delegation token from the state storage.
|
void |
removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key) |
Blocking method to remove a delegation token master key.
|
protected void |
startStorage() |
Implementation-specific startup.
|
void |
storeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier 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 key) |
Blocking method to store a delegation token master key.
|
void |
updateToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier 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, waitForServiceToStopprotected void initStorage(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
TimelineStateStoreinitStorage in class TimelineStateStoreconf - the configurationjava.io.IOExceptionprotected void startStorage()
throws java.io.IOException
TimelineStateStorestartStorage in class TimelineStateStorejava.io.IOExceptionprotected void closeStorage()
throws java.io.IOException
TimelineStateStorecloseStorage in class TimelineStateStorejava.io.IOExceptionpublic TimelineStateStore.TimelineServiceState loadState() throws java.io.IOException
TimelineStateStoreloadState in class TimelineStateStorejava.io.IOExceptionpublic void storeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId,
java.lang.Long renewDate)
throws java.io.IOException
TimelineStateStorestoreToken in class TimelineStateStoretokenId - the token to storerenewDate - the token renewal deadlinejava.io.IOExceptionpublic void updateToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId,
java.lang.Long renewDate)
throws java.io.IOException
TimelineStateStoreupdateToken in class TimelineStateStoretokenId - the token to updaterenewDate - the new token renewal deadlinejava.io.IOExceptionpublic void removeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId)
throws java.io.IOException
TimelineStateStoreremoveToken in class TimelineStateStoretokenId - the token to removejava.io.IOExceptionpublic void storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
throws java.io.IOException
TimelineStateStorestoreTokenMasterKey in class TimelineStateStorekey - the master key to storejava.io.IOExceptionpublic void removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
throws java.io.IOException
TimelineStateStoreremoveTokenMasterKey in class TimelineStateStorekey - the master key to removejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.