Package org.apache.solr.cloud.overseer
Class SliceMutator
- java.lang.Object
-
- org.apache.solr.cloud.overseer.SliceMutator
-
public class SliceMutator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.solr.client.solrj.cloud.SolrCloudManager
cloudManager
static String
PREFERRED_LEADER_PROP
static Set<String>
SLICE_UNIQUE_BOOLEAN_PROPERTIES
protected org.apache.solr.client.solrj.cloud.DistribStateManager
stateManager
protected org.apache.solr.common.cloud.SolrZkClient
zkClient
-
Constructor Summary
Constructors Constructor Description SliceMutator(org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ZkWriteCommand
addReplica(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
addRoutingRule(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
removeReplica(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
removeRoutingRule(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
setShardLeader(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
static org.apache.solr.common.cloud.DocCollection
updateReplica(org.apache.solr.common.cloud.DocCollection collection, org.apache.solr.common.cloud.Slice slice, String coreNodeName, org.apache.solr.common.cloud.Replica replica)
ZkWriteCommand
updateShardState(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
-
-
-
Field Detail
-
PREFERRED_LEADER_PROP
public static final String PREFERRED_LEADER_PROP
- See Also:
- Constant Field Values
-
cloudManager
protected final org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager
-
stateManager
protected final org.apache.solr.client.solrj.cloud.DistribStateManager stateManager
-
zkClient
protected final org.apache.solr.common.cloud.SolrZkClient zkClient
-
-
Method Detail
-
addReplica
public ZkWriteCommand addReplica(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
-
removeReplica
public ZkWriteCommand removeReplica(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
-
setShardLeader
public ZkWriteCommand setShardLeader(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
-
updateShardState
public ZkWriteCommand updateShardState(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
-
addRoutingRule
public ZkWriteCommand addRoutingRule(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
-
removeRoutingRule
public ZkWriteCommand removeRoutingRule(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
-
updateReplica
public static org.apache.solr.common.cloud.DocCollection updateReplica(org.apache.solr.common.cloud.DocCollection collection, org.apache.solr.common.cloud.Slice slice, String coreNodeName, org.apache.solr.common.cloud.Replica replica)
-
-