public final class ServerMonitor
extends java.lang.Object
Constructor and Description |
---|
ServerMonitor(java.lang.String hostName,
Server.ServerInfo serverInfo,
int registryPort,
User serverAdminUser)
Instantiates a new
ServerMonitor |
public ServerMonitor(java.lang.String hostName, Server.ServerInfo serverInfo, int registryPort, User serverAdminUser) throws java.rmi.RemoteException, ServerException.AuthenticationException
ServerMonitor
hostName
- the host nameserverInfo
- the server inforegistryPort
- the registry portserverAdminUser
- the admin userjava.rmi.RemoteException
- in case of an exceptionServerException.AuthenticationException
- in case the admin user credentials are incorrectpublic void shutdown()
public EntityConnectionServerAdmin getServer()
public Server.ServerInfo getServerInfo()
public java.lang.String getMemoryUsage()
public int getConnectionCount()
public ClientUserMonitor getClientMonitor()
public DatabaseMonitor getDatabaseMonitor()
public int getConnectionLimit() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic void setConnectionLimit(int value) throws java.rmi.RemoteException
value
- the connection number limitjava.rmi.RemoteException
- in case of an exceptionpublic java.util.List getLoggingLevels()
public java.lang.Object getLoggingLevel() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic void setLoggingLevel(java.lang.Object level) throws java.rmi.RemoteException
level
- the server logging leveljava.rmi.RemoteException
- in case of an exceptionpublic org.jfree.data.xy.XYSeriesCollection getConnectionRequestsDataset()
public org.jfree.data.xy.XYSeriesCollection getMemoryUsageDataset()
public org.jfree.data.xy.XYSeriesCollection getSystemLoadDataset()
public org.jfree.data.xy.XYSeriesCollection getConnectionCountDataset()
public org.jfree.data.xy.XYSeriesCollection getGcEventsDataset()
public org.jfree.data.xy.XYSeriesCollection getThreadCountDataset()
public java.lang.String getEnvironmentInfo() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorpublic void resetStatistics()
public void refreshDomainList() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic javax.swing.table.TableModel getDomainTableModel()
public void shutdownServer()
public boolean isServerReachable()
public TaskScheduler getUpdateScheduler()
public void addServerShutDownListener(EventListener listener)
listener
- a listener notified when the server is shut downpublic EventObserver<java.lang.Integer> getConnectionLimitObserver()
public EventObserver getStatisticsUpdatedObserver()
public EventObserver getLoggingLevelObserver()