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, 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 IOException
TimelineStateStoreinitStorage in class TimelineStateStoreconf - the configurationIOExceptionprotected void startStorage()
                     throws IOException
TimelineStateStorestartStorage in class TimelineStateStoreIOExceptionprotected void closeStorage()
                     throws IOException
TimelineStateStorecloseStorage in class TimelineStateStoreIOExceptionpublic TimelineStateStore.TimelineServiceState loadState() throws IOException
TimelineStateStoreloadState in class TimelineStateStoreIOExceptionpublic void storeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId,
                       Long renewDate)
                throws IOException
TimelineStateStorestoreToken in class TimelineStateStoretokenId - the token to storerenewDate - the token renewal deadlineIOExceptionpublic void updateToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId,
                        Long renewDate)
                 throws IOException
TimelineStateStoreupdateToken in class TimelineStateStoretokenId - the token to updaterenewDate - the new token renewal deadlineIOExceptionpublic void removeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId)
                 throws IOException
TimelineStateStoreremoveToken in class TimelineStateStoretokenId - the token to removeIOExceptionpublic void storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
                         throws IOException
TimelineStateStorestoreTokenMasterKey in class TimelineStateStorekey - the master key to storeIOExceptionpublic void removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
                          throws IOException
TimelineStateStoreremoveTokenMasterKey in class TimelineStateStorekey - the master key to removeIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.