Class MonitorRequestMsg
- java.lang.Object
-
- org.opends.server.replication.protocol.ReplicationMsg
-
- org.opends.server.replication.protocol.MonitorRequestMsg
-
public final class MonitorRequestMsg extends ReplicationMsg
This message is part of the replication protocol.RS1 sends a
MonitorRequestMsg
to RS2 to request its monitoring information; when RS2 receives aMonitorRequestMsg
from RS1, RS2 responds withMonitorMsg
.Starting with DJ 7.0 replication protocol
MonitorRequestMsg
is not exchanged between servers anymore, but we keep decoding and responding to it for compatibility with previous versions.
-
-
Field Summary
-
Fields inherited from class org.opends.server.replication.protocol.ReplicationMsg
COMPACT_MASK, COMPACT_TYPE_ADD, COMPACT_TYPE_DELETE, COMPACT_TYPE_MODIFY, COMPACT_TYPE_MODIFY_DN, COMPACT_TYPE_REPLICA_OFFLINE, MSG_TYPE_DISK_ENCODING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.int
getDestination()
Get the destination.int
getSenderID()
Get the server ID of the server that sent this message.String
toString()
-
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
decodeMsg, isRetryable
-
-
-
-
Method Detail
-
getBytes
public byte[] getBytes(short protocolVersion)
Description copied from class:ReplicationMsg
Serializes the PDU using the provided replication protocol version. WARNING: should be overwritten by a PDU (sub class) we want to support older protocol version serialization for.- Specified by:
getBytes
in classReplicationMsg
- Parameters:
protocolVersion
- The protocol version to use for serialization. The version should normally be older than the current one.- Returns:
- The encoded PDU, or
null
if the message isn't supported in that protocol version.
-
getDestination
public int getDestination()
Get the destination.- Returns:
- the destination
-
getSenderID
public int getSenderID()
Get the server ID of the server that sent this message.- Returns:
- the server id
-
-