|
||||||||||
| 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.FileSystemRMStateStore
@InterfaceAudience.Private @InterfaceStability.Unstable public class FileSystemRMStateStore
| 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 | |
|---|---|
protected org.apache.hadoop.fs.FileSystem |
fs
|
static org.apache.commons.logging.Log |
LOG
|
| Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore |
|---|
AM_CLIENT_TOKEN_MASTER_KEY_NAME, AM_RM_TOKEN_SERVICE |
| Constructor Summary | |
|---|---|
FileSystemRMStateStore()
|
|
| Method Summary | |
|---|---|
protected void |
closeInternal()
Derived classes close themselves using this method. |
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 |
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(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier identifier)
Blocking API Derived classes must implement this method to remove the state of RMDelegationToken |
void |
removeRMDTMasterKeyState(org.apache.hadoop.security.token.delegation.DelegationKey masterKey)
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 attemptId,
ApplicationAttemptStateDataPBImpl attemptStateDataPB)
Blocking API Derived classes must implement this method to store the state of an application attempt |
void |
storeApplicationState(String appId,
ApplicationStateDataPBImpl appStateDataPB)
Blocking API Derived classes must implement this method to store the state of an application. |
void |
storeRMDelegationTokenAndSequenceNumberState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier identifier,
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 masterKey)
Blocking API Derived classes must implement this method to store the state of DelegationToken Master Key |
| Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore |
|---|
removeApplication, removeApplication, removeRMDelegationToken, removeRMDTMasterKey, serviceInit, serviceStart, serviceStop, setRMDispatcher, storeApplication, storeApplicationAttempt, storeRMDelegationTokenAndSequenceNumber, storeRMDTMasterKey |
| 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 |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
protected org.apache.hadoop.fs.FileSystem fs
| Constructor Detail |
|---|
public FileSystemRMStateStore()
| Method Detail |
|---|
public void initInternal(org.apache.hadoop.conf.Configuration conf)
throws Exception
RMStateStore
initInternal in class RMStateStoreException
protected void startInternal()
throws Exception
RMStateStore
startInternal in class RMStateStoreException
protected void closeInternal()
throws Exception
RMStateStore
closeInternal in class RMStateStoreException
public RMStateStore.RMState loadState()
throws Exception
RMStateStore
loadState in class RMStateStoreException
public void storeApplicationState(String appId,
ApplicationStateDataPBImpl appStateDataPB)
throws Exception
RMStateStore
storeApplicationState in class RMStateStoreException
public void storeApplicationAttemptState(String attemptId,
ApplicationAttemptStateDataPBImpl attemptStateDataPB)
throws Exception
RMStateStore
storeApplicationAttemptState in class RMStateStoreException
public void removeApplicationState(RMStateStore.ApplicationState appState)
throws Exception
RMStateStore
removeApplicationState in class RMStateStoreException
public void storeRMDelegationTokenAndSequenceNumberState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier identifier,
Long renewDate,
int latestSequenceNumber)
throws Exception
RMStateStore
storeRMDelegationTokenAndSequenceNumberState in class RMStateStoreException
public void removeRMDelegationTokenState(org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier identifier)
throws Exception
RMStateStore
removeRMDelegationTokenState in class RMStateStoreException
public void storeRMDTMasterKeyState(org.apache.hadoop.security.token.delegation.DelegationKey masterKey)
throws Exception
RMStateStore
storeRMDTMasterKeyState in class RMStateStoreException
public void removeRMDTMasterKeyState(org.apache.hadoop.security.token.delegation.DelegationKey masterKey)
throws Exception
RMStateStore
removeRMDTMasterKeyState in class RMStateStoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||