managed/src/main/java/com/yugabyte/yw/common/PlacementInfoUtil.java
// Checks the status of the node by given name in current universe
Checks the status of the node by given name in current universe
Checks the status of the node by given name in current universe
public static boolean isNodeRemovable(String nodeName, Set<NodeDetails> nodeDetailsSet) {
    Iterator<NodeDetails> nodeIter = nodeDetailsSet.iterator();
    while (nodeIter.hasNext()) {
      NodeDetails currentNode = nodeIter.next();
      if (currentNode.nodeName.equals(nodeName) && currentNode.isRemovable()) {
        return true;
      }
    }
    return false;
  }
public static boolean isNodeRemovable ( String nodeName , Set < NodeDetails > nodeDetailsSet ) { Iterator < NodeDetails > nodeIter = nodeDetailsSet . iterator ( ) ; while ( nodeIter . hasNext ( ) ) { NodeDetails currentNode = nodeIter . next ( ) ; if ( currentNode . nodeName . equals ( nodeName ) && currentNode . isRemovable ( ) ) { return true ; } } return false ; }
Checks the status of the node by given name in current universe
Checks the status of the node by given name in current universe