Class FileTailer.Listener

  • All Implemented Interfaces:
    org.apache.commons.io.input.TailerListener
    Enclosing class:
    FileTailer

    public static class FileTailer.Listener
    extends org.apache.commons.io.input.TailerListenerAdapter
    • Field Detail

      • m_Owner

        protected FileTailer m_Owner
        the owner.
      • m_File

        protected String m_File
        the monitored file.
    • Constructor Detail

      • Listener

        public Listener​(FileTailer owner,
                        String file)
        Initializes the owner.
        Parameters:
        owner - the owning actor
    • Method Detail

      • handle

        public void handle​(String line)
        Handles a line from a Tailer.
        Specified by:
        handle in interface org.apache.commons.io.input.TailerListener
        Overrides:
        handle in class org.apache.commons.io.input.TailerListenerAdapter
        Parameters:
        line - the line.
      • handle

        public void handle​(Exception ex)
        Handles an Exception .
        Specified by:
        handle in interface org.apache.commons.io.input.TailerListener
        Overrides:
        handle in class org.apache.commons.io.input.TailerListenerAdapter
        Parameters:
        ex - the exception.