Search in sources :

Example 1 with NMTokenProto

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));
    }
}
Also used : RegisterApplicationMasterResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder) NMToken(org.apache.hadoop.yarn.api.records.NMToken) NMTokenProto(org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto)

Example 2 with NMTokenProto

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));
    }
}
Also used : NMToken(org.apache.hadoop.yarn.api.records.NMToken) AllocateResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProtoOrBuilder) NMTokenProto(org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto)

Aggregations

NMToken (org.apache.hadoop.yarn.api.records.NMToken)2 NMTokenProto (org.apache.hadoop.yarn.proto.YarnServiceProtos.NMTokenProto)2 AllocateResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateResponseProtoOrBuilder)1 RegisterApplicationMasterResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.RegisterApplicationMasterResponseProtoOrBuilder)1