Class RemoteLogging.RemoteListenerRunnableWithLog
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.flow.core.RunnableWithLogging
-
- adams.core.logging.RemoteReceiveHandler.AbstractRemoteListenerRunnable
-
- adams.terminal.menu.remotecommand.RemoteLogging.RemoteListenerRunnableWithLog
-
- All Implemented Interfaces:
adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.SizeOfHandler
,adams.core.Stoppable
,adams.core.StoppableWithFeedback
,Serializable
,Runnable
- Enclosing class:
- RemoteLogging
public static class RemoteLogging.RemoteListenerRunnableWithLog extends adams.core.logging.RemoteReceiveHandler.AbstractRemoteListenerRunnable
Runnable that outputs the log records to a log.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected RemoteLogging
m_Command
the window to output the records to.
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteListenerRunnableWithLog(int port, int timeout, RemoteLogging command)
Initializes the runnable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
postRun()
Hook method after the run finished.protected void
publish(LogRecord record)
Publishes the record.-
Methods inherited from class adams.core.logging.RemoteReceiveHandler.AbstractRemoteListenerRunnable
doRun, preRun, stopExecution
-
Methods inherited from class adams.flow.core.RunnableWithLogging
isRunning, isStopped, run, setLoggingLevel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Command
protected RemoteLogging m_Command
the window to output the records to.
-
-
Constructor Detail
-
RemoteListenerRunnableWithLog
protected RemoteListenerRunnableWithLog(int port, int timeout, RemoteLogging command)
Initializes the runnable.- Parameters:
port
- the port to listen ontimeout
- the timeout
-
-
Method Detail
-
postRun
protected void postRun()
Hook method after the run finished.- Overrides:
postRun
in classadams.flow.core.RunnableWithLogging
-
publish
protected void publish(LogRecord record)
Publishes the record.- Specified by:
publish
in classadams.core.logging.RemoteReceiveHandler.AbstractRemoteListenerRunnable
- Parameters:
record
- the record
-
-