use of org.apache.hadoop.yarn.proto.YarnServiceProtos.ReservationListResponseProtoOrBuilder in project hadoop by apache.
the class ReservationListResponsePBImpl method initReservations.
private void initReservations() {
if (this.reservations != null) {
return;
}
ReservationListResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ReservationAllocationStateProto> reservationProtos = p.getReservationsList();
reservations = new ArrayList<>();
for (ReservationAllocationStateProto r : reservationProtos) {
reservations.add(convertFromProtoFormat(r));
}
}
Aggregations