public class SliceMutator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREFERRED_LEADER_PROP |
static Set<String> |
SLICE_UNIQUE_BOOLEAN_PROPERTIES |
protected ZkStateReader |
zkStateReader |
Constructor and Description |
---|
SliceMutator(ZkStateReader zkStateReader) |
Modifier and Type | Method and Description |
---|---|
ZkWriteCommand |
addReplica(ClusterState clusterState,
ZkNodeProps message) |
ZkWriteCommand |
addRoutingRule(ClusterState clusterState,
ZkNodeProps message) |
ZkWriteCommand |
removeReplica(ClusterState clusterState,
ZkNodeProps message) |
ZkWriteCommand |
removeRoutingRule(ClusterState clusterState,
ZkNodeProps message) |
ZkWriteCommand |
setShardLeader(ClusterState clusterState,
ZkNodeProps message) |
static DocCollection |
updateReplica(DocCollection collection,
Slice slice,
String coreNodeName,
Replica replica) |
ZkWriteCommand |
updateShardState(ClusterState clusterState,
ZkNodeProps message) |
public static final String PREFERRED_LEADER_PROP
protected final ZkStateReader zkStateReader
public SliceMutator(ZkStateReader zkStateReader)
public ZkWriteCommand addReplica(ClusterState clusterState, ZkNodeProps message)
public ZkWriteCommand removeReplica(ClusterState clusterState, ZkNodeProps message)
public ZkWriteCommand setShardLeader(ClusterState clusterState, ZkNodeProps message)
public ZkWriteCommand updateShardState(ClusterState clusterState, ZkNodeProps message)
public ZkWriteCommand addRoutingRule(ClusterState clusterState, ZkNodeProps message)
public ZkWriteCommand removeRoutingRule(ClusterState clusterState, ZkNodeProps message)
public static DocCollection updateReplica(DocCollection collection, Slice slice, String coreNodeName, Replica replica)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.