Search in sources :

Example 1 with AddToClusterNodeLabelsRequestProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.AddToClusterNodeLabelsRequestProtoOrBuilder in project hadoop by apache.

the class AddToClusterNodeLabelsRequestPBImpl method initLocalNodeLabels.

private void initLocalNodeLabels() {
    AddToClusterNodeLabelsRequestProtoOrBuilder 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 : NodeLabel(org.apache.hadoop.yarn.api.records.NodeLabel) AddToClusterNodeLabelsRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.AddToClusterNodeLabelsRequestProtoOrBuilder) 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 AddToClusterNodeLabelsRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.AddToClusterNodeLabelsRequestProtoOrBuilder)1