use of org.apache.hadoop.yarn.proto.YarnProtos.ReservationRequestsProtoOrBuilder in project hadoop by apache.
the class ReservationRequestsPBImpl method initReservationRequestsList.
private void initReservationRequestsList() {
if (this.reservationRequests != null) {
return;
}
ReservationRequestsProtoOrBuilder p = viaProto ? proto : builder;
List<ReservationRequestProto> resourceProtos = p.getReservationResourcesList();
reservationRequests = new ArrayList<ReservationRequest>();
for (ReservationRequestProto r : resourceProtos) {
reservationRequests.add(convertFromProtoFormat(r));
}
}
Aggregations