Class ChangeNumberIndexRecord

java.lang.Object
org.opends.server.replication.server.changelog.api.ChangeNumberIndexRecord

public final class ChangeNumberIndexRecord extends Object
The Change Number Index Record class represents records stored in the ChangeNumberIndexDB. It stores data about a change that happened with the replication.
  • Constructor Details

    • ChangeNumberIndexRecord

      public ChangeNumberIndexRecord(long changeNumber, Dn baseDN, CSN csn)
      Builds an instance of this class.
      Parameters:
      changeNumber - the change number
      baseDN - the baseDN
      csn - the replication CSN field
    • ChangeNumberIndexRecord

      public ChangeNumberIndexRecord(Dn baseDN, CSN csn)
      Builds an instance of this class, with changeNumber equal to 0.
      Parameters:
      baseDN - the baseDN
      csn - the replication CSN field
      See Also:
  • Method Details

    • getBaseDN

      public Dn getBaseDN()
      Getter for the baseDN field.
      Returns:
      the baseDN
    • getCSN

      public CSN getCSN()
      Getter for the replication CSN field.
      Returns:
      The replication CSN field.
    • getChangeNumber

      public long getChangeNumber()
      Getter for the change number field.
      Returns:
      The change number field.
    • toString

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

      public JsonValue toJson()
      Returns the json representation of this change number index record.
      Returns:
      The json representation of this change number index record.