Package org.elasticsearch.index.seqno
Class ReplicationTracker.PrimaryContext
- java.lang.Object
-
- org.elasticsearch.index.seqno.ReplicationTracker.PrimaryContext
-
- All Implemented Interfaces:
Writeable
- Enclosing class:
- ReplicationTracker
public static class ReplicationTracker.PrimaryContext extends Object implements Writeable
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
Constructors Constructor Description PrimaryContext(long clusterStateVersion, Map<String,ReplicationTracker.CheckpointState> checkpoints, IndexShardRoutingTable routingTable)PrimaryContext(StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longclusterStateVersion()booleanequals(Object o)Map<String,ReplicationTracker.CheckpointState>getCheckpointStates()IndexShardRoutingTablegetRoutingTable()inthashCode()StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
-
-
Constructor Detail
-
PrimaryContext
public PrimaryContext(long clusterStateVersion, Map<String,ReplicationTracker.CheckpointState> checkpoints, IndexShardRoutingTable routingTable)
-
PrimaryContext
public PrimaryContext(StreamInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
clusterStateVersion
public long clusterStateVersion()
-
getCheckpointStates
public Map<String,ReplicationTracker.CheckpointState> getCheckpointStates()
-
getRoutingTable
public IndexShardRoutingTable getRoutingTable()
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
-