Search in sources :

Example 1 with ResourceRequestProto

use of org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto in project hadoop by apache.

the class AllocateRequestPBImpl method initAsks.

private void initAsks() {
    if (this.ask != null) {
        return;
    }
    AllocateRequestProtoOrBuilder p = viaProto ? proto : builder;
    List<ResourceRequestProto> list = p.getAskList();
    this.ask = new ArrayList<ResourceRequest>();
    for (ResourceRequestProto c : list) {
        this.ask.add(convertFromProtoFormat(c));
    }
}
Also used : AllocateRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder) ResourceRequest(org.apache.hadoop.yarn.api.records.ResourceRequest) ResourceRequestProto(org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto)

Aggregations

ResourceRequest (org.apache.hadoop.yarn.api.records.ResourceRequest)1 ResourceRequestProto (org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto)1 AllocateRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder)1