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 theChangeNumberIndexDB. It stores data about a change that happened with the replication.
-
-
Constructor Summary
Constructors Constructor Description ChangeNumberIndexRecord(long changeNumber, Dn baseDN, CSN csn)Builds an instance of this class.ChangeNumberIndexRecord(Dn baseDN, CSN csn)Builds an instance of this class, with changeNumber equal to 0.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DngetBaseDN()Getter for the baseDN field.longgetChangeNumber()Getter for the change number field.CSNgetCSN()Getter for the replication CSN field.JsonValuetoJson()Returns the json representation of this change number index record.StringtoString()
-
-
-
Constructor Detail
-
ChangeNumberIndexRecord
public ChangeNumberIndexRecord(long changeNumber, Dn baseDN, CSN csn)Builds an instance of this class.- Parameters:
changeNumber- the change numberbaseDN- the baseDNcsn- 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 baseDNcsn- the replication CSN field- See Also:
ChangeNumberIndexRecord(long, Dn, CSN)
-
-
Method Detail
-
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.
-
toJson
public JsonValue toJson()
Returns the json representation of this change number index record.- Returns:
- The json representation of this change number index record.
-
-