public class TailerListenerAdapter extends Object implements TailerListener
TailerListener Adapter.| 构造器和说明 |
|---|
TailerListenerAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
endOfFileReached()
Called each time the Tailer reaches the end of the file.
|
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.
|
public void init(Tailer tailer)
init 在接口中 TailerListenertailer - the tailer.public void fileNotFound()
fileNotFound 在接口中 TailerListenerpublic void fileRotated()
fileRotated 在接口中 TailerListenerpublic void handle(String line)
handle 在接口中 TailerListenerline - the line.public void handle(Exception ex)
handle 在接口中 TailerListenerex - the exception.public void endOfFileReached()