java.lang.Object
org.metacosm.framework.event.RemoteEventLogger
- All Implemented Interfaces:
- org.metacosm.util.MCEventListener
- public final class RemoteEventLogger
- extends java.lang.Object
- implements org.metacosm.util.MCEventListener
An RemoteEventLogger can be created on an AdminConsoleConnection
to forward all or some debug messages to the remote administration ui.
Later should be extended to forward a subset of messages.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eventManager
private static EventManager eventManager
- EventManager instance
adminConnection
private org.metacosm.framework.server.AdminConsoleConnection adminConnection
- Reference to the connection to which the logs are forwarded.
RemoteEventLogger
public RemoteEventLogger(org.metacosm.framework.server.AdminConsoleConnection adminConnection)
- Public constructor, an adminConnection as parameter
is mandatory.
startEventForwarding
public void startEventForwarding()
stopEventForwarding
public void stopEventForwarding()
forwardEventType
public void forwardEventType()
blockEventType
public void blockEventType()
adminMessageReceived
public void adminMessageReceived(org.metacosm.util.AdminMessage msg)
MCEventReceived
public void MCEventReceived(org.metacosm.util.MCEvent msg)
- Specified by:
MCEventReceived in interface org.metacosm.util.MCEventListener