Class ClientUserMonitor


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

      • shutdown

        public void shutdown()
        Shuts down this monitor
      • userHistoryTableModel

        public is.codion.swing.framework.server.monitor.ClientUserMonitor.UserHistoryTableModel userHistoryTableModel()
        Returns:
        a TableModel for displaying the user connection history
      • refresh

        public void refresh()
                     throws RemoteException
        Refreshes the user and client data from the server
        Throws:
        RemoteException - in case of a communication error
      • 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
      • idleConnectionTimeoutValue

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

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