public interface TailerListener
Tailer.| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.