java.lang.Object
is.codion.tools.monitor.model.ClientUserMonitor
A ClientUserMonitor for monitoring connected clients and users connected to a server
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionClientUserMonitor
(EntityServerAdmin server, int updateRate) Instantiates a newClientUserMonitor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Disconnects all users from the servervoid
Disconnects all timed out users from the serverint
void
Resets the user connection historyvoid
setMaintenanceInterval
(int interval) Sets the server's connection maintenance intervalvoid
shutdown()
Shuts down this monitor
-
Constructor Details
-
ClientUserMonitor
Instantiates a newClientUserMonitor
- Parameters:
server
- the serverupdateRate
- the initial statistics update rate in seconds
-
-
Method Details
-
shutdown
public void shutdown()Shuts down this monitor -
clientMonitor
-
userHistoryTableModel
- Returns:
- a TableModel for displaying the user connection history
-
disconnectAll
Disconnects all users from the server- Throws:
RemoteException
- in case of an exception
-
disconnectTimedOut
Disconnects all timed out users from the server- Throws:
RemoteException
- in case of an exception
-
setMaintenanceInterval
Sets the server's connection maintenance interval- Parameters:
interval
- the maintenance interval in seconds- Throws:
RemoteException
- in case of an exception
-
getMaintenanceInterval
- 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
- Returns:
- a Value linked to the idle connection timeout
-
updateInterval
- Returns:
- the
Value
controlling the update interval
-