Package org.apache.solr.common.cloud
Class PerReplicaStates.State
java.lang.Object
org.apache.solr.common.cloud.PerReplicaStates.State
- All Implemented Interfaces:
MapSerializable,MapWriter,NavigableObject,org.noggit.JSONWriter.Writable
- Enclosing class:
PerReplicaStates
The state of a replica as stored as a node under
/collections/collection-name/state.json/replica-state
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringfinal Booleanfinal Stringfinal Replica.Statefinal int -
Constructor Summary
ConstructorsConstructorDescriptionState(String replica, Replica.State state, Boolean isLeader, int version) State(String replica, Replica.State state, Boolean isLeader, int version, PerReplicaStates.State duplicate) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static PerReplicaStates.StatetoString()voidWrites this object's entries out toew.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
Field Details
-
replica
-
state
-
isLeader
-
version
public final int version -
asString
-
-
Constructor Details
-
State
-
State
public State(String replica, Replica.State state, Boolean isLeader, int version, PerReplicaStates.State duplicate)
-
-
Method Details
-
parse
-
writeMap
Description copied from interface:MapWriterWrites this object's entries out toew.- Specified by:
writeMapin interfaceMapWriter- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode() -
getDuplicate
-