public class Replica extends ZkNodeProps
Modifier and Type | Class and Description |
---|---|
static class |
Replica.State
The replica's state.
|
static class |
Replica.Type |
Modifier and Type | Field and Description |
---|---|
String |
collection |
String |
slice |
Replica.Type |
type |
propMap, STORE_BASE_URL
Constructor and Description |
---|
Replica(String name,
Map<String,Object> propMap,
String collection,
String slice) |
Modifier and Type | Method and Description |
---|---|
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() |
void |
setState(Replica.State state) |
String |
toString() |
containsKey, fromKeyVals, get, getBool, getInt, getProperties, getStr, getStr, keySet, load, plus, plus, shallowCopy, write
public final Replica.Type type
public final String slice
public final String collection
public String getCollection()
public String getSlice()
public boolean equals(Object o)
equals
in class ZkNodeProps
public int hashCode()
hashCode
in class ZkNodeProps
public String getName()
public String getCoreUrl()
public String getBaseUrl()
public String getCoreName()
public String getNodeName()
public Replica.State getState()
Replica.State
of this replica.public void setState(Replica.State state)
public Replica.Type getType()
public boolean isLeader()
public Replica copyWith(PerReplicaStates.State state)
public PerReplicaStates.State getReplicaState()
public static Replica.State getState(String c)
public String toString()
toString
in class ZkNodeProps
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.