public class NMTokenSecretManagerInRM extends BaseNMTokenSecretManager
SecretManager.InvalidToken
currentMasterKey, readLock, readWriteLock, writeLock
Constructor and Description |
---|
NMTokenSecretManagerInRM(Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
activateNextMasterKey()
Activate the new master-key
|
List<NMToken> |
createAndGetNMTokens(String applicationSubmitter,
ApplicationAttemptId appAttemptId,
List<Container> containers) |
MasterKey |
getNextKey() |
boolean |
isApplicationAttemptNMTokenPresent(ApplicationAttemptId appAttemptId,
NodeId nodeId) |
boolean |
isApplicationAttemptRegistered(ApplicationAttemptId appAttemptId) |
void |
registerApplicationAttempt(ApplicationAttemptId appAttemptId) |
void |
removeNodeKey(NodeId nodeId)
This is to be called when NodeManager reconnects or goes down.
|
void |
rollMasterKey()
Creates a new master-key and sets it as the primary.
|
void |
start() |
void |
stop() |
void |
unregisterApplicationAttempt(ApplicationAttemptId appAttemptId) |
createIdentifier, createNewMasterKey, createNMToken, createPassword, getCurrentKey, newInstance, retrievePassword, retrivePasswordInternal
checkAvailableForRead, createPassword, createSecretKey, generateSecret
public NMTokenSecretManagerInRM(Configuration conf)
@InterfaceAudience.Private public void rollMasterKey()
@InterfaceAudience.Private public MasterKey getNextKey()
@InterfaceAudience.Private public void activateNextMasterKey()
public void start()
public void stop()
public List<NMToken> createAndGetNMTokens(String applicationSubmitter, ApplicationAttemptId appAttemptId, List<Container> containers)
public void registerApplicationAttempt(ApplicationAttemptId appAttemptId)
@InterfaceAudience.Private public boolean isApplicationAttemptRegistered(ApplicationAttemptId appAttemptId)
@InterfaceAudience.Private public boolean isApplicationAttemptNMTokenPresent(ApplicationAttemptId appAttemptId, NodeId nodeId)
public void unregisterApplicationAttempt(ApplicationAttemptId appAttemptId)
public void removeNodeKey(NodeId nodeId)
nodeId
- Copyright © 2013 Apache Software Foundation. All rights reserved.