Class ClientUserMonitor
java.lang.Object
is.codion.swing.framework.server.monitor.ClientUserMonitor
A ClientUserMonitor for monitoring connected clients and users connected to a server
-
Constructor Summary
ConstructorsConstructorDescriptionClientUserMonitor(is.codion.framework.server.EntityServerAdmin server, int updateRate) Instantiates a newClientUserMonitor -
Method Summary
Modifier and TypeMethodDescriptionvoidDisconnects all users from the servervoidDisconnects all timed out users from the serverintis.codion.common.value.Value<Integer>voidResets the user connection historyvoidsetMaintenanceInterval(int interval) Sets the server's connection maintenance intervalvoidshutdown()Shuts down this monitoris.codion.common.value.Value<Integer>is.codion.swing.common.model.component.table.FilteredTableModel<?,Integer>
-
Constructor Details
-
ClientUserMonitor
public ClientUserMonitor(is.codion.framework.server.EntityServerAdmin server, int updateRate) 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
public is.codion.swing.common.model.component.table.FilteredTableModel<?,Integer> 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
-