Class ServerMonitor


  • public final class ServerMonitor
    extends Object
    A ServerMonitor
    • Method Detail

      • shutdown

        public void shutdown()
        Shuts down this server monitor
      • serverInformation

        public ServerInformation serverInformation()
        Returns:
        the server information
      • memoryUsageObserver

        public ValueObserver<String> memoryUsageObserver()
        Returns:
        the amount of memory being used by the server
      • connectionCountObserver

        public ValueObserver<Integer> connectionCountObserver()
        Returns:
        the number of connected clients
      • clientMonitor

        public ClientUserMonitor clientMonitor()
        Returns:
        the client monitor
      • databaseMonitor

        public DatabaseMonitor databaseMonitor()
        Returns:
        the database monitor
      • logLevels

        public List<Object> logLevels()
        Returns:
        the available log levels
      • connectionRequestsDataset

        public org.jfree.data.xy.XYDataset connectionRequestsDataset()
        Returns:
        the connection request dataset
      • memoryUsageDataset

        public org.jfree.data.xy.XYDataset memoryUsageDataset()
        Returns:
        the memory usage dataset
      • systemLoadDataset

        public org.jfree.data.xy.XYDataset systemLoadDataset()
        Returns:
        the system load dataset
      • connectionCountDataset

        public org.jfree.data.xy.XYDataset connectionCountDataset()
        Returns:
        the connection count dataset
      • gcEventsDataset

        public org.jfree.data.xy.XYDataset gcEventsDataset()
        Returns:
        the garbage collection event dataset
      • threadCountDataset

        public org.jfree.data.xy.XYDataset threadCountDataset()
        Returns:
        the thread count dataset
      • clearStatistics

        public void clearStatistics()
        Clears all collected statistics
      • refreshDomainList

        public void refreshDomainList()
                               throws RemoteException
        Refreshes the domain model list
        Throws:
        RemoteException - in case of an exception
      • domainTableModel

        public TableModel domainTableModel()
        Returns:
        the table model for viewing the domain models
      • shutdownServer

        public void shutdownServer()
        Shuts down the server
      • isServerReachable

        public boolean isServerReachable()
        Returns:
        true if the server is reachable
      • updateIntervalValue

        public Value<Integer> updateIntervalValue()
        Returns:
        the value controlling the update interval
      • addServerShutDownListener

        public void addServerShutDownListener​(EventListener listener)
        Parameters:
        listener - a listener notified when the server is shut down
      • connectionLimitValue

        public Value<Integer> connectionLimitValue()
        Returns:
        a listener notified when the connection number limit is changed
      • logLevelValue

        public Value<Object> logLevelValue()
        Returns:
        a listener notified when the log level has changed