Search in sources :

Example 1 with StopContainersRequestProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProtoOrBuilder 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));
    }
}
Also used : ContainerId(org.apache.hadoop.yarn.api.records.ContainerId) StopContainersRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProtoOrBuilder) ContainerIdProto(org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)

Aggregations

ContainerId (org.apache.hadoop.yarn.api.records.ContainerId)1 ContainerIdProto (org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)1 StopContainersRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProtoOrBuilder)1