Package org.elasticsearch.index.seqno
Class ReplicationTracker.PrimaryContext
java.lang.Object
org.elasticsearch.index.seqno.ReplicationTracker.PrimaryContext
- All Implemented Interfaces:
Writeable
- Enclosing class:
- ReplicationTracker
Represents the sequence number component of the primary context. This is the knowledge on the primary of the in-sync and initializing
shards and their local checkpoints.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorDescriptionPrimaryContext
(long clusterStateVersion, Map<String, ReplicationTracker.CheckpointState> checkpoints, IndexShardRoutingTable routingTable) -
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
int
hashCode()
toString()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
PrimaryContext
public PrimaryContext(long clusterStateVersion, Map<String, ReplicationTracker.CheckpointState> checkpoints, IndexShardRoutingTable routingTable) -
PrimaryContext
- Throws:
IOException
-
-
Method Details
-
clusterStateVersion
public long clusterStateVersion() -
getCheckpointStates
-
getRoutingTable
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-