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 java.lang.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, java.util.Map<java.lang.String,ReplicationTracker.CheckpointState> checkpoints, IndexShardRoutingTable routingTable)
PrimaryContext(StreamInput in)
-
Method Summary
Modifier and Type Method Description long
clusterStateVersion()
boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,ReplicationTracker.CheckpointState>
getCheckpointStates()
IndexShardRoutingTable
getRoutingTable()
int
hashCode()
java.lang.String
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
PrimaryContext
public PrimaryContext(long clusterStateVersion, java.util.Map<java.lang.String,ReplicationTracker.CheckpointState> checkpoints, IndexShardRoutingTable routingTable) -
PrimaryContext
- Throws:
java.io.IOException
-
-
Method Details
-
clusterStateVersion
public long clusterStateVersion() -
getCheckpointStates
-
getRoutingTable
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-