Class HostMonitor
java.lang.Object
is.codion.swing.framework.server.monitor.HostMonitor
A HostMonitor
-
Constructor Summary
ConstructorsConstructorDescriptionHostMonitor(String hostName, int registryPort, is.codion.common.user.User adminUser, int updateRate) Instantiates a newHostMonitor -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServerAddedListener(Consumer<ServerMonitor> listener) voidaddServerRemovedListener(Consumer<ServerMonitor> listener) hostName()voidrefresh()Refreshes the servers on this hostint
-
Constructor Details
-
HostMonitor
public HostMonitor(String hostName, int registryPort, is.codion.common.user.User adminUser, int updateRate) throws RemoteException Instantiates a newHostMonitor- Parameters:
hostName- the name of the host to monitorregistryPort- the registry portadminUser- the admin userupdateRate- the initial statistics update rate in seconds- Throws:
RemoteException- in case of an exception
-
-
Method Details
-
hostName
- Returns:
- the host name
-
registryPort
public int registryPort()- Returns:
- the registry port
-
refresh
Refreshes the servers on this host- Throws:
RemoteException- in case of an exception
-
serverMonitors
- Returns:
- the server monitors for this host
-
addServerAddedListener
- Parameters:
listener- a listener notified when a server is added to this monitor
-
addServerRemovedListener
- Parameters:
listener- a listener notified when a server is removed from this monitor
-