use of org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto in project hadoop by apache.
the class IncreaseContainersResourceResponsePBImpl method initSucceededRequests.
private void initSucceededRequests() {
if (this.succeededRequests != null) {
return;
}
IncreaseContainersResourceResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerIdProto> list = p.getSucceededRequestsList();
this.succeededRequests = new ArrayList<ContainerId>();
for (ContainerIdProto c : list) {
this.succeededRequests.add(convertFromProtoFormat(c));
}
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto in project hadoop by apache.
the class StartContainersResponsePBImpl method initSucceededContainers.
private void initSucceededContainers() {
if (this.succeededContainers != null)
return;
StartContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerIdProto> list = p.getSucceededRequestsList();
this.succeededContainers = new ArrayList<ContainerId>();
for (ContainerIdProto c : list) {
this.succeededContainers.add(convertFromProtoFormat(c));
}
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto 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.YarnProtos.ContainerIdProto in project hadoop by apache.
the class GetContainerStatusesRequestPBImpl method initLocalContainerIds.
private void initLocalContainerIds() {
if (this.containerIds != null) {
return;
}
GetContainerStatusesRequestProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerIdProto> containerIds = p.getContainerIdList();
this.containerIds = new ArrayList<ContainerId>();
for (ContainerIdProto id : containerIds) {
this.containerIds.add(convertFromProtoFormat(id));
}
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto in project hadoop by apache.
the class NodeHeartbeatResponsePBImpl method initContainersToBeRemovedFromNM.
private void initContainersToBeRemovedFromNM() {
if (this.containersToBeRemovedFromNM != null) {
return;
}
NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerIdProto> list = p.getContainersToBeRemovedFromNmList();
this.containersToBeRemovedFromNM = new ArrayList<ContainerId>();
for (ContainerIdProto c : list) {
this.containersToBeRemovedFromNM.add(convertFromProtoFormat(c));
}
}
Aggregations