use of org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto in project hadoop by apache.
the class StartContainersRequestPBImpl method addLocalRequestsToProto.
private void addLocalRequestsToProto() {
maybeInitBuilder();
builder.clearStartContainerRequest();
List<StartContainerRequestProto> protoList = new ArrayList<StartContainerRequestProto>();
for (StartContainerRequest r : this.requests) {
protoList.add(convertToProtoFormat(r));
}
builder.addAllStartContainerRequest(protoList);
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainerRequestProto 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));
}
}
Aggregations