Search in sources :

Example 1 with ReservationListResponseProtoOrBuilder

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));
    }
}
Also used : ReservationListResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.ReservationListResponseProtoOrBuilder) ReservationAllocationStateProto(org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto)

Aggregations

ReservationAllocationStateProto (org.apache.hadoop.yarn.proto.YarnProtos.ReservationAllocationStateProto)1 ReservationListResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.ReservationListResponseProtoOrBuilder)1