use of org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder in project hadoop by apache.
the class AllocateRequestPBImpl method initReleases.
private void initReleases() {
if (this.release != null) {
return;
}
AllocateRequestProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerIdProto> list = p.getReleaseList();
this.release = new ArrayList<ContainerId>();
for (ContainerIdProto c : list) {
this.release.add(convertFromProtoFormat(c));
}
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder 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));
}
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder in project hadoop by apache.
the class AllocateRequestPBImpl method getResourceBlacklistRequest.
@Override
public ResourceBlacklistRequest getResourceBlacklistRequest() {
AllocateRequestProtoOrBuilder p = viaProto ? proto : builder;
if (this.blacklistRequest != null) {
return this.blacklistRequest;
}
if (!p.hasBlacklistRequest()) {
return null;
}
this.blacklistRequest = convertFromProtoFormat(p.getBlacklistRequest());
return this.blacklistRequest;
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder 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));
}
}
Aggregations