Class HostMonitor


  • public final class HostMonitor
    extends Object
    A HostMonitor
    • Constructor Detail

      • HostMonitor

        public HostMonitor​(String hostName,
                           int registryPort,
                           User adminUser,
                           int updateRate)
                    throws RemoteException
        Instantiates a new HostMonitor
        Parameters:
        hostName - the name of the host to monitor
        registryPort - the registry port
        adminUser - the admin user
        updateRate - the initial statistics update rate in seconds
        Throws:
        RemoteException - in case of an exception
    • Method Detail

      • hostName

        public String hostName()
        Returns:
        the host name
      • registryPort

        public int registryPort()
        Returns:
        the registry port
      • addServerAddedListener

        public void addServerAddedListener​(EventDataListener<ServerMonitor> listener)
        Parameters:
        listener - a listener notified when a server is added to this monitor
      • addServerRemovedListener

        public void addServerRemovedListener​(EventDataListener<ServerMonitor> listener)
        Parameters:
        listener - a listener notified when a server is removed from this monitor