org.jminor.framework.server.monitor
Class ServerMonitor
java.lang.Object
org.jminor.framework.server.monitor.ServerMonitor
public final class ServerMonitor
- extends Object
A ServerMonitor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerMonitor
public ServerMonitor(String hostName,
String serverName)
throws RemoteException
- Throws:
RemoteException
setStatsUpdateInterval
public void setStatsUpdateInterval(int value)
shutdown
public void shutdown()
getServer
public EntityConnectionServerAdmin getServer()
getMemoryUsage
public String getMemoryUsage()
getConnectionCount
public int getConnectionCount()
getClientMonitor
public ClientUserMonitor getClientMonitor()
getDatabaseMonitor
public DatabaseMonitor getDatabaseMonitor()
getWarningThreshold
public int getWarningThreshold()
throws RemoteException
- Throws:
RemoteException
setWarningThreshold
public void setWarningThreshold(int threshold)
throws RemoteException
- Throws:
RemoteException
getConnectionLimit
public int getConnectionLimit()
throws RemoteException
- Throws:
RemoteException
setConnectionLimit
public void setConnectionLimit(int value)
throws RemoteException
- Throws:
RemoteException
getLoggingLevel
public ch.qos.logback.classic.Level getLoggingLevel()
throws RemoteException
- Throws:
RemoteException
setLoggingLevel
public void setLoggingLevel(ch.qos.logback.classic.Level level)
throws RemoteException
- Throws:
RemoteException
getConnectionRequestsDataSet
public org.jfree.data.xy.XYSeriesCollection getConnectionRequestsDataSet()
getMemoryUsageDataSet
public org.jfree.data.xy.XYSeriesCollection getMemoryUsageDataSet()
getConnectionCountDataSet
public org.jfree.data.xy.XYSeriesCollection getConnectionCountDataSet()
performGC
public void performGC()
throws RemoteException
- Throws:
RemoteException
resetStats
public void resetStats()
loadDomainModel
public void loadDomainModel(URI location,
String domainClassName)
throws ClassNotFoundException,
RemoteException,
InstantiationException,
IllegalAccessException
- Throws:
ClassNotFoundException
RemoteException
InstantiationException
IllegalAccessException
refreshDomainList
public void refreshDomainList()
throws RemoteException
- Throws:
RemoteException
getDomainTableModel
public TableModel getDomainTableModel()
shutdownServer
public void shutdownServer()
throws RemoteException
- Throws:
RemoteException
getServerName
public String getServerName()
addServerShutDownListener
public void addServerShutDownListener(ActionListener listener)
removeServerShutDownListener
public void removeServerShutDownListener(ActionListener listener)
addStatsUpdatedListener
public void addStatsUpdatedListener(ActionListener listener)
removeStatsUpdatedListener
public void removeStatsUpdatedListener(ActionListener listener)
addWarningThresholdListener
public void addWarningThresholdListener(ActionListener listener)
removeWarningThresholdListener
public void removeWarningThresholdListener(ActionListener listener)
addStatsUpdateIntervalListener
public void addStatsUpdateIntervalListener(ActionListener listener)
removeStatsUpdateIntervalListener
public void removeStatsUpdateIntervalListener(ActionListener listener)
getWarningThresholdObserver
public EventObserver getWarningThresholdObserver()
getConnectionLimitObserver
public EventObserver getConnectionLimitObserver()
getStatsUpdatedObserver
public EventObserver getStatsUpdatedObserver()
getLoggingLevelObserver
public EventObserver getLoggingLevelObserver()