use of org.apache.hadoop.yarn.proto.YarnProtos.PreemptionResourceRequestProto in project hadoop by apache.
the class PreemptionContractPBImpl method initPreemptionResourceRequests.
private void initPreemptionResourceRequests() {
if (resources != null) {
return;
}
PreemptionContractProtoOrBuilder p = viaProto ? proto : builder;
List<PreemptionResourceRequestProto> list = p.getResourceList();
resources = new ArrayList<PreemptionResourceRequest>();
for (PreemptionResourceRequestProto rr : list) {
resources.add(convertFromProtoFormat(rr));
}
}
Aggregations