public class MemoryTimelineStateStore extends TimelineStateStore
TimelineStateStore.TimelineServiceState
Constructor and Description |
---|
MemoryTimelineStateStore() |
Modifier and Type | Method and 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,
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,
Long renewDate)
Blocking method to update the expiration of a delegation token
in the state storage.
|
serviceInit, serviceStart, serviceStop
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
protected void initStorage(org.apache.hadoop.conf.Configuration conf) throws IOException
TimelineStateStore
initStorage
in class TimelineStateStore
conf
- the configurationIOException
protected void startStorage() throws IOException
TimelineStateStore
startStorage
in class TimelineStateStore
IOException
protected void closeStorage() throws IOException
TimelineStateStore
closeStorage
in class TimelineStateStore
IOException
public TimelineStateStore.TimelineServiceState loadState() throws IOException
TimelineStateStore
loadState
in class TimelineStateStore
IOException
public void storeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId, Long renewDate) throws IOException
TimelineStateStore
storeToken
in class TimelineStateStore
tokenId
- the token to storerenewDate
- the token renewal deadlineIOException
public void updateToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId, Long renewDate) throws IOException
TimelineStateStore
updateToken
in class TimelineStateStore
tokenId
- the token to updaterenewDate
- the new token renewal deadlineIOException
public void removeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId) throws IOException
TimelineStateStore
removeToken
in class TimelineStateStore
tokenId
- the token to removeIOException
public void storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key) throws IOException
TimelineStateStore
storeTokenMasterKey
in class TimelineStateStore
key
- the master key to storeIOException
public void removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key) throws IOException
TimelineStateStore
removeTokenMasterKey
in class TimelineStateStore
key
- the master key to removeIOException
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.