public final class ClientUserMonitor
extends java.lang.Object
Constructor and Description |
---|
ClientUserMonitor(EntityConnectionServerAdmin server)
Instantiates a new
ClientUserMonitor |
Modifier and Type | Method and Description |
---|---|
void |
disconnectAll()
Disconnects all users from the server
|
void |
disconnectTimedOut()
Disconnects all timed out users from the server
|
javax.swing.DefaultListModel<ClientMonitor> |
getClientTypeListModel() |
int |
getConnectionTimeout() |
EventObserver<java.lang.Integer> |
getConnectionTimeoutObserver() |
int |
getMaintenanceInterval() |
TaskScheduler |
getUpdateScheduler() |
AbstractFilteredTableModel |
getUserHistoryTableModel() |
javax.swing.DefaultListModel<ClientMonitor> |
getUserListModel() |
void |
refresh()
Refreshes the user and client data from the server
|
void |
resetHistory()
Resets the user connection history
|
void |
setConnectionTimeout(int timeout)
Sets the server connection timeout
|
void |
setMaintenanceInterval(int interval)
Sets the servers connection maintenance interval
|
void |
shutdown()
Shuts down this monitor
|
public ClientUserMonitor(EntityConnectionServerAdmin server) throws java.rmi.RemoteException
ClientUserMonitor
server
- the serverjava.rmi.RemoteException
- in case of a communication errorpublic void shutdown()
public javax.swing.DefaultListModel<ClientMonitor> getClientTypeListModel()
public javax.swing.DefaultListModel<ClientMonitor> getUserListModel()
public AbstractFilteredTableModel getUserHistoryTableModel()
public void refresh() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of a communication errorpublic void disconnectAll() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic void disconnectTimedOut() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic void setMaintenanceInterval(int interval) throws java.rmi.RemoteException
interval
- the maintenance interval in secondsjava.rmi.RemoteException
- in case of an exceptionpublic int getMaintenanceInterval() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic int getConnectionTimeout() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic void setConnectionTimeout(int timeout) throws java.rmi.RemoteException
timeout
- the timeout in secondsjava.rmi.RemoteException
- in case of an exceptionpublic void resetHistory()
public EventObserver<java.lang.Integer> getConnectionTimeoutObserver()
public TaskScheduler getUpdateScheduler()