| 程序包 | 说明 |
|---|---|
| org.apache.solr.common.cloud |
Common Solr Cloud and ZooKeeper related classes reused on both clients & server.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2006–2022 The Apache Software Foundation. All rights reserved.