hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/StorageContainerManager.java
private Set<DatanodeDetails> queryNodeState(NodeState nodeState) {
    if (nodeState == NodeState.RAFT_MEMBER ||
        nodeState == NodeState.FREE_NODE) {
      throw new IllegalStateException("Not implemented yet");
    }
    Set<DatanodeDetails> returnSet = new TreeSet<>();
    List<DatanodeDetails> tmp = getScmNodeManager().getNodes(nodeState);
    if ((tmp != null) && (tmp.size() > 0)) {
      returnSet.addAll(tmp);
    }
    return returnSet;
  }
/**
   * Query the System for Nodes.
   *
   * @param nodeState - NodeState that we are interested in matching.
   * @return Set of Datanodes that match the NodeState.
   */
Query the System for Nodes.
@param nodeState - NodeState that we are interested in matching.
@return Set of Datanodes that match the NodeState.
Query the System for Nodes . @param nodeState - NodeState that we are interested in matching . @return Set of Datanodes that match the NodeState .
private Set<DatanodeDetails> queryNodeState(NodeState nodeState) {
    if (nodeState == NodeState.RAFT_MEMBER ||
        nodeState == NodeState.FREE_NODE) {
      throw new IllegalStateException("Not implemented yet");
    }
    Set<DatanodeDetails> returnSet = new TreeSet<>();
    List<DatanodeDetails> tmp = getScmNodeManager().getNodes(nodeState);
    if ((tmp != null) && (tmp.size() > 0)) {
      returnSet.addAll(tmp);
    }
    return returnSet;
  }
private Set < DatanodeDetails > queryNodeState ( NodeState nodeState ) { if ( nodeState == NodeState . RAFT_MEMBER || nodeState == NodeState . FREE_NODE ) { throw new IllegalStateException ( "Not implemented yet" ) ; } Set < DatanodeDetails > returnSet = new TreeSet < > ( ) ; List < DatanodeDetails > tmp = getScmNodeManager ( ) . getNodes ( nodeState ) ; if ( ( tmp != null ) && ( tmp . size ( ) > 0 ) ) { returnSet . addAll ( tmp ) ; } return returnSet ; }
Query the System for Nodes.
Query the System for Nodes .