Class ReplicationTracker.CheckpointState

java.lang.Object
org.opensearch.index.seqno.ReplicationTracker.CheckpointState
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
Enclosing class:
ReplicationTracker

@PublicApi(since="1.0.0") public static class ReplicationTracker.CheckpointState extends Object implements org.opensearch.core.common.io.stream.Writeable
The state of the lucene checkpoint
Opensearch.api:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable

    org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
  • Constructor Summary

    Constructors
    Constructor
    Description
    CheckpointState(long localCheckpoint, long globalCheckpoint, boolean inSync, boolean tracked, boolean replicated)
     
    CheckpointState(org.opensearch.core.common.io.stream.StreamInput in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a full copy of this object
    boolean
     
    long
     
    long
     
    int
     
     
    void
    writeTo(org.opensearch.core.common.io.stream.StreamOutput out)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CheckpointState

      public CheckpointState(long localCheckpoint, long globalCheckpoint, boolean inSync, boolean tracked, boolean replicated)
    • CheckpointState

      public CheckpointState(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • copy

      Returns a full copy of this object
    • getLocalCheckpoint

      public long getLocalCheckpoint()
    • getGlobalCheckpoint

      public long getGlobalCheckpoint()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object