|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore
org.apache.hadoop.yarn.server.resourcemanager.recovery.MemoryRMStateStore
@InterfaceAudience.Private @InterfaceStability.Unstable public class MemoryRMStateStore
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore |
|---|
RMStateStore.ApplicationAttemptState, RMStateStore.ApplicationState, RMStateStore.RMDTSecretManagerState, RMStateStore.RMState |
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
|---|
org.apache.hadoop.service.Service.STATE |
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore |
|---|
AM_CLIENT_TOKEN_MASTER_KEY_NAME, AM_RM_TOKEN_SERVICE, AMRMTOKEN_SECRET_MANAGER_ROOT, DELEGATION_KEY_PREFIX, DELEGATION_TOKEN_PREFIX, DELEGATION_TOKEN_SEQUENCE_NUMBER_PREFIX, EPOCH_NODE, LOG, RM_APP_ROOT, RM_DT_SECRET_MANAGER_ROOT, VERSION_NODE |
| Constructor Summary | |
|---|---|
MemoryRMStateStore()
|
|
| Method Summary | |
|---|---|
void |
checkVersion()
1) Versioning scheme: major.minor. |
protected void |
closeInternal()
Derived classes close themselves using this method. |
void |
deleteStore()
Derived classes must implement this method to delete the state store |
long |
getAndIncrementEpoch()
Get the current epoch of RM and increment the value. |
protected org.apache.hadoop.yarn.server.records.Version |
getCurrentVersion()
Get the current version of the underlying state store. |
RMStateStore.RMState |
getState()
|
void |
initInternal(org.apache.hadoop.conf.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 |
protected org.apache.hadoop.yarn.server.records.Version |
loadVersion()
Derived class use this method to load the version information from state store. |
void |
removeApplicationStateInternal(RMStateStore.ApplicationState appState)
Blocking API Derived classes must implement this method to remove the state of an application and its attempts |
void |
removeRMDelegationTokenState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier rmDTIdentifier)
Blocking API Derived classes must implement this method to remove the state of RMDelegationToken |
void |
removeRMDTMasterKeyState(org.apache.hadoop.security.token.delegation.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 |
storeApplicationAttemptStateInternal(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
ApplicationAttemptStateData attemptStateData)
Blocking API Derived classes must implement this method to store the state of an application attempt |
void |
storeApplicationStateInternal(org.apache.hadoop.yarn.api.records.ApplicationId appId,
ApplicationStateData appStateData)
Blocking API Derived classes must implement this method to store the state of an application. |
void |
storeOrUpdateAMRMTokenSecretManagerState(AMRMTokenSecretManagerState amrmTokenSecretManagerState,
boolean isUpdate)
Blocking API Derived classes must implement this method to store or update the state of AMRMToken Master Key |
void |
storeRMDelegationTokenAndSequenceNumberState(org.apache.hadoop.yarn.security.client.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(org.apache.hadoop.security.token.delegation.DelegationKey delegationKey)
Blocking API Derived classes must implement this method to store the state of DelegationToken Master Key |
protected void |
storeVersion()
Derived class use this method to store the version information. |
void |
updateApplicationAttemptStateInternal(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
ApplicationAttemptStateData attemptStateData)
|
void |
updateApplicationStateInternal(org.apache.hadoop.yarn.api.records.ApplicationId appId,
ApplicationStateData appStateData)
|
protected void |
updateRMDelegationTokenAndSequenceNumberInternal(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier rmDTIdentifier,
Long renewDate,
int latestSequenceNumber)
Blocking API Derived classes must implement this method to update the state of RMDelegationToken and sequence number |
| Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore |
|---|
getCredentialsFromAppAttempt, handleStoreEvent, notifyStoreOperationFailed, removeApplication, removeRMDelegationToken, removeRMDTMasterKey, serviceInit, serviceStart, serviceStop, setResourceManager, setRMDispatcher, storeNewApplication, storeNewApplicationAttempt, storeRMDelegationTokenAndSequenceNumber, storeRMDTMasterKey, updateApplicationAttemptState, updateApplicationState, updateRMDelegationTokenAndSequenceNumber |
| Methods inherited from class org.apache.hadoop.service.AbstractService |
|---|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryRMStateStore()
| Method Detail |
|---|
public RMStateStore.RMState getState()
public void checkVersion()
throws Exception
RMStateStore
checkVersion in class RMStateStoreException
public long getAndIncrementEpoch()
throws Exception
RMStateStore
getAndIncrementEpoch in class RMStateStoreException
public RMStateStore.RMState loadState()
throws Exception
RMStateStore
loadState in class RMStateStoreExceptionpublic void initInternal(org.apache.hadoop.conf.Configuration conf)
RMStateStore
initInternal in class RMStateStore
protected void startInternal()
throws Exception
RMStateStore
startInternal in class RMStateStoreException
protected void closeInternal()
throws Exception
RMStateStore
closeInternal in class RMStateStoreException
public void storeApplicationStateInternal(org.apache.hadoop.yarn.api.records.ApplicationId appId,
ApplicationStateData appStateData)
throws Exception
RMStateStore
storeApplicationStateInternal in class RMStateStoreException
public void updateApplicationStateInternal(org.apache.hadoop.yarn.api.records.ApplicationId appId,
ApplicationStateData appStateData)
throws Exception
updateApplicationStateInternal in class RMStateStoreException
public void storeApplicationAttemptStateInternal(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
ApplicationAttemptStateData attemptStateData)
throws Exception
RMStateStore
storeApplicationAttemptStateInternal in class RMStateStoreException
public void updateApplicationAttemptStateInternal(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId,
ApplicationAttemptStateData attemptStateData)
throws Exception
updateApplicationAttemptStateInternal in class RMStateStoreException
public void removeApplicationStateInternal(RMStateStore.ApplicationState appState)
throws Exception
RMStateStore
removeApplicationStateInternal in class RMStateStoreException
public void storeRMDelegationTokenAndSequenceNumberState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier rmDTIdentifier,
Long renewDate,
int latestSequenceNumber)
throws Exception
RMStateStore
storeRMDelegationTokenAndSequenceNumberState in class RMStateStoreException
public void removeRMDelegationTokenState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier rmDTIdentifier)
throws Exception
RMStateStore
removeRMDelegationTokenState in class RMStateStoreException
protected void updateRMDelegationTokenAndSequenceNumberInternal(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier rmDTIdentifier,
Long renewDate,
int latestSequenceNumber)
throws Exception
RMStateStore
updateRMDelegationTokenAndSequenceNumberInternal in class RMStateStoreException
public void storeRMDTMasterKeyState(org.apache.hadoop.security.token.delegation.DelegationKey delegationKey)
throws Exception
RMStateStore
storeRMDTMasterKeyState in class RMStateStoreException
public void removeRMDTMasterKeyState(org.apache.hadoop.security.token.delegation.DelegationKey delegationKey)
throws Exception
RMStateStore
removeRMDTMasterKeyState in class RMStateStoreException
protected org.apache.hadoop.yarn.server.records.Version loadVersion()
throws Exception
RMStateStore
loadVersion in class RMStateStoreException
protected void storeVersion()
throws Exception
RMStateStore
storeVersion in class RMStateStoreExceptionprotected org.apache.hadoop.yarn.server.records.Version getCurrentVersion()
RMStateStore
getCurrentVersion in class RMStateStore
public void storeOrUpdateAMRMTokenSecretManagerState(AMRMTokenSecretManagerState amrmTokenSecretManagerState,
boolean isUpdate)
RMStateStore
storeOrUpdateAMRMTokenSecretManagerState in class RMStateStore
public void deleteStore()
throws Exception
RMStateStore
deleteStore in class RMStateStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||