|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opends.server.replication.protocol.ReplicationMessage
org.opends.server.replication.protocol.UpdateMessage
org.opends.server.replication.protocol.ModifyMsg
public class ModifyMsg
Message used to send Modify information.
| Constructor Summary | |
|---|---|
ModifyMsg(byte[] in)
Creates a new Modify message from a byte[]. |
|
ModifyMsg(ChangeNumber changeNumber,
DN dn,
java.util.List<Modification> mods,
java.lang.String entryuuid)
Creates a new Modify message using the provided information. |
|
ModifyMsg(PostOperationModifyOperation op)
Creates a new Modify message from a ModifyOperation. |
|
| Method Summary | |
|---|---|
AbstractOperation |
createOperation(InternalClientConnection connection,
java.lang.String newDn)
Create and Operation from the message using the provided DN. |
byte[] |
getBytes()
Get the byte array representation of this Message. |
java.lang.String |
toString()
|
| Methods inherited from class org.opends.server.replication.protocol.UpdateMessage |
|---|
compareTo, createOperation, decodeHeader, encodeHeader, equals, generateMsg, getChangeNumber, getDn, getUniqueId, hashCode, isAssured, setAssured, setDn |
| Methods inherited from class org.opends.server.replication.protocol.ReplicationMessage |
|---|
addByteArray, generateMsg, getNextLength |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModifyMsg(PostOperationModifyOperation op)
op - The operation to use for building the message
public ModifyMsg(ChangeNumber changeNumber,
DN dn,
java.util.List<Modification> mods,
java.lang.String entryuuid)
changeNumber - The ChangeNumber for the operation.dn - The baseDN of the operation.mods - The mod of the operation.entryuuid - The unique id of the entry on which the modification
needs to apply.
public ModifyMsg(byte[] in)
throws java.util.zip.DataFormatException,
java.io.UnsupportedEncodingException
in - The byte[] from which the operation must be read.
java.util.zip.DataFormatException - If the input byte[] is not a valid modifyMsg
java.io.UnsupportedEncodingException - If UTF8 is not supported by the JVM.| Method Detail |
|---|
public byte[] getBytes()
throws java.io.UnsupportedEncodingException
getBytes in class ReplicationMessagejava.io.UnsupportedEncodingException - When the encoding of the message
failed because the UTF-8 encoding is not supported.
public AbstractOperation createOperation(InternalClientConnection connection,
java.lang.String newDn)
throws LDAPException,
ASN1Exception,
java.util.zip.DataFormatException
createOperation in class UpdateMessageconnection - connection to use when creating the message.newDn - the DN to use when creating the operation.
LDAPException - In case of LDAP decoding exception.
ASN1Exception - In case of ASN1 decoding exception.
java.util.zip.DataFormatException - In case of bad msg format.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||