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 ReplicationMsg
MSG_TYPE_DISK_ENCODING -
Method Summary
Modifier and TypeMethodDescriptionfinal voidappendEncodedMods(ByteStringBuilder builder) Appends the encoded modifications to the provided builder.getMods()Get the Modifications associated to the UpdateMsg to the provided value.voidsetMods(List<Modification> mods) Set the Modification associated to the UpdateMsg to the provided value.Methods inherited from class LdapUpdateMsg
appendEclIncludes, createRequest, createRequest, generateMsg, getBytes, getBytesLatest, getDN, getEclIncludes, getEntryUUID, setDN, setEclIncludes, size, toJson, toStringMethods inherited from class UpdateMsg
accept, compareTo, equals, getBytes, getCsn, getVersion, hashCodeMethods inherited from class 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- TheByteStringBuilderwhere the encoded modifications will be appended.
-