Search in sources :

Example 1 with GetClusterNodeLabelsResponseProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodeLabelsResponseProtoOrBuilder in project hadoop by apache.

the class GetClusterNodeLabelsResponsePBImpl method initLocalNodeLabels.

private void initLocalNodeLabels() {
    GetClusterNodeLabelsResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<NodeLabelProto> attributesProtoList = p.getNodeLabelsList();
    this.updatedNodeLabels = new ArrayList<NodeLabel>();
    for (NodeLabelProto r : attributesProtoList) {
        this.updatedNodeLabels.add(convertFromProtoFormat(r));
    }
}
Also used : GetClusterNodeLabelsResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodeLabelsResponseProtoOrBuilder) NodeLabel(org.apache.hadoop.yarn.api.records.NodeLabel) NodeLabelProto(org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto)

Aggregations

NodeLabel (org.apache.hadoop.yarn.api.records.NodeLabel)1 NodeLabelProto (org.apache.hadoop.yarn.proto.YarnProtos.NodeLabelProto)1 GetClusterNodeLabelsResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodeLabelsResponseProtoOrBuilder)1