Interface TailerListener
public interface TailerListener
Listener for events from a
Tailer. Abstracted from apache commons.- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled each time the Tailer reaches the end of the file.default voidThis method is called if the tailed file is not found.default voidCalled if a file rotation is detected.default voidHandles a line from a Tailer.
-
Method Details
-
handle
Handles a line from a Tailer.- Parameters:
line- the line.
-
fileRotated
default 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. -
endOfFileReached
default void endOfFileReached()Called each time the Tailer reaches the end of the file. -
fileNotFound
default void fileNotFound()This method is called if the tailed file is not found.
-