Package org.apache.commons.io.input
Interface TailerListener
- All Known Implementing Classes:
- TailerListenerAdapter
public interface TailerListener
Listens to events from a 
Tailer.- Since:
- 2.0
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled if the tailed file is not found.voidCalled if a file rotation is detected.voidCalled when an Exception is thrown.voidCalled when a line is read.voidCalled during construction, giving the listener a method of stopping the tailer.
- 
Method Details- 
fileNotFoundvoid fileNotFound()Called if the tailed file is not found.Note: this is called from the tailer thread. 
- 
fileRotatedvoid 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.Note: Called from the tailer thread. 
- 
handleCalled when an Exception is thrown.Note: Called from the tailer thread. - Parameters:
- e- the exception.
 
- 
handleCalled when a line is read.Note: Called from the tailer thread. - Parameters:
- line- the line.
 
- 
initCalled during construction, giving the listener a method of stopping the tailer.- Parameters:
- tailer- the tailer.
 
 
-