Package org.apache.solr.common.cloud
Class Replica
- java.lang.Object
-
- org.apache.solr.common.cloud.ZkNodeProps
-
- org.apache.solr.common.cloud.Replica
-
- All Implemented Interfaces:
org.noggit.JSONWriter.Writable
public class Replica extends ZkNodeProps
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReplica.StateThe replica's state.static classReplica.Type
-
Field Summary
-
Fields inherited from class org.apache.solr.common.cloud.ZkNodeProps
propMap
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetBaseUrl()StringgetCoreName()SolrCore name.StringgetCoreUrl()StringgetName()Also known as coreNodeName.StringgetNodeName()The name of the node this replica resides onStringgetProperty(String propertyName)Replica.StategetState()Returns theReplica.Stateof this replica.Replica.TypegetType()booleanisActive(Set<String> liveNodes)StringtoString()-
Methods inherited from class org.apache.solr.common.cloud.ZkNodeProps
containsKey, fromKeyVals, get, getBool, getInt, getProperties, getStr, getStr, keySet, load, plus, plus, shallowCopy, write
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classZkNodeProps
-
getName
public String getName()
Also known as coreNodeName.
-
getCoreUrl
public String getCoreUrl()
-
getBaseUrl
public String getBaseUrl()
-
getCoreName
public String getCoreName()
SolrCore name.
-
getNodeName
public String getNodeName()
The name of the node this replica resides on
-
getState
public Replica.State getState()
Returns theReplica.Stateof this replica.
-
getType
public Replica.Type getType()
-
toString
public String toString()
- Overrides:
toStringin classZkNodeProps
-
-