Search in sources :

Example 1 with UpdateContainerRequestProto

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto in project hadoop by apache.

the class AllocateRequestPBImpl method initUpdateRequests.

private void initUpdateRequests() {
    if (this.updateRequests != null) {
        return;
    }
    AllocateRequestProtoOrBuilder p = viaProto ? proto : builder;
    List<UpdateContainerRequestProto> list = p.getUpdateRequestsList();
    this.updateRequests = new ArrayList<>();
    for (UpdateContainerRequestProto c : list) {
        this.updateRequests.add(convertFromProtoFormat(c));
    }
}
Also used : AllocateRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder) UpdateContainerRequestProto(org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto)

Aggregations

AllocateRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder)1 UpdateContainerRequestProto (org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateContainerRequestProto)1