Class ModifyDNMsg
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
org.opends.server.replication.protocol.ModifyDNMsg
- All Implemented Interfaces:
- Comparable<UpdateMsg>
Message used to send Modify DN information.
- 
Field SummaryFields inherited from class org.opends.server.replication.protocol.ReplicationMsgMSG_TYPE_DISK_ENCODING
- 
Constructor SummaryConstructorsConstructorDescriptionModifyDNMsg(Dn dn, CSN csn, UUID entryUUID, UUID newSuperiorEntryUUID, boolean deleteOldRdn, Dn newSuperior, Rdn newRDN) Construct a new Modify DN message (no mods).ModifyDNMsg(Dn dn, CSN csn, UUID entryUUID, UUID newSuperiorEntryUUID, boolean deleteOldRdn, Dn newSuperior, Rdn newRDN, List<Modification> mods) Construct a new Modify DN message (with mods).ModifyDNMsg(CSN csn, Dn dn, UUID entryUUID, Rdn newRdn, Dn newSuperior, UUID newSuperiorEntryUUID, boolean deleteOldRdn, byte[] encodedMods, byte[] encodedEclIncludes) Creates a new ModifyDN message.ModifyDNMsg(PostOperationModifyDNOperation operation) Builds a ModifyDNMsg.
- 
Method SummaryModifier 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.booleanGet the delete old rdn option.byte[]getBytesLatest(short protocolVersion) Get the byte array representation of this message.booleanGet the delete old rdn option.Get the new RDN of this operation.Get the new superior.Get the new superior id.voidsetDeleteOldRdn(boolean delete) Set the delete old rdn option.voidSet the new RDN of this operation.voidsetNewSuperior(Dn newSuperior) Set the new superior.intsize()Return the number of bytes used by this message.toJson()Returns the json representation of this update message.toString()Methods inherited from class org.opends.server.replication.protocol.ModifyCommonMsgappendEncodedMods, getMods, setModsMethods inherited from class org.opends.server.replication.protocol.LDAPUpdateMsgappendEclIncludes, createRequest, generateMsg, getBytes, getDN, getEclIncludes, getEntryUUID, setDN, setEclIncludesMethods inherited from class org.opends.server.replication.protocol.UpdateMsgcompareTo, equals, getBytes, getCSN, getVersion, hashCodeMethods inherited from class org.opends.server.replication.protocol.ReplicationMsgdecodeMsg, isRetryable
- 
Constructor Details- 
ModifyDNMsgBuilds a ModifyDNMsg.- Parameters:
- operation- the modify DN operation that will be used to build the ModifyDNMsg
 
- 
ModifyDNMsgpublic ModifyDNMsg(Dn dn, CSN csn, UUID entryUUID, UUID newSuperiorEntryUUID, boolean deleteOldRdn, Dn newSuperior, Rdn newRDN) Construct a new Modify DN message (no mods). Note: Keep this constructor version to support already written tests, not using mods.- Parameters:
- dn- The dn to use for building the message.
- csn- The CSN to use for building the message.
- entryUUID- The unique id to use for building the message.
- newSuperiorEntryUUID- The new parent unique id to use for building the message.
- deleteOldRdn- boolean indicating if old rdn must be deleted to use for building the message.
- newSuperior- The new Superior entry to use for building the message.
- newRDN- The new Rdn to use for building the message.
 
- 
ModifyDNMsgpublic ModifyDNMsg(Dn dn, CSN csn, UUID entryUUID, UUID newSuperiorEntryUUID, boolean deleteOldRdn, Dn newSuperior, Rdn newRDN, List<Modification> mods) Construct a new Modify DN message (with mods).- Parameters:
- dn- The dn to use for building the message.
- csn- The CSNto use for building the message.
- entryUUID- The unique id to use for building the message.
- newSuperiorEntryUUID- The new parent unique id to use for building the message.
- deleteOldRdn- boolean indicating if old rdn must be deleted to use for building the message.
- newSuperior- The new Superior entry to use for building the message.
- newRDN- The new Rdn to use for building the message.
- mods- The mod of the operation.
 
- 
ModifyDNMsgpublic ModifyDNMsg(CSN csn, Dn dn, UUID entryUUID, Rdn newRdn, Dn newSuperior, UUID newSuperiorEntryUUID, boolean deleteOldRdn, byte[] encodedMods, byte[] encodedEclIncludes) Creates a new ModifyDN message.- Parameters:
- dn- The dn to use for building the message.
- csn- The CSNto use for building the message.
- entryUUID- The unique id to use for building the message.
- newRdn- The new Rdn to use for building the message.
- newSuperiorEntryUUID- The new parent unique id to use for building the message.
- deleteOldRdn- boolean indicating if old rdn must be deleted to use for building the message.
- newSuperior- The new Superior entry to use for building the message.
- encodedMods- The encodedMods of the operation.
- encodedEclIncludes- The encodedEclIncludes of the operation.
 
 
- 
- 
Method Details- 
acceptDescription copied from class:UpdateMsgApplies anUpdateMsgVisitorto thisUpdateMsg.- Specified by:
- acceptin class- UpdateMsg
- Type Parameters:
- E- The type of the exception thrown by the visitor method if it fails, or- NeverThrowsExceptionif the visitor cannot fail.
- Parameters:
- visitor- The message visitor.
- Throws:
- E- If the visitor failed.
 
- 
createRequestDescription copied from class:LDAPUpdateMsgCreate a request from this message using the provided DN.- Specified by:
- createRequestin class- LDAPUpdateMsg
- Parameters:
- newDN- the DN to use when creating the request.
- Returns:
- the created request
- Throws:
- LdapException- In case of LDAP decoding exception
- IOException- In case of ASN1 decoding exception
 
- 
getBytesLatestpublic byte[] getBytesLatest(short protocolVersion) Description copied from class:LDAPUpdateMsgGet the byte array representation of this message.This uses the provided version number which must be at least version 4. - Specified by:
- getBytesLatestin class- LDAPUpdateMsg
- Parameters:
- protocolVersion- the actual protocol version to encode into
- Returns:
- The byte array representation of this Message.
 
- 
toString- Overrides:
- toStringin class- LDAPUpdateMsg
 
- 
toJsonDescription copied from class:UpdateMsgReturns the json representation of this update message.- Overrides:
- toJsonin class- LDAPUpdateMsg
- Returns:
- The json representation of this update message.
 
- 
setNewSuperiorSet the new superior.- Parameters:
- newSuperior- the new superior.
 
- 
getNewSuperiorGet the new superior.- Returns:
- The new superior.
 
- 
getNewSuperiorEntryUUIDGet the new superior id.- Returns:
- The new superior id.
 
- 
deleteOldRdnpublic boolean deleteOldRdn()Get the delete old rdn option.- Returns:
- The delete old rdn option.
 
- 
setDeleteOldRdnpublic void setDeleteOldRdn(boolean delete) Set the delete old rdn option.- Parameters:
- delete- The delete old rdn option.
 
- 
getDeleteOldRdnpublic boolean getDeleteOldRdn()Get the delete old rdn option.- Returns:
- true if delete old rdn option
 
- 
getNewRDNGet the new RDN of this operation.- Returns:
- The new RDN of this operation.
 
- 
setNewRDNSet the new RDN of this operation.- Parameters:
- newRDN- the new RDN of this operation.
 
- 
sizepublic int size()Description copied from class:UpdateMsgReturn the number of bytes used by this message.- Specified by:
- sizein class- LDAPUpdateMsg
- Returns:
- The number of bytes used by this message.
 
 
-