Class 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:

    public static class RemoteLogging.RemoteListenerRunnableWithLog
    extends adams.core.logging.RemoteReceiveHandler.AbstractRemoteListenerRunnable
    Runnable that outputs the log records to a log.
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      protected RemoteLogging m_Command
      the window 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
    • 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 interface adams.core.logging.LoggingLevelHandler

    • 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.
        port - the port to listen on
        timeout - the timeout
    • Method Detail

      • postRun

        protected void postRun()
        Hook method after the run finished.
        postRun in class adams.flow.core.RunnableWithLogging
      • publish

        protected void publish​(LogRecord record)
        Publishes the record.
        Specified by:
        publish in class adams.core.logging.RemoteReceiveHandler.AbstractRemoteListenerRunnable
        record - the record