Search in sources :

Example 1 with NodeHeartbeatResponseProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder 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)

Example 2 with NodeHeartbeatResponseProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder in project hadoop by apache.

the class NodeHeartbeatResponsePBImpl method initContainersToDecrease.

private void initContainersToDecrease() {
    if (this.containersToDecrease != null) {
        return;
    }
    NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<ContainerProto> list = p.getContainersToDecreaseList();
    this.containersToDecrease = new ArrayList<>();
    for (ContainerProto c : list) {
        this.containersToDecrease.add(convertFromProtoFormat(c));
    }
}
Also used : NodeHeartbeatResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder) ContainerProto(org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto)

Example 3 with NodeHeartbeatResponseProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder in project hadoop by apache.

the class NodeHeartbeatResponsePBImpl method initContainersToSignal.

private void initContainersToSignal() {
    if (this.containersToSignal != null) {
        return;
    }
    NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<SignalContainerRequestProto> list = p.getContainersToSignalList();
    this.containersToSignal = new ArrayList<SignalContainerRequest>();
    for (SignalContainerRequestProto c : list) {
        this.containersToSignal.add(convertFromProtoFormat(c));
    }
}
Also used : NodeHeartbeatResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder) SignalContainerRequest(org.apache.hadoop.yarn.api.protocolrecords.SignalContainerRequest) SignalContainerRequestProto(org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto)

Example 4 with NodeHeartbeatResponseProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder in project hadoop by apache.

the class NodeHeartbeatResponsePBImpl method initApplicationsToCleanup.

private void initApplicationsToCleanup() {
    if (this.applicationsToCleanup != null) {
        return;
    }
    NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<ApplicationIdProto> list = p.getApplicationsToCleanupList();
    this.applicationsToCleanup = new ArrayList<ApplicationId>();
    for (ApplicationIdProto c : list) {
        this.applicationsToCleanup.add(convertFromProtoFormat(c));
    }
}
Also used : NodeHeartbeatResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder) ApplicationIdProto(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto) ApplicationId(org.apache.hadoop.yarn.api.records.ApplicationId)

Example 5 with NodeHeartbeatResponseProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder 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));
    }
}
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

NodeHeartbeatResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder)11 ApplicationId (org.apache.hadoop.yarn.api.records.ApplicationId)3 ContainerId (org.apache.hadoop.yarn.api.records.ContainerId)2 ContainerIdProto (org.apache.hadoop.yarn.proto.YarnProtos.ContainerIdProto)2 ByteBuffer (java.nio.ByteBuffer)1 SignalContainerRequest (org.apache.hadoop.yarn.api.protocolrecords.SignalContainerRequest)1 ApplicationIdProto (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationIdProto)1 ContainerProto (org.apache.hadoop.yarn.proto.YarnProtos.ContainerProto)1 AppCollectorsMapProto (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorsMapProto)1 SystemCredentialsForAppsProto (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.SystemCredentialsForAppsProto)1 SignalContainerRequestProto (org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto)1