public final class ClientInstanceMonitor
extends java.lang.Object
Constructor and Description |
---|
ClientInstanceMonitor(EntityConnectionServerAdmin server,
RemoteClient remoteClient)
Instantiates a new
ClientInstanceMonitor , monitoring the given client |
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Disconnects the client from the server
|
java.time.LocalDateTime |
getCreationDate() |
ClientLog |
getLog() |
javax.swing.ButtonModel |
getLoggingEnabledButtonModel() |
javax.swing.tree.DefaultTreeModel |
getLogTreeModel() |
RemoteClient |
getRemoteClient() |
boolean |
isLoggingEnabled() |
void |
refreshLogTreeModel()
Refreshes the log tree model with the most recent log from the server
|
void |
setLoggingEnabled(boolean status) |
java.lang.String |
toString() |
public ClientInstanceMonitor(EntityConnectionServerAdmin server, RemoteClient remoteClient)
ClientInstanceMonitor
, monitoring the given clientserver
- the server being monitoredremoteClient
- the client infopublic RemoteClient getRemoteClient()
RemoteClient
public javax.swing.ButtonModel getLoggingEnabledButtonModel()
ButtonModel
for controlling whether logging is enabledpublic java.time.LocalDateTime getCreationDate() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic ClientLog getLog() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic boolean isLoggingEnabled() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic void setLoggingEnabled(boolean status) throws java.rmi.RemoteException
status
- true if logging should be enabled, false otherwisejava.rmi.RemoteException
- in case of an exceptionpublic void disconnect() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic void refreshLogTreeModel() throws java.rmi.RemoteException
java.rmi.RemoteException
- in case of an exceptionpublic javax.swing.tree.DefaultTreeModel getLogTreeModel()
public java.lang.String toString()
toString
in class java.lang.Object