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 class
Replica.State
The replica's state.static class
Replica.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 boolean
equals(Object o)
String
getBaseUrl()
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)
Replica.State
getState()
Returns theReplica.State
of this replica.Replica.Type
getType()
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
-
equals
public boolean equals(Object o)
- Overrides:
equals
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
-
-