public final class HostMonitor
extends java.lang.Object
Constructor and Description |
---|
HostMonitor(java.lang.String hostName,
int registryPort,
User adminUser)
Instantiates a new
HostMonitor |
Modifier and Type | Method and Description |
---|---|
void |
addServerAddedListener(EventDataListener<ServerMonitor> listener) |
void |
addServerRemovedListener(EventDataListener<ServerMonitor> listener) |
java.lang.String |
getHostName() |
int |
getRegistryPort() |
java.util.Collection<ServerMonitor> |
getServerMonitors() |
void |
refresh()
Refreshes the servers on this host
|
public HostMonitor(java.lang.String hostName, int registryPort, User adminUser) throws java.rmi.RemoteException
HostMonitor
hostName
- the name of the host to monitorregistryPort
- the registry portadminUser
- the admin userjava.rmi.RemoteException
- in case of an exceptionpublic java.lang.String getHostName()
public int getRegistryPort()
public void refresh() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic java.util.Collection<ServerMonitor> getServerMonitors()
public void addServerAddedListener(EventDataListener<ServerMonitor> listener)
listener
- a listener notified when a server is added to this monitorpublic void addServerRemovedListener(EventDataListener<ServerMonitor> listener)
listener
- a listener notified when a server is removed from this monitor