Search in sources :

Example 1 with GetContainerStatusesRequestProtoOrBuilder

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