public class ErrorMsg extends RoutableMsg
ALL_SERVERS, destination, senderID, THE_CLOSEST_SERVER, UNKNOWN_SERVER
MSG_TYPE_DISK_ENCODING
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, getSenderID
generateMsg
public 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 ReplicationMsg
version
- 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 RoutableMsg
public long getCreationTime()
public void setCreationTime(long creationTime)
creationTime
- the creation time of this message.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.