public class ErrorMsg extends RoutableMsg
ALL_SERVERS, destination, senderID, THE_CLOSEST_SERVER, UNKNOWN_SERVER| Constructor and Description |
|---|
ErrorMsg(int sender,
int destination,
LocalizableMessage details)
Creates an ErrorMsg providing the destination server.
|
ErrorMsg(int destination,
LocalizableMessage details)
Creates an ErrorMsg.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes(short version)
Serializes the PDU using the provided replication protocol version.
|
long |
getCreationTime()
Get the creation time of this message.
|
LocalizableMessage |
getDetails()
Get the details from this message.
|
String |
getMsgID()
Get the msgID from this message.
|
void |
setCreationTime(long creationTime)
Get the creation time of this message.
|
String |
toString()
Returns a string representation of the message.
|
getDestination, getSenderIDgenerateMsgpublic ErrorMsg(int sender, int destination, LocalizableMessage 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 ErrorMsg(int destination, LocalizableMessage details)
destination - replication server iddetails - details of the errorpublic LocalizableMessage getDetails()
public String getMsgID()
public byte[] getBytes(short version)
getBytes in class ReplicationMsgversion - The protocol version to use for serialization. The version should
normally be older than the current one.null if the message isn't supported
in that protocol version.public String toString()
toString in class RoutableMsgpublic long getCreationTime()
public void setCreationTime(long creationTime)
creationTime - the creation time of this message.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.