Search in sources :

Example 6 with MasterKeyPBImpl

use of org.apache.hadoop.yarn.server.api.records.impl.pb.MasterKeyPBImpl in project hadoop by apache.

the class NMMemoryStateStoreService method storeNMTokenPreviousMasterKey.

@Override
public synchronized void storeNMTokenPreviousMasterKey(MasterKey key) throws IOException {
    MasterKeyPBImpl keypb = (MasterKeyPBImpl) key;
    nmTokenState.previousMasterKey = new MasterKeyPBImpl(keypb.getProto());
}
Also used : MasterKeyPBImpl(org.apache.hadoop.yarn.server.api.records.impl.pb.MasterKeyPBImpl)

Example 7 with MasterKeyPBImpl

use of org.apache.hadoop.yarn.server.api.records.impl.pb.MasterKeyPBImpl in project hadoop by apache.

the class NMMemoryStateStoreService method storeContainerTokenPreviousMasterKey.

@Override
public synchronized void storeContainerTokenPreviousMasterKey(MasterKey key) throws IOException {
    MasterKeyPBImpl keypb = (MasterKeyPBImpl) key;
    containerTokenState.previousMasterKey = new MasterKeyPBImpl(keypb.getProto());
}
Also used : MasterKeyPBImpl(org.apache.hadoop.yarn.server.api.records.impl.pb.MasterKeyPBImpl)

Example 8 with MasterKeyPBImpl

use of org.apache.hadoop.yarn.server.api.records.impl.pb.MasterKeyPBImpl in project hadoop by apache.

the class NMMemoryStateStoreService method storeContainerTokenCurrentMasterKey.

@Override
public synchronized void storeContainerTokenCurrentMasterKey(MasterKey key) throws IOException {
    MasterKeyPBImpl keypb = (MasterKeyPBImpl) key;
    containerTokenState.currentMasterKey = new MasterKeyPBImpl(keypb.getProto());
}
Also used : MasterKeyPBImpl(org.apache.hadoop.yarn.server.api.records.impl.pb.MasterKeyPBImpl)

Example 9 with MasterKeyPBImpl

use of org.apache.hadoop.yarn.server.api.records.impl.pb.MasterKeyPBImpl in project hadoop by apache.

the class NMMemoryStateStoreService method storeNMTokenApplicationMasterKey.

@Override
public synchronized void storeNMTokenApplicationMasterKey(ApplicationAttemptId attempt, MasterKey key) throws IOException {
    MasterKeyPBImpl keypb = (MasterKeyPBImpl) key;
    nmTokenState.applicationMasterKeys.put(attempt, new MasterKeyPBImpl(keypb.getProto()));
}
Also used : MasterKeyPBImpl(org.apache.hadoop.yarn.server.api.records.impl.pb.MasterKeyPBImpl)

Aggregations

MasterKeyPBImpl (org.apache.hadoop.yarn.server.api.records.impl.pb.MasterKeyPBImpl)9 MasterKey (org.apache.hadoop.yarn.server.api.records.MasterKey)3 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1 RegisterNodeManagerResponse (org.apache.hadoop.yarn.server.api.protocolrecords.RegisterNodeManagerResponse)1 UnRegisterNodeManagerResponse (org.apache.hadoop.yarn.server.api.protocolrecords.UnRegisterNodeManagerResponse)1 NMContext (org.apache.hadoop.yarn.server.nodemanager.NodeManager.NMContext)1 NMContainerTokenSecretManager (org.apache.hadoop.yarn.server.nodemanager.security.NMContainerTokenSecretManager)1 NMTokenSecretManagerInNM (org.apache.hadoop.yarn.server.nodemanager.security.NMTokenSecretManagerInNM)1 ApplicationACLsManager (org.apache.hadoop.yarn.server.security.ApplicationACLsManager)1 Test (org.junit.Test)1