public class ClusterStateMutator extends Object
Modifier and Type | Field and Description |
---|---|
protected ZkStateReader |
zkStateReader |
Constructor and Description |
---|
ClusterStateMutator(ZkStateReader zkStateReader) |
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 ZkStateReader zkStateReader
public ClusterStateMutator(ZkStateReader zkStateReader)
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-2017 Apache Software Foundation. All Rights Reserved.