Search in sources :

Example 1 with ReservationRequestsProtoOrBuilder

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));
    }
}
Also used : ReservationRequestProto(org.apache.hadoop.yarn.proto.YarnProtos.ReservationRequestProto) ReservationRequest(org.apache.hadoop.yarn.api.records.ReservationRequest) ReservationRequestsProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ReservationRequestsProtoOrBuilder)

Aggregations

ReservationRequest (org.apache.hadoop.yarn.api.records.ReservationRequest)1 ReservationRequestProto (org.apache.hadoop.yarn.proto.YarnProtos.ReservationRequestProto)1 ReservationRequestsProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnProtos.ReservationRequestsProtoOrBuilder)1