org.jminor.framework.server.monitor
Class ServerMonitor

java.lang.Object
  extended by org.jminor.framework.server.monitor.ServerMonitor

public final class ServerMonitor
extends Object

A ServerMonitor


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

Constructor Detail

ServerMonitor

public ServerMonitor(String hostName,
                     String serverName)
              throws RemoteException
Throws:
RemoteException
Method Detail

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()