Class AMRMTokenSecretManagerState
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.recovery.records.AMRMTokenSecretManagerState
- Direct Known Subclasses:
AMRMTokenSecretManagerStatePBImpl
Contains all the state data that needs to be stored persistently
for
AMRMTokenSecretManager-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.hadoop.yarn.server.api.records.MasterKeyAMRMTokenSecretManagercurrent Master key.abstract org.apache.hadoop.yarn.server.api.records.MasterKeyAMRMTokenSecretManagernext Master key.abstract org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProtogetProto()static AMRMTokenSecretManagerStatenewInstance(org.apache.hadoop.yarn.server.api.records.MasterKey currentMasterKey, org.apache.hadoop.yarn.server.api.records.MasterKey nextMasterKey) static AMRMTokenSecretManagerStateabstract voidsetCurrentMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey currentMasterKey) abstract voidsetNextMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey nextMasterKey)
-
Constructor Details
-
AMRMTokenSecretManagerState
public AMRMTokenSecretManagerState()
-
-
Method Details
-
newInstance
public static AMRMTokenSecretManagerState newInstance(org.apache.hadoop.yarn.server.api.records.MasterKey currentMasterKey, org.apache.hadoop.yarn.server.api.records.MasterKey nextMasterKey) -
newInstance
-
getCurrentMasterKey
@Public @Unstable public abstract org.apache.hadoop.yarn.server.api.records.MasterKey getCurrentMasterKey()AMRMTokenSecretManagercurrent Master key.- Returns:
- MasterKey.
-
setCurrentMasterKey
@Public @Unstable public abstract void setCurrentMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey currentMasterKey) -
getNextMasterKey
@Public @Unstable public abstract org.apache.hadoop.yarn.server.api.records.MasterKey getNextMasterKey()AMRMTokenSecretManagernext Master key.- Returns:
- MasterKey.
-
setNextMasterKey
@Public @Unstable public abstract void setNextMasterKey(org.apache.hadoop.yarn.server.api.records.MasterKey nextMasterKey) -
getProto
public abstract org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.AMRMTokenSecretManagerStateProto getProto()
-