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.AbstractRemoteListenerRunnableRunnable 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 RemoteLoggingm_Commandthe window to output the records to.
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoteListenerRunnableWithLog(int port, int timeout, RemoteLogging command)Initializes the runnable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidpostRun()Hook method after the run finished.protected voidpublish(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:
postRunin classadams.flow.core.RunnableWithLogging
-
publish
protected void publish(LogRecord record)
Publishes the record.- Specified by:
publishin classadams.core.logging.RemoteReceiveHandler.AbstractRemoteListenerRunnable- Parameters:
record- the record
-
-