Search in sources :

Example 1 with ContainerIdProto

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

Example 2 with ContainerIdProto

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

Example 3 with ContainerIdProto

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

Example 4 with ContainerIdProto

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));
    }
}
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)

Example 5 with ContainerIdProto

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));
    }
}
Also used : NodeHeartbeatResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder) 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)10 ContainerIdProto (org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)10 ArrayList (java.util.ArrayList)2 NodeHeartbeatResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder)2 AllocateRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.AllocateRequestProtoOrBuilder)1 GetContainerStatusesRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainerStatusesRequestProtoOrBuilder)1 IncreaseContainersResourceResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.IncreaseContainersResourceResponseProtoOrBuilder)1 StartContainersResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.StartContainersResponseProtoOrBuilder)1 StopContainersRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersRequestProtoOrBuilder)1 StopContainersResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.StopContainersResponseProtoOrBuilder)1