TailerListener
public class TailerListenerAdapter extends java.lang.Object implements TailerListener
TailerListener
Adapter.Constructor | Description |
---|---|
TailerListenerAdapter() |
Modifier and Type | Method | 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(java.lang.Exception ex) |
Handles an Exception .
|
void |
handle(java.lang.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
in interface TailerListener
tailer
- the tailer.public void fileNotFound()
fileNotFound
in interface TailerListener
public void fileRotated()
fileRotated
in interface TailerListener
public void handle(java.lang.String line)
handle
in interface TailerListener
line
- the line.public void handle(java.lang.Exception ex)
handle
in interface TailerListener
ex
- the exception.Copyright (c) 2002-2017 Apache Software Foundation