|
|||||||||
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.RoutableMessage
org.opends.server.replication.protocol.ErrorMessage
public class ErrorMessage
This message is part of the replication protocol. This message is sent by a server or a replication server when an error is detected in the context of a total update.
Field Summary |
---|
Fields inherited from class org.opends.server.replication.protocol.RoutableMessage |
---|
ALL_SERVERS, destination, senderID, THE_CLOSEST_SERVER, UNKNOWN_SERVER |
Constructor Summary | |
---|---|
ErrorMessage(byte[] in)
Creates a new ErrorMessage by decoding the provided byte array. |
|
ErrorMessage(short destination,
Message details)
Creates an ErrorMessage. |
|
ErrorMessage(short sender,
short destination,
Message details)
Creates an ErrorMessage providing the destination server. |
Method Summary | |
---|---|
byte[] |
getBytes()
Return the byte[] representation of this message. |
Message |
getDetails()
Get the base DN from this InitializeMessage. |
int |
getMsgID()
Get the base DN from this InitializeMessage. |
java.lang.String |
toString()
Returns a string representation of the message. |
Methods inherited from class org.opends.server.replication.protocol.RoutableMessage |
---|
getDestination, getsenderID |
Methods inherited from class org.opends.server.replication.protocol.ReplicationMessage |
---|
addByteArray, generateMsg, getNextLength |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ErrorMessage(short sender, short destination, Message details)
sender
- The server ID of the server that send this message.destination
- The destination server or servers of this message.details
- The message containing the details of the error.public ErrorMessage(short destination, Message details)
destination
- replication server iddetails
- details of the errorpublic ErrorMessage(byte[] in) throws java.util.zip.DataFormatException
in
- A byte array containing the encoded information for the Message
java.util.zip.DataFormatException
- If the in does not contain a properly
encoded message.Method Detail |
---|
public Message getDetails()
public int getMsgID()
public byte[] getBytes()
getBytes
in class ReplicationMessage
public java.lang.String toString()
toString
in class RoutableMessage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |