public class Replica extends ZkNodeProps
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Replica.State
The replica's state.
|
static class |
Replica.Type |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
collection |
String |
slice |
propMap, STORE_BASE_URL| 限定符和类型 | 方法和说明 |
|---|---|
Replica |
copyWith(PerReplicaStates.State state) |
boolean |
equals(Object o) |
String |
getBaseUrl() |
String |
getCollection() |
String |
getCoreName()
SolrCore name.
|
String |
getCoreUrl() |
String |
getName()
Also known as coreNodeName.
|
String |
getNodeName()
The name of the node this replica resides on
|
String |
getProperty(String propertyName) |
PerReplicaStates.State |
getReplicaState() |
String |
getSlice() |
Replica.State |
getState()
Returns the
Replica.State of this replica. |
static Replica.State |
getState(String c) |
Replica.Type |
getType() |
int |
hashCode() |
boolean |
isActive(Set<String> liveNodes) |
boolean |
isLeader() |
String |
toString() |
containsKey, fromKeyVals, get, getBool, getInt, getProperties, getStr, getStr, keySet, load, plus, plus, shallowCopy, writepublic String getCollection()
public String getSlice()
public boolean equals(Object o)
equals 在类中 ZkNodePropspublic int hashCode()
hashCode 在类中 ZkNodePropspublic String getName()
public String getCoreUrl()
public String getBaseUrl()
public String getCoreName()
public String getNodeName()
public Replica.State getState()
Replica.State of this replica.public Replica.Type getType()
public Replica copyWith(PerReplicaStates.State state)
public PerReplicaStates.State getReplicaState()
public static Replica.State getState(String c)
public boolean isLeader()
public String toString()
toString 在类中 ZkNodePropsCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.