Search in sources :

Example 1 with SignalContainerRequestProto

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

Aggregations

SignalContainerRequest (org.apache.hadoop.yarn.api.protocolrecords.SignalContainerRequest)1 NodeHeartbeatResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatResponseProtoOrBuilder)1 SignalContainerRequestProto (org.apache.hadoop.yarn.proto.YarnServiceProtos.SignalContainerRequestProto)1