Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-456

TailerListenerAdapter: handleEnd() method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4
    • 2.5
    • Utilities

    Description

      The current implementation of the org.apache.commons.io.input.Tailer class doesn't allow you to get notified after an execution.

      This can be a problem when a single execution processes thousands of lines (= http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/input/TailerListener.html#handle(java.lang.String) will be called for every line) and you want to perform a resource-intensive task at the end of all this.

      The solution to this problem would be to add a handleEnd() method to the TailerListener interface and to call it from the Tailer class somewhere after the readLines call the the horrible Thread.sleep call.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Andrew Bourgeois Andrew Bourgeois
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: