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
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
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
appendEncodedMods
(ByteStringBuilder builder) Appends the encoded modifications to the provided builder.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 Details
-
setMods
Set the Modification associated to the UpdateMsg to the provided value.- Parameters:
mods
- The new Modification associated to this ModifyMsg.
-
getMods
Get the Modifications associated to the UpdateMsg to the provided value.- Returns:
- the list of modifications
- Throws:
IOException
- In case of ASN1 decoding exception
-
appendEncodedMods
Appends the encoded modifications to the provided builder.- Parameters:
builder
- TheByteStringBuilder
where the encoded modifications will be appended.
-