Class ClientUserMonitor

java.lang.Object
is.codion.tools.monitor.model.ClientUserMonitor

public final class ClientUserMonitor extends Object
A ClientUserMonitor for monitoring connected clients and users connected to a server
  • Constructor Details

    • ClientUserMonitor

      public ClientUserMonitor(EntityServerAdmin server, int updateRate)
      Instantiates a new ClientUserMonitor
      Parameters:
      server - the server
      updateRate - the initial statistics update rate in seconds
  • Method Details

    • shutdown

      public void shutdown()
      Shuts down this monitor
    • clientMonitor

      public ClientMonitor clientMonitor()
    • userHistoryTableModel

      public FilterTableModel<?,ClientUserMonitor.UserHistoryColumns.Id> userHistoryTableModel()
      Returns:
      a TableModel for displaying the user connection history
    • disconnectAll

      public void disconnectAll() throws RemoteException
      Disconnects all users from the server
      Throws:
      RemoteException - in case of an exception
    • disconnectTimedOut

      public void disconnectTimedOut() throws RemoteException
      Disconnects all timed out users from the server
      Throws:
      RemoteException - in case of an exception
    • setMaintenanceInterval

      public void setMaintenanceInterval(int interval) throws RemoteException
      Sets the server's connection maintenance interval
      Parameters:
      interval - the maintenance interval in seconds
      Throws:
      RemoteException - in case of an exception
    • getMaintenanceInterval

      public int getMaintenanceInterval() throws RemoteException
      Returns:
      the server's connection maintenance interval in seconds
      Throws:
      RemoteException - in case of an exception
    • resetHistory

      public void resetHistory()
      Resets the user connection history
    • idleConnectionTimeout

      public Value<Integer> idleConnectionTimeout()
      Returns:
      a Value linked to the idle connection timeout
    • updateInterval

      public Value<Integer> updateInterval()
      Returns:
      the Value controlling the update interval