Package | Description |
---|---|
org.apache.solr.common.cloud |
Common Solr Cloud and ZooKeeper related classes reused on both clients & server.
|
Modifier and Type | Method and Description |
---|---|
static PerReplicaStatesOps |
PerReplicaStatesOps.addReplica(String replica,
Replica.State state,
boolean isLeader,
PerReplicaStates rs) |
static PerReplicaStatesOps |
PerReplicaStatesOps.deleteReplica(String replica,
PerReplicaStates rs)
Delete a replica entry from per-replica states
|
static PerReplicaStatesOps |
PerReplicaStatesOps.downReplicas(List<String> replicas,
PerReplicaStates rs)
Mark the given replicas as DOWN
|
static PerReplicaStatesOps |
PerReplicaStatesOps.flipLeader(Set<String> allReplicas,
String next,
PerReplicaStates rs)
Flip the leader replica to a new one
|
static PerReplicaStatesOps |
PerReplicaStatesOps.flipState(String replica,
Replica.State newState,
PerReplicaStates rs)
Change the state of a replica
|
static PerReplicaStatesOps |
PerReplicaStatesOps.modifyCollection(DocCollection coll,
boolean enable,
PerReplicaStates rs)
Switch a collection from/to perReplicaState=true
|
static PerReplicaStatesOps |
PerReplicaStatesOps.touchChildren()
Just creates and deletes a dummy entry so that the
Stat.getCversion() of state.json
is updated |
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.