java.lang.Object
is.codion.tools.monitor.model.ClientUserMonitor
A ClientUserMonitor for monitoring connected clients and users connected to a server
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionClientUserMonitor(EntityServerAdmin server, int updateRate) Instantiates a newClientUserMonitor -
Method Summary
Modifier and TypeMethodDescriptionvoidDisconnects all users from the servervoidDisconnects all timed out users from the serverintvoidResets the user connection historyvoidsetMaintenanceInterval(int interval) Sets the server's connection maintenance intervalvoidshutdown()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
Valuecontrolling the update interval
-