use of org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto in project hadoop by apache.
the class NodeHeartbeatResponsePBImpl method initContainersToCleanup.
private void initContainersToCleanup() {
if (this.containersToCleanup != null) {
return;
}
NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerIdProto> list = p.getContainersToCleanupList();
this.containersToCleanup = new ArrayList<ContainerId>();
for (ContainerIdProto c : list) {
this.containersToCleanup.add(convertFromProtoFormat(c));
}
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto in project hadoop by apache.
the class GetContainerStatusesRequestPBImpl method addLocalContainerIdsToProto.
private void addLocalContainerIdsToProto() {
maybeInitBuilder();
builder.clearContainerId();
if (this.containerIds == null)
return;
List<ContainerIdProto> protoList = new ArrayList<ContainerIdProto>();
for (ContainerId id : containerIds) {
protoList.add(convertToProtoFormat(id));
}
builder.addAllContainerId(protoList);
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto in project hadoop by apache.
the class StopContainersRequestPBImpl method initLocalContainerIds.
private void initLocalContainerIds() {
if (this.containerIds != null) {
return;
}
StopContainersRequestProtoOrBuilder 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 StopContainersRequestPBImpl method addLocalContainerIdsToProto.
private void addLocalContainerIdsToProto() {
maybeInitBuilder();
builder.clearContainerId();
if (this.containerIds == null)
return;
List<ContainerIdProto> protoList = new ArrayList<ContainerIdProto>();
for (ContainerId id : containerIds) {
protoList.add(convertToProtoFormat(id));
}
builder.addAllContainerId(protoList);
}
use of org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto in project hadoop by apache.
the class StopContainersResponsePBImpl method initSucceededRequests.
private void initSucceededRequests() {
if (this.succeededRequests != null)
return;
StopContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerIdProto> list = p.getSucceededRequestsList();
this.succeededRequests = new ArrayList<ContainerId>();
for (ContainerIdProto c : list) {
this.succeededRequests.add(convertFromProtoFormat(c));
}
}
Aggregations