Package org.apache.solr.cloud.overseer
Class ClusterStateMutator
- java.lang.Object
-
- org.apache.solr.cloud.overseer.ClusterStateMutator
-
public class ClusterStateMutator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.solr.client.solrj.cloud.SolrCloudManager
dataProvider
protected org.apache.solr.client.solrj.cloud.DistribStateManager
stateManager
-
Constructor Summary
Constructors Constructor Description ClusterStateMutator(org.apache.solr.client.solrj.cloud.SolrCloudManager dataProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ZkWriteCommand
createCollection(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
deleteCollection(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
static String
getAssignedCoreNodeName(org.apache.solr.common.cloud.DocCollection collection, String forNodeName, String forCoreName)
static String
getAssignedId(org.apache.solr.common.cloud.DocCollection collection, String nodeName)
static void
getShardNames(Integer numShards, List<String> shardNames)
static void
getShardNames(List<String> shardNames, String shards)
static org.apache.solr.common.cloud.ClusterState
newState(org.apache.solr.common.cloud.ClusterState state, String name, org.apache.solr.common.cloud.DocCollection collection)
-
-
-
Method Detail
-
createCollection
public ZkWriteCommand createCollection(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
-
deleteCollection
public ZkWriteCommand deleteCollection(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
-
newState
public static org.apache.solr.common.cloud.ClusterState newState(org.apache.solr.common.cloud.ClusterState state, String name, org.apache.solr.common.cloud.DocCollection collection)
-
getAssignedId
public static String getAssignedId(org.apache.solr.common.cloud.DocCollection collection, String nodeName)
-
-