managed/src/main/java/com/yugabyte/yw/common/PlacementInfoUtil.java
/**
   * Construct a delta node set and add all those nodes to the Universe's set of nodes.
   */
Construct a delta node set and add all those nodes to the Universe's set of nodes.
Construct a delta node set and add all those nodes to the Universe ' s set of nodes .
private static void addNodeDetailSetToTaskParams(LinkedHashSet<PlacementIndexes> indexes,
                                                   int startIndex,
                                                   int numDeltaNodes,
                                                   Cluster cluster,
                                                   Collection<NodeDetails> nodeDetailsSet,
                                                   Map<String, NodeDetails> deltaNodesMap) {
    Set<NodeDetails> deltaNodesSet = new HashSet<NodeDetails>();
    Iterator<PlacementIndexes> iter = indexes.iterator();
    for (int nodeIdx = startIndex; nodeIdx < startIndex + numDeltaNodes; nodeIdx++) {
      PlacementIndexes index = null;
      if (iter.hasNext()) {
        index = iter.next();
      } else {
        iter = indexes.iterator();
        index = iter.next();
      }
      NodeDetails nodeDetails = createNodeDetailsWithPlacementIndex(cluster, index, nodeIdx);
      deltaNodesSet.add(nodeDetails);
      deltaNodesMap.put(nodeDetails.nodeName, nodeDetails);
    }
    nodeDetailsSet.addAll(deltaNodesSet);
  }
private static void addNodeDetailSetToTaskParams ( LinkedHashSet < PlacementIndexes > indexes , int startIndex , int numDeltaNodes , Cluster cluster , Collection < NodeDetails > nodeDetailsSet , Map < String , NodeDetails > deltaNodesMap ) { Set < NodeDetails > deltaNodesSet = new HashSet < NodeDetails > ( ) ; Iterator < PlacementIndexes > iter = indexes . iterator ( ) ; for ( int nodeIdx = startIndex ; nodeIdx < startIndex + numDeltaNodes ; nodeIdx ++ ) { PlacementIndexes index = null ; if ( iter . hasNext ( ) ) { index = iter . next ( ) ; } else { iter = indexes . iterator ( ) ; index = iter . next ( ) ; } NodeDetails nodeDetails = createNodeDetailsWithPlacementIndex ( cluster , index , nodeIdx ) ; deltaNodesSet . add ( nodeDetails ) ; deltaNodesMap . put ( nodeDetails . nodeName , nodeDetails ) ; } nodeDetailsSet . addAll ( deltaNodesSet ) ; }
Construct a delta node set and add all those nodes to the Universe's set of nodes.
Construct a delta node set and add all those nodes to the Universe ' s set of nodes .
// Create the names and known properties of all the nodes to be created.