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:
- JSONWriter.Writable
 
 public class Replica extends ZkNodeProps 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classReplica.StateThe replica's state.static classReplica.Type
 - 
Field SummaryFields Modifier and Type Field Description StringcollectionStringslice- 
Fields inherited from class org.apache.solr.common.cloud.ZkNodePropspropMap
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetBaseUrl()StringgetCollection()StringgetCoreName()SolrCore name.StringgetCoreUrl()StringgetName()Also known as coreNodeName.StringgetNodeName()The name of the node this replica resides onStringgetProperty(String propertyName)StringgetSlice()Replica.StategetState()Returns theReplica.Stateof this replica.Replica.TypegetType()inthashCode()booleanisActive(Set<String> liveNodes)StringtoString()- 
Methods inherited from class org.apache.solr.common.cloud.ZkNodePropscontainsKey, fromKeyVals, get, getBool, getInt, getProperties, getStr, getStr, keySet, load, plus, plus, shallowCopy, write
 
- 
 
- 
- 
- 
Method Detail- 
getCollectionpublic String getCollection() 
 - 
getSlicepublic String getSlice() 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- ZkNodeProps
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- ZkNodeProps
 
 - 
getNamepublic String getName() Also known as coreNodeName.
 - 
getCoreUrlpublic String getCoreUrl() 
 - 
getBaseUrlpublic String getBaseUrl() 
 - 
getCoreNamepublic String getCoreName() SolrCore name.
 - 
getNodeNamepublic String getNodeName() The name of the node this replica resides on
 - 
getStatepublic Replica.State getState() Returns theReplica.Stateof this replica.
 - 
getTypepublic Replica.Type getType() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- ZkNodeProps
 
 
- 
 
-