Search in sources :

Example 6 with NodeHeartbeatRequestProtoOrBuilder

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

the class NodeHeartbeatRequestPBImpl method getNodeStatus.

@Override
public NodeStatus getNodeStatus() {
    NodeHeartbeatRequestProtoOrBuilder p = viaProto ? proto : builder;
    if (this.nodeStatus != null) {
        return this.nodeStatus;
    }
    if (!p.hasNodeStatus()) {
        return null;
    }
    this.nodeStatus = convertFromProtoFormat(p.getNodeStatus());
    return this.nodeStatus;
}
Also used : NodeHeartbeatRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProtoOrBuilder)

Aggregations

NodeHeartbeatRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeHeartbeatRequestProtoOrBuilder)6 ApplicationId (org.apache.hadoop.yarn.api.records.ApplicationId)1 NodeLabel (org.apache.hadoop.yarn.api.records.NodeLabel)1 NodeLabelProto (org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto)1 AppCollectorsMapProto (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorsMapProto)1 LogAggregationReportProto (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.LogAggregationReportProto)1 NodeLabelsProto (org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.NodeLabelsProto)1 LogAggregationReport (org.apache.hadoop.yarn.server.api.protocolrecords.LogAggregationReport)1