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());
}
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());
}
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());
}
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()));
}
Aggregations