org.apache.commons.io.input

Class TailerListenerAdapter

    • Constructor Detail

      • TailerListenerAdapter

        public TailerListenerAdapter()
    • Method Detail

      • init

        public void init(Tailer tailer)
        The tailer will call this method during construction, giving the listener a method of stopping the tailer.
        Specified by:
        init in interface TailerListener
        Parameters:
        tailer - the tailer.
      • fileNotFound

        public void fileNotFound()
        This method is called if the tailed file is not found.
        Specified by:
        fileNotFound in interface TailerListener
      • fileRotated

        public void fileRotated()
        Called if a file rotation is detected. This method is called before the file is reopened, and fileNotFound may be called if the new file has not yet been created.
        Specified by:
        fileRotated in interface TailerListener
      • handle

        public void handle(String line)
        Handles a line from a Tailer.
        Specified by:
        handle in interface TailerListener
        Parameters:
        line - the line.
      • endOfFileReached

        public void endOfFileReached()
        Called each time the Tailer reaches the end of the file. Note: this is called from the tailer thread. Note: a future version of commons-io will pull this method up to the TailerListener interface, for now clients must subclass this class to use this feature.
        Since:
        2.5

Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14