Class ModifyCommonMsg
- java.lang.Object
-
- org.opends.server.replication.protocol.ReplicationMsg
-
- org.opends.server.replication.protocol.UpdateMsg
-
- org.opends.server.replication.protocol.LDAPUpdateMsg
-
- org.opends.server.replication.protocol.ModifyCommonMsg
-
- All Implemented Interfaces:
Comparable<UpdateMsg>
- Direct Known Subclasses:
ModifyDNMsg
,ModifyMsg
public abstract class ModifyCommonMsg extends LDAPUpdateMsg
This class holds every common code for the modify messages (mod, moddn).
-
-
Field Summary
-
Fields inherited from class org.opends.server.replication.protocol.ReplicationMsg
COMPACT_MASK, COMPACT_TYPE_ADD, COMPACT_TYPE_DELETE, COMPACT_TYPE_MODIFY, COMPACT_TYPE_MODIFY_DN, COMPACT_TYPE_REPLICA_OFFLINE, MSG_TYPE_DISK_ENCODING
-
-
Constructor Summary
Constructors Constructor Description ModifyCommonMsg(CSN csn, UUID entryUUID, Dn dn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendEncodedMods(ByteStringBuilder builder)
Appends the encoded modifications to the provided builder.List<Modification>
getMods()
Get the Modifications associated to the UpdateMsg to the provided value.void
setMods(List<Modification> mods)
Set the Modification associated to the UpdateMsg to the provided value.-
Methods inherited from class org.opends.server.replication.protocol.LDAPUpdateMsg
appendEclIncludes, createRequest, createRequest, generateMsg, getBytes, getBytesLatest, getDN, getEclIncludes, getEntryUUID, setDN, setEclIncludes, size, toJson, toString
-
Methods inherited from class org.opends.server.replication.protocol.UpdateMsg
accept, compareTo, equals, getBytes, getCSN, getVersion, hashCode
-
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
decodeMsg, isRetryable
-
-
-
-
Method Detail
-
setMods
public void setMods(List<Modification> mods)
Set the Modification associated to the UpdateMsg to the provided value.- Parameters:
mods
- The new Modification associated to this ModifyMsg.
-
getMods
public List<Modification> getMods() throws IOException
Get the Modifications associated to the UpdateMsg to the provided value.- Returns:
- the list of modifications
- Throws:
LdapException
- In case of LDAP decoding exceptionIOException
- In case of ASN1 decoding exception
-
appendEncodedMods
public final void appendEncodedMods(ByteStringBuilder builder)
Appends the encoded modifications to the provided builder.- Parameters:
builder
- TheByteStringBuilder
where the encoded modifications will be appended.
-
-