use of org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto in project hadoop by apache.
the class RegisterApplicationMasterResponsePBImpl method initLocalNewNMTokenList.
private synchronized void initLocalNewNMTokenList() {
RegisterApplicationMasterResponseProtoOrBuilder p = viaProto ? proto : builder;
List<NMTokenProto> list = p.getNmTokensFromPreviousAttemptsList();
nmTokens = new ArrayList<NMToken>();
for (NMTokenProto t : list) {
nmTokens.add(convertFromProtoFormat(t));
}
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto in project hadoop by apache.
the class AllocateResponsePBImpl method initLocalNewNMTokenList.
private synchronized void initLocalNewNMTokenList() {
if (nmTokens != null) {
return;
}
AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
List<NMTokenProto> list = p.getNmTokensList();
nmTokens = new ArrayList<NMToken>();
for (NMTokenProto t : list) {
nmTokens.add(convertFromProtoFormat(t));
}
}
Aggregations