Search in sources :

Example 1 with CheckForDecommissioningNodesResponseProtoOrBuilder

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

the class CheckForDecommissioningNodesResponsePBImpl method initNodesDecommissioning.

private void initNodesDecommissioning() {
    if (this.decommissioningNodes != null) {
        return;
    }
    CheckForDecommissioningNodesResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<NodeIdProto> nodeIds = p.getDecommissioningNodesList();
    this.decommissioningNodes = new HashSet<NodeId>();
    for (NodeIdProto nodeIdProto : nodeIds) {
        this.decommissioningNodes.add(convertFromProtoFormat(nodeIdProto));
    }
}
Also used : CheckForDecommissioningNodesResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.CheckForDecommissioningNodesResponseProtoOrBuilder) NodeId(org.apache.hadoop.yarn.api.records.NodeId) NodeIdProto(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto)

Aggregations

NodeId (org.apache.hadoop.yarn.api.records.NodeId)1 NodeIdProto (org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto)1 CheckForDecommissioningNodesResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.CheckForDecommissioningNodesResponseProtoOrBuilder)1