public class SliceMutator extends Object
Modifier and Type | Field and Description |
---|---|
protected SolrCloudManager |
cloudManager |
static String |
PREFERRED_LEADER_PROP |
static Set<String> |
SLICE_UNIQUE_BOOLEAN_PROPERTIES |
protected DistribStateManager |
stateManager |
protected SolrZkClient |
zkClient |
Constructor and Description |
---|
SliceMutator(SolrCloudManager cloudManager) |
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 cloudManager
protected final DistribStateManager stateManager
protected final SolrZkClient zkClient
public SliceMutator(SolrCloudManager cloudManager)
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-2021 Apache Software Foundation. All Rights Reserved.