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
 
 public static class PerReplicaStates.State extends Object implements MapWriter 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.MapWriterMapWriter.EntryWriter
 
- 
 - 
Constructor SummaryConstructors Constructor Description State(String replica, Replica.State state, Boolean isLeader, int version)State(String replica, Replica.State state, Boolean isLeader, int version, PerReplicaStates.State duplicate)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)PerReplicaStates.StategetDuplicate()inthashCode()static PerReplicaStates.Stateparse(String serialized)StringtoString()voidwriteMap(MapWriter.EntryWriter ew)- 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.solr.common.NavigableObject_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
 
- 
 
- 
- 
- 
Field Detail- 
replicapublic final String replica 
 - 
statepublic final Replica.State state 
 - 
isLeaderpublic final Boolean isLeader 
 - 
versionpublic final int version 
 - 
asStringpublic final String asString 
 
- 
 - 
Constructor Detail- 
Statepublic State(String replica, Replica.State state, Boolean isLeader, int version) 
 - 
Statepublic State(String replica, Replica.State state, Boolean isLeader, int version, PerReplicaStates.State duplicate) 
 
- 
 - 
Method Detail- 
parsepublic static PerReplicaStates.State parse(String serialized) 
 - 
writeMappublic void writeMap(MapWriter.EntryWriter ew) throws IOException - Specified by:
- writeMapin interface- MapWriter
- Throws:
- IOException
 
 - 
getDuplicatepublic PerReplicaStates.State getDuplicate() 
 
- 
 
-