public class SliceMutator extends Object
Modifier and Type | Field and Description |
---|---|
protected SolrCloudManager |
dataProvider |
static String |
PREFERRED_LEADER_PROP |
static Set<String> |
SLICE_UNIQUE_BOOLEAN_PROPERTIES |
protected DistribStateManager |
stateManager |
Constructor and Description |
---|
SliceMutator(SolrCloudManager dataProvider) |
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 SolrCloudManager dataProvider
protected final DistribStateManager stateManager
public SliceMutator(SolrCloudManager dataProvider)
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.