public class ChangeStatusMsg extends ReplicationMsg
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ChangeStatusMsg(ServerStatus requestedStatus,
ServerStatus newStatus)
Create a new ChangeStatusMsg.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.
|
ServerStatus |
getNewStatus()
Get the requested status.
|
ServerStatus |
getRequestedStatus()
Get the requested status.
|
String |
toString() |
generateMsg
public ChangeStatusMsg(ServerStatus requestedStatus, ServerStatus newStatus)
requestedStatus
- The requested statusnewStatus
- The new statuspublic byte[] getBytes(short protocolVersion)
getBytes
in class ReplicationMsg
protocolVersion
- 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 ServerStatus getRequestedStatus()
public ServerStatus getNewStatus()
Copyright 2010-2020 ForgeRock AS.