public class ClusterStateMutator extends Object
Modifier and Type | Field and Description |
---|---|
protected SolrCloudManager |
dataProvider |
protected DistribStateManager |
stateManager |
Constructor and Description |
---|
ClusterStateMutator(SolrCloudManager dataProvider) |
Modifier and Type | Method and Description |
---|---|
ZkWriteCommand |
createCollection(ClusterState clusterState,
ZkNodeProps message) |
ZkWriteCommand |
deleteCollection(ClusterState clusterState,
ZkNodeProps message) |
static String |
getAssignedCoreNodeName(DocCollection collection,
String forNodeName,
String forCoreName) |
static String |
getAssignedId(DocCollection collection,
String nodeName) |
static void |
getShardNames(Integer numShards,
List<String> shardNames) |
static void |
getShardNames(List<String> shardNames,
String shards) |
ZkWriteCommand |
migrateStateFormat(ClusterState clusterState,
ZkNodeProps message) |
static ClusterState |
newState(ClusterState state,
String name,
DocCollection collection) |
protected final SolrCloudManager dataProvider
protected final DistribStateManager stateManager
public ClusterStateMutator(SolrCloudManager dataProvider)
public ZkWriteCommand createCollection(ClusterState clusterState, ZkNodeProps message)
public ZkWriteCommand deleteCollection(ClusterState clusterState, ZkNodeProps message)
public static ClusterState newState(ClusterState state, String name, DocCollection collection)
public static String getAssignedId(DocCollection collection, String nodeName)
public static String getAssignedCoreNodeName(DocCollection collection, String forNodeName, String forCoreName)
public ZkWriteCommand migrateStateFormat(ClusterState clusterState, ZkNodeProps message)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.