public class Assign extends Object
| Constructor and Description | 
|---|
Assign()  | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
assignNode(String collection,
          ClusterState state)  | 
static String | 
assignShard(String collection,
           ClusterState state,
           Integer numShards)
Assign a new unique id up to slices count - then add replicas evenly. 
 | 
static List<org.apache.solr.cloud.Assign.ReplicaCount> | 
getNodesForNewReplicas(ClusterState clusterState,
                      String collectionName,
                      String shard,
                      int numberOfNodes,
                      String createNodeSetStr,
                      CoreContainer cc)  | 
public static String assignNode(String collection, ClusterState state)
public static String assignShard(String collection, ClusterState state, Integer numShards)
public static List<org.apache.solr.cloud.Assign.ReplicaCount> getNodesForNewReplicas(ClusterState clusterState, String collectionName, String shard, int numberOfNodes, String createNodeSetStr, CoreContainer cc)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.