Class RegisterHostMessage

  • All Implemented Interfaces:
    Serializable

    public class RegisterHostMessage
    extends MonitorMessage
    This type of message is sent to the monitor registry server to register the host for remote JMX monitoring.
    See Also:
    Serialized Form
    • Constructor Detail

      • RegisterHostMessage

        public RegisterHostMessage​(String name,
                                   int jmxPort,
                                   int rmiPort)
        Creates a message with the JMX host entry for a host registered to the monitor server.
        Parameters:
        name - The name of the remote host.
        jmxPort - The JMX port allocated on the remote host.
        rmiPort - The RMI port allocated on the remote host.
        Throws:
        ArgumentNotValid - on null or empty hostname, or negative ports.
    • Method Detail

      • getHostEntry

        public HostEntry getHostEntry()
        Get the host entry for the host registering.
        Returns:
        The host entry.