use of org.apache.hadoop.yarn.proto.YarnProtos.StrictPreemptionContractProtoOrBuilder in project hadoop by apache.
the class StrictPreemptionContractPBImpl method initIds.
private void initIds() {
if (containers != null) {
return;
}
StrictPreemptionContractProtoOrBuilder p = viaProto ? proto : builder;
List<PreemptionContainerProto> list = p.getContainerList();
containers = new HashSet<PreemptionContainer>();
for (PreemptionContainerProto c : list) {
containers.add(convertFromProtoFormat(c));
}
}
Aggregations