com.cosylab.jcosyne.server
Interface LogCollectorMBean

All Superinterfaces:
RemoteTaskMBean, java.lang.Runnable
All Known Implementing Classes:
LogCollector

public interface LogCollectorMBean
extends RemoteTaskMBean

Parametrizes the JMX interface to the LogCollector. Log collector collects all logs from currently registered remote tasks and forwards them by refiring them. It also keeps a list of old logs that can be retrieved at will. The length of histroy is limited by a setting in Constants.LOG_LIMIT

Author:
Gasper Tkacik (gasper.tkacik@cosylab.com)
See Also:
Constants

Method Summary
 javax.management.Notification[] getOldLogEvents()
          Retrieve the list of old events.
 
Methods inherited from interface com.cosylab.jcosyne.server.RemoteTaskMBean
copyStateFrom, copyStateFrom, equals, executeScript, getLastScriptResult, getName, getPostExecutionScript, getPostInitializactionScript, getProgress, getState, hashCode, initialize, isFinished, isInitialized, isReadyToRun, isRunning, isSuspended, setPostExecutionScript, setPostInitializationScript, setRunning, setSuspended
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getOldLogEvents

public javax.management.Notification[] getOldLogEvents()
Retrieve the list of old events. Lower indices indicate that the logs have been received prior to the logs with higher indices. This does not, however, imply temporal ordering of log events, since we are in a distributed system. Nevertheless, each log carries its own timestamp, if such ordering is desired. The notifications returned are new, rewrapped notifications with IDs issued by the log collector, not the original notifications received by the collector.

Returns:
the list of old log notifications