use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProtoOrBuilder in project hadoop by apache.
the class DistributedSchedulingAllocateRequestPBImpl method initAllocatedContainers.
private void initAllocatedContainers() {
DistributedSchedulingAllocateRequestProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerProto> list = p.getAllocatedContainersList();
this.containers = new ArrayList<Container>();
for (ContainerProto c : list) {
this.containers.add(convertFromProtoFormat(c));
}
}
use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.DistributedSchedulingAllocateRequestProtoOrBuilder in project hadoop by apache.
the class DistributedSchedulingAllocateRequestPBImpl method getAllocateRequest.
@Override
public AllocateRequest getAllocateRequest() {
DistributedSchedulingAllocateRequestProtoOrBuilder p = viaProto ? proto : builder;
if (this.allocateRequest != null) {
return this.allocateRequest;
}
if (!p.hasAllocateRequest()) {
return null;
}
this.allocateRequest = convertFromProtoFormat(p.getAllocateRequest());
return this.allocateRequest;
}
Aggregations