Class RemoteLoggingTab.RemoteListenerRunnableWithLog
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.flow.core.RunnableWithLogging
-
- adams.core.logging.RemoteReceiveHandler.AbstractRemoteListenerRunnable
-
- adams.gui.tools.remotecontrolcenter.panels.RemoteLoggingTab.RemoteListenerRunnableWithLog
-
- All Implemented Interfaces:
LoggingLevelHandler
,LoggingSupporter
,SizeOfHandler
,Stoppable
,StoppableWithFeedback
,Serializable
,Runnable
- Enclosing class:
- RemoteLoggingTab
public static class RemoteLoggingTab.RemoteListenerRunnableWithLog extends 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 RemoteLoggingTab
m_Tab
the tab to output the records to.-
Fields inherited from class adams.core.logging.RemoteReceiveHandler.AbstractRemoteListenerRunnable
DEFAULT_PORT, DEFAULT_TIMEOUT, m_Port, m_Socket, m_TimeOut
-
Fields inherited from class adams.flow.core.RunnableWithLogging
m_Running, m_Stopped
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteListenerRunnableWithLog(int port, int timeout, RemoteLoggingTab tab)
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Tab
protected RemoteLoggingTab m_Tab
the tab to output the records to.
-
-
Constructor Detail
-
RemoteListenerRunnableWithLog
protected RemoteListenerRunnableWithLog(int port, int timeout, RemoteLoggingTab tab)
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 classRunnableWithLogging
-
publish
protected void publish(LogRecord record)
Publishes the record.- Specified by:
publish
in classRemoteReceiveHandler.AbstractRemoteListenerRunnable
- Parameters:
record
- the record
-
-