java.lang.Object
is.codion.swing.framework.server.monitor.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
    • addServerAddedListener

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

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