|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TailerListener
Listener for events from a Tailer
.
Method Summary | |
---|---|
void |
fileNotFound()
This method is called if the tailed file is not found. |
void |
fileRotated()
Called if a file rotation is detected. |
void |
handle(Exception ex)
Handles an Exception . |
void |
handle(String line)
Handles a line from a Tailer. |
void |
init(Tailer tailer)
The tailer will call this method during construction, giving the listener a method of stopping the tailer. |
Method Detail |
---|
void init(Tailer tailer)
tailer
- the tailer.void fileNotFound()
Note: this is called from the tailer thread.
void fileRotated()
Note: this is called from the tailer thread.
void handle(String line)
Note: this is called from the tailer thread.
line
- the line.void handle(Exception ex)
Note: this is called from the tailer thread.
ex
- the exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |