Class MonitorRequestMsg


  • public 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 a MonitorRequestMsg from RS1, RS2 responds with a MonitorMessage.
    • Constructor Detail

      • MonitorRequestMsg

        public MonitorRequestMsg​(int serverID,
                                 int destination)
        Creates a message.
        Parameters:
        serverID - The sender server of this message.
        destination - The server or servers targeted by this message.
    • 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 class ReplicationMsg
        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