java.lang.Object
is.codion.tools.monitor.model.HostMonitor

public final class HostMonitor extends Object
A HostMonitor
  • Constructor Details

    • 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 Details

    • hostName

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

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

      public void refresh() throws RemoteException
      Refreshes the servers on this host
      Throws:
      RemoteException - in case of an exception
    • serverMonitors

      public Collection<ServerMonitor> serverMonitors()
      Returns:
      the server monitors for this host
    • serverAdded

      public Observer<ServerMonitor> serverAdded()
      Returns:
      an observer notified each time a server is added
    • serverRemoved

      public Observer<ServerMonitor> serverRemoved()
      Returns:
      an observer notified each time a server is removed