Class UpdateRecord
- java.lang.Object
-
- org.opends.server.replication.server.changelog.api.UpdateRecord
-
- All Implemented Interfaces:
Comparable<UpdateRecord>
public final class UpdateRecord extends Object implements Comparable<UpdateRecord>
Represents an update message with the base DN of the replication domain it belongs to, with support for easy retrieval of the CSN and the replica ID corresponding to the message.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(UpdateRecord other)
boolean
equals(Object obj)
Dn
getBaseDn()
Returns the base DN of the replication domain the message belongs to.CSN
getCsn()
Returns the CSN of the message.UpdateMsg
getMessage()
Returns the update message.ReplicaId
getReplicaId()
Returns the replica ID of the replica the message belongs to.int
hashCode()
static UpdateRecord
newUpdateRecord(Dn baseDn, UpdateMsg msg)
Creates a new update record with the provided base DN and message.String
toString()
-
-
-
Method Detail
-
newUpdateRecord
public static UpdateRecord newUpdateRecord(Dn baseDn, UpdateMsg msg)
Creates a new update record with the provided base DN and message.- Parameters:
baseDn
- the base DN of the replication domain the message belongs tomsg
- the update message- Returns:
- a new update record with the provided base DN and message.
-
getBaseDn
public Dn getBaseDn()
Returns the base DN of the replication domain the message belongs to.- Returns:
- the base DN of the replication domain the message belongs to
-
getCsn
public CSN getCsn()
Returns the CSN of the message.- Returns:
- the CSN of the message
-
getReplicaId
public ReplicaId getReplicaId()
Returns the replica ID of the replica the message belongs to.- Returns:
- the replica ID of the replica the message belongs to
-
getMessage
public UpdateMsg getMessage()
Returns the update message.- Returns:
- the update message
-
compareTo
public int compareTo(UpdateRecord other)
- Specified by:
compareTo
in interfaceComparable<UpdateRecord>
-
-