Uses of Class
org.apache.solr.cloud.overseer.ZkWriteCommand
-
Packages that use ZkWriteCommand Package Description org.apache.solr.cloud Classes for dealing with ZooKeeper when operating in SolrCloud mode.org.apache.solr.cloud.overseer Classes for updating cluster state in SolrCloud mode. -
-
Uses of ZkWriteCommand in org.apache.solr.cloud
Methods in org.apache.solr.cloud that return ZkWriteCommand Modifier and Type Method Description abstract ZkWriteCommand
DistributedClusterStateUpdater.MutatingCommand. buildWriteCommand(org.apache.solr.client.solrj.cloud.SolrCloudManager scm, org.apache.solr.common.cloud.ClusterState cs, org.apache.solr.common.cloud.ZkNodeProps message)
mutating commands that return a single ZkWriteCommand override this method -
Uses of ZkWriteCommand in org.apache.solr.cloud.overseer
Fields in org.apache.solr.cloud.overseer declared as ZkWriteCommand Modifier and Type Field Description static ZkWriteCommand
ZkStateWriter. NO_OP
Represents a no-opZkWriteCommand
which will result in no modification to cluster stateFields in org.apache.solr.cloud.overseer with type parameters of type ZkWriteCommand Modifier and Type Field Description protected Map<String,ZkWriteCommand>
ZkStateWriter. updates
Methods in org.apache.solr.cloud.overseer that return ZkWriteCommand Modifier and Type Method Description ZkWriteCommand
SliceMutator. addReplica(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
ReplicaMutator. addReplicaProperty(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
SliceMutator. addRoutingRule(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
ClusterStateMutator. createCollection(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
CollectionMutator. createShard(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
ClusterStateMutator. deleteCollection(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
ReplicaMutator. deleteReplicaProperty(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
CollectionMutator. deleteShard(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
CollectionMutator. modifyCollection(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
SliceMutator. removeReplica(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
SliceMutator. removeRoutingRule(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
SliceMutator. setShardLeader(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
ZkWriteCommand
ReplicaMutator. setState(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
Handles state updatesZkWriteCommand
SliceMutator. updateShardState(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
protected ZkWriteCommand
ReplicaMutator. updateState(org.apache.solr.common.cloud.ClusterState prevState, org.apache.solr.common.cloud.ZkNodeProps message)
Methods in org.apache.solr.cloud.overseer that return types with arguments of type ZkWriteCommand Modifier and Type Method Description static Optional<ZkWriteCommand>
NodeMutator. computeCollectionUpdate(String nodeName, String collectionName, org.apache.solr.common.cloud.DocCollection docCollection, org.apache.solr.common.cloud.SolrZkClient client)
Returns the write command needed to update the replicas of a given collection given the identity of a node being down.List<ZkWriteCommand>
NodeMutator. downNode(org.apache.solr.common.cloud.ClusterState clusterState, org.apache.solr.common.cloud.ZkNodeProps message)
Methods in org.apache.solr.cloud.overseer with parameters of type ZkWriteCommand Modifier and Type Method Description org.apache.solr.common.cloud.ClusterState
ZkStateWriter. writeUpdate(ZkWriteCommand command)
Method parameters in org.apache.solr.cloud.overseer with type arguments of type ZkWriteCommand Modifier and Type Method Description org.apache.solr.common.cloud.ClusterState
ZkStateWriter. enqueueUpdate(org.apache.solr.common.cloud.ClusterState prevState, List<ZkWriteCommand> cmds, ZkStateWriter.ZkWriteCallback callback)
Applies the givenZkWriteCommand
on theprevState
.org.apache.solr.common.cloud.ClusterState
ZkStateWriter. writePendingUpdates(Map<String,ZkWriteCommand> updates, boolean resetPendingUpdateCounters)
Writes all pending updates to ZooKeeper and returns the modified cluster state
-