Search in sources :

Example 1 with StartContainersRequestProtoOrBuilder

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

the class StartContainersRequestPBImpl method initLocalRequests.

private void initLocalRequests() {
    StartContainersRequestProtoOrBuilder p = viaProto ? proto : builder;
    List<StartContainerRequestProto> requestList = p.getStartContainerRequestList();
    this.requests = new ArrayList<StartContainerRequest>();
    for (StartContainerRequestProto r : requestList) {
        this.requests.add(convertFromProtoFormat(r));
    }
}
Also used : StartContainerRequestProto(org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto) StartContainersRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProtoOrBuilder) StartContainerRequest(org.apache.hadoop.yarn.api.protocolrecords.StartContainerRequest)

Aggregations

StartContainerRequest (org.apache.hadoop.yarn.api.protocolrecords.StartContainerRequest)1 StartContainerRequestProto (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto)1 StartContainersRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersRequestProtoOrBuilder)1