Class JMSMonitorRegistryClient

    • Method Detail

      • getInstance

        public static JMSMonitorRegistryClient getInstance()
        Get the registry client singleton.
        Returns:
        The registry client.
      • register

        public void register​(String localHostName,
                             int jmxPort,
                             int rmiPort)
        Register this host for monitoring. Once this method is called it will reregister for monitoring every minute, to ensure the scheduling is done. If called again, it will restart the timer that registers the host.
        Specified by:
        register in interface MonitorRegistryClient
        Parameters:
        localHostName - The name of the host.
        jmxPort - The port for JMX connections to the host.
        rmiPort - The port for RMI connections for JMX communication.
        Throws:
        ArgumentNotValid - on null or empty localHostName, or negative port numbers.
      • cleanup

        public void cleanup()
        Used to clean up a class from within a shutdown hook. Must not do any logging. Program defensively, please.
        Specified by:
        cleanup in interface CleanupIF