public class ReplicaMutator extends Object
Modifier and Type | Field and Description |
---|---|
protected SolrCloudManager |
dataProvider |
protected DistribStateManager |
stateManager |
Constructor and Description |
---|
ReplicaMutator(SolrCloudManager dataProvider) |
Modifier and Type | Method and Description |
---|---|
ZkWriteCommand |
addReplicaProperty(ClusterState clusterState,
ZkNodeProps message) |
ZkWriteCommand |
deleteReplicaProperty(ClusterState clusterState,
ZkNodeProps message) |
protected Replica |
setLeader(Replica replica) |
protected Replica |
setProperty(Replica replica,
String key,
String value) |
ZkWriteCommand |
setState(ClusterState clusterState,
ZkNodeProps message) |
protected Replica |
setState(Replica replica,
String state) |
protected Replica |
unsetLeader(Replica replica) |
protected Replica |
unsetProperty(Replica replica,
String key) |
protected ZkWriteCommand |
updateState(ClusterState prevState,
ZkNodeProps message) |
protected ZkWriteCommand |
updateStateNew(ClusterState clusterState,
ZkNodeProps message)
Handles non-legacy state updates
|
protected final SolrCloudManager dataProvider
protected final DistribStateManager stateManager
public ReplicaMutator(SolrCloudManager dataProvider)
public ZkWriteCommand addReplicaProperty(ClusterState clusterState, ZkNodeProps message)
public ZkWriteCommand deleteReplicaProperty(ClusterState clusterState, ZkNodeProps message)
public ZkWriteCommand setState(ClusterState clusterState, ZkNodeProps message)
protected ZkWriteCommand updateState(ClusterState prevState, ZkNodeProps message)
protected ZkWriteCommand updateStateNew(ClusterState clusterState, ZkNodeProps message)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.