Package adams.core.logging
Class RemoteReceiveHandler.RemoteListenerRunnableUsingHandler
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.flow.core.RunnableWithLogging
-
- adams.core.logging.RemoteReceiveHandler.AbstractRemoteListenerRunnable
-
- adams.core.logging.RemoteReceiveHandler.RemoteListenerRunnableUsingHandler
-
- All Implemented Interfaces:
LoggingLevelHandler
,LoggingSupporter
,SizeOfHandler
,Stoppable
,StoppableWithFeedback
,Serializable
,Runnable
- Enclosing class:
- RemoteReceiveHandler
public static class RemoteReceiveHandler.RemoteListenerRunnableUsingHandler extends RemoteReceiveHandler.AbstractRemoteListenerRunnable
Publishes the logging records using the supplied handler.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Handler
m_Handler
the handler to use for publishing.-
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
RemoteListenerRunnableUsingHandler(int port, int timeout, Handler handler)
Initializes the runnable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, postRun, 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_Handler
protected Handler m_Handler
the handler to use for publishing.
-
-
Constructor Detail
-
RemoteListenerRunnableUsingHandler
protected RemoteListenerRunnableUsingHandler(int port, int timeout, Handler handler)
Initializes the runnable.- Parameters:
port
- the port to listen ontimeout
- the timeouthandler
- the handler
-
-
Method Detail
-
publish
protected void publish(LogRecord record)
Publishes the record.- Specified by:
publish
in classRemoteReceiveHandler.AbstractRemoteListenerRunnable
- Parameters:
record
- the record
-
-