@InterfaceAudience.Private @InterfaceStability.Unstable public class MemoryRMStateStore extends RMStateStore
RMStateStore.ApplicationAttemptState, RMStateStore.ApplicationState, RMStateStore.RMDTSecretManagerState, RMStateStore.RMStateService.STATEAM_CLIENT_TOKEN_MASTER_KEY_NAME, AM_RM_TOKEN_SERVICE, LOG| Constructor and Description |
|---|
MemoryRMStateStore() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeInternal()
Derived classes close themselves using this method.
|
RMStateStore.RMState |
getState() |
void |
initInternal(Configuration conf)
Derived classes initialize themselves using this method.
|
RMStateStore.RMState |
loadState()
Blocking API
The derived class must recover state from the store and return a new
RMState object populated with that state
This must not be called on the dispatcher thread
|
void |
removeApplicationState(RMStateStore.ApplicationState appState)
Blocking API
Derived classes must implement this method to remove the state of an
application and its attempts
|
void |
removeRMDelegationTokenState(RMDelegationTokenIdentifier rmDTIdentifier)
Blocking API
Derived classes must implement this method to remove the state of RMDelegationToken
|
void |
removeRMDTMasterKeyState(DelegationKey delegationKey)
Blocking API
Derived classes must implement this method to remove the state of
DelegationToken Master Key
|
protected void |
startInternal()
Derived classes start themselves using this method.
|
void |
storeApplicationAttemptState(String attemptIdStr,
ApplicationAttemptStateDataPBImpl attemptStateData)
Blocking API
Derived classes must implement this method to store the state of an
application attempt
|
void |
storeApplicationState(String appId,
ApplicationStateDataPBImpl appStateData)
Blocking API
Derived classes must implement this method to store the state of an
application.
|
void |
storeRMDelegationTokenAndSequenceNumberState(RMDelegationTokenIdentifier rmDTIdentifier,
Long renewDate,
int latestSequenceNumber)
Blocking API
Derived classes must implement this method to store the state of
RMDelegationToken and sequence number
|
void |
storeRMDTMasterKeyState(DelegationKey delegationKey)
Blocking API
Derived classes must implement this method to store the state of
DelegationToken Master Key
|
removeApplication, removeApplication, removeRMDelegationToken, removeRMDTMasterKey, serviceInit, serviceStart, serviceStop, setRMDispatcher, storeApplication, storeApplicationAttempt, storeRMDelegationTokenAndSequenceNumber, storeRMDTMasterKeyclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic RMStateStore.RMState getState()
public RMStateStore.RMState loadState() throws Exception
RMStateStoreloadState in class RMStateStoreExceptionpublic void initInternal(Configuration conf)
RMStateStoreinitInternal in class RMStateStoreprotected void startInternal()
throws Exception
RMStateStorestartInternal in class RMStateStoreExceptionprotected void closeInternal()
throws Exception
RMStateStorecloseInternal in class RMStateStoreExceptionpublic void storeApplicationState(String appId, ApplicationStateDataPBImpl appStateData) throws Exception
RMStateStorestoreApplicationState in class RMStateStoreExceptionpublic void storeApplicationAttemptState(String attemptIdStr, ApplicationAttemptStateDataPBImpl attemptStateData) throws Exception
RMStateStorestoreApplicationAttemptState in class RMStateStoreExceptionpublic void removeApplicationState(RMStateStore.ApplicationState appState) throws Exception
RMStateStoreremoveApplicationState in class RMStateStoreExceptionpublic void storeRMDelegationTokenAndSequenceNumberState(RMDelegationTokenIdentifier rmDTIdentifier, Long renewDate, int latestSequenceNumber) throws Exception
RMStateStorestoreRMDelegationTokenAndSequenceNumberState in class RMStateStoreExceptionpublic void removeRMDelegationTokenState(RMDelegationTokenIdentifier rmDTIdentifier) throws Exception
RMStateStoreremoveRMDelegationTokenState in class RMStateStoreExceptionpublic void storeRMDTMasterKeyState(DelegationKey delegationKey) throws Exception
RMStateStorestoreRMDTMasterKeyState in class RMStateStoreExceptionpublic void removeRMDTMasterKeyState(DelegationKey delegationKey) throws Exception
RMStateStoreremoveRMDTMasterKeyState in class RMStateStoreExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.