Class RemoteLogging

    • Field Detail


        public static final int DEFAULT_PORT
        the default port to use for receiving logging messages.
        See Also:
        Constant Field Values
      • m_TextRemote

        protected com.googlecode.lanterna.gui2.TextBox m_TextRemote
        the remote host.
      • m_TextMaxFailures

        protected com.googlecode.lanterna.gui2.TextBox m_TextMaxFailures
        the maximum number of connection failures.
      • m_TextLocal

        protected com.googlecode.lanterna.gui2.TextBox m_TextLocal
        the local host.
      • m_TextLog

        protected LogTextBox m_TextLog
        for outputting the logging info.
      • m_ButtonStart

        protected com.googlecode.lanterna.gui2.Button m_ButtonStart
        the button for starting the logging.
      • m_ButtonStop

        protected com.googlecode.lanterna.gui2.Button m_ButtonStop
        the button for stopping the logging.
    • Constructor Detail

      • RemoteLogging

        public RemoteLogging()
        Initializes the action with no owner.
      • RemoteLogging

        public RemoteLogging​(adams.terminal.application.AbstractTerminalApplication owner)
        Initializes the action.
        owner - the owning application
    • Method Detail

      • startListening

        protected void startListening()
        Starts the listening.
      • stopListening

        protected void stopListening()
        Stops the listening.
      • updateButtons

        public void updateButtons()
        Updates the buttons.
      • append

        public void append​(String msg)
        Appends the log message.
        msg - the message
      • stopListenerRunnable

        public void stopListenerRunnable()
        Stops the listener runnable.