Class DeleteMsg
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.DeleteMsg
- All Implemented Interfaces:
Comparable<UpdateMsg>
Object used when sending delete information to replication servers.
-
Field Summary
Fields inherited from class ReplicationMsg
MSG_TYPE_DISK_ENCODING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E extends Exception>
voidaccept(UpdateMsgVisitor<E> visitor) Applies anUpdateMsgVisitorto thisUpdateMsg.createRequest(Dn newDN) Create a request from this message using the provided DN.byte[]getBytesLatest(short protocolVersion) Returns the byte array representation of this message.Get the initiator's name of this change.booleanReturns the subtree flag.voidsetInitiatorsName(String initiatorsName) Set the initiator's name of this change.voidsetSubtreeDelete(boolean subtreeDelete) Set the subtree flag.intsize()Returns the number of bytes used by this message.Methods inherited from class LdapUpdateMsg
appendEclIncludes, createRequest, generateMsg, getBytes, getDN, getEclIncludes, getEntryUUID, setDN, setEclIncludes, toJson, toStringMethods inherited from class ReplicationMsg
decodeMsg, isRetryable
-
Constructor Details
-
DeleteMsg
-
DeleteMsg
public DeleteMsg(Csn csn, Dn dn, UUID entryUUID, String initiatorsName, byte[] encodedEclIncludes, boolean subtreeDelete) Creates a new delete message.- Parameters:
csn- The CSN with which the message must be created.dn- The dn with which the message must be created.entryUUID- The unique id with which the message must be created.initiatorsName- The initiator's name of this change.encodedEclIncludes- Encoded form of entry attributes.subtreeDelete- Whether the delete operation is a subtree delete.
-
-
Method Details
-
accept
Description copied from class:UpdateMsgApplies anUpdateMsgVisitorto thisUpdateMsg.- Specified by:
acceptin classUpdateMsg- Type Parameters:
E- The type of the exception thrown by the visitor method if it fails, orNeverThrowsExceptionif the visitor cannot fail.- Parameters:
visitor- The message visitor.- Throws:
E- If the visitor failed.
-
createRequest
Description copied from class:LdapUpdateMsgCreate a request from this message using the provided DN.- Specified by:
createRequestin classLdapUpdateMsg- Parameters:
newDN- the DN to use when creating the request.- Returns:
- the created request
-
getBytesLatest
public byte[] getBytesLatest(short protocolVersion) Description copied from class:LdapUpdateMsgReturns the byte array representation of this message.This uses the provided version number which must be at least version 4.
- Specified by:
getBytesLatestin classLdapUpdateMsg- Parameters:
protocolVersion- the actual protocol version to encode into- Returns:
- the byte array representation of this message
-
size
public int size()Description copied from class:UpdateMsgReturns the number of bytes used by this message.- Specified by:
sizein classLdapUpdateMsg- Returns:
- the number of bytes used by this message
-
setInitiatorsName
Set the initiator's name of this change.- Parameters:
initiatorsName- the initiator's name.
-
getInitiatorsName
Get the initiator's name of this change.- Returns:
- the initiator's name.
-
setSubtreeDelete
public void setSubtreeDelete(boolean subtreeDelete) Set the subtree flag.- Parameters:
subtreeDelete- the subtree flag.
-
isSubtreeDelete
public boolean isSubtreeDelete()Returns the subtree flag.- Returns:
- the subtree flag
-