@InterfaceAudience.Private
 @InterfaceStability.Unstable
public abstract class TimelineStateStore
extends org.apache.hadoop.service.AbstractService
| Modifier and Type | Class and Description | 
|---|---|
| static class  | TimelineStateStore.TimelineServiceState | 
| Constructor and Description | 
|---|
| TimelineStateStore() | 
| TimelineStateStore(String name) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract void | closeStorage()Implementation-specific shutdown. | 
| protected abstract void | initStorage(org.apache.hadoop.conf.Configuration conf)Implementation-specific initialization. | 
| abstract TimelineStateStore.TimelineServiceState | loadState()Load the timeline service state from the state storage. | 
| abstract void | removeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId)Blocking method to remove a delegation token from the state storage. | 
| abstract void | removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)Blocking method to remove a delegation token master key. | 
| void | serviceInit(org.apache.hadoop.conf.Configuration conf)Initialize the state storage | 
| void | serviceStart()Start the state storage for use | 
| void | serviceStop()Shutdown the state storage. | 
| protected abstract void | startStorage()Implementation-specific startup. | 
| abstract 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. | 
| abstract void | storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)Blocking method to store a delegation token master key. | 
| abstract 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. | 
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic TimelineStateStore()
public TimelineStateStore(String name)
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
                 throws IOException
serviceInit in class org.apache.hadoop.service.AbstractServiceconf - the configurationIOExceptionpublic void serviceStart()
                  throws IOException
serviceStart in class org.apache.hadoop.service.AbstractServiceIOExceptionpublic void serviceStop()
                 throws IOException
serviceStop in class org.apache.hadoop.service.AbstractServiceIOExceptionprotected abstract void initStorage(org.apache.hadoop.conf.Configuration conf)
                             throws IOException
conf - the configurationIOExceptionprotected abstract void startStorage()
                              throws IOException
IOExceptionprotected abstract void closeStorage()
                              throws IOException
IOExceptionpublic abstract TimelineStateStore.TimelineServiceState loadState() throws IOException
IOExceptionpublic abstract void storeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId,
                                Long renewDate)
                         throws IOException
tokenId - the token to storerenewDate - the token renewal deadlineIOExceptionpublic abstract void updateToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId,
                                 Long renewDate)
                          throws IOException
tokenId - the token to updaterenewDate - the new token renewal deadlineIOExceptionpublic abstract void removeToken(org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier tokenId)
                          throws IOException
tokenId - the token to removeIOExceptionpublic abstract void storeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
                                  throws IOException
key - the master key to storeIOExceptionpublic abstract void removeTokenMasterKey(org.apache.hadoop.security.token.delegation.DelegationKey key)
                                   throws IOException
key - the master key to removeIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.