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 Summary
Nested Classes Modifier and Type Class Description static class
Replica.State
The replica's state.static class
Replica.Type
-
Field Summary
Fields Modifier and Type Field Description String
collection
String
slice
-
Fields inherited from class org.apache.solr.common.cloud.ZkNodeProps
propMap
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 onString
getProperty(String propertyName)
String
getSlice()
Replica.State
getState()
Returns theReplica.State
of this replica.Replica.Type
getType()
int
hashCode()
boolean
isActive(Set<String> liveNodes)
String
toString()
-
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
-
getCollection
public String getCollection()
-
getSlice
public String getSlice()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classZkNodeProps
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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.State
of this replica.
-
getType
public Replica.Type getType()
-
toString
public String toString()
- Overrides:
toString
in classZkNodeProps
-
-