public class FileTailingAdaptor extends LWFTAdaptor
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_RETRIES |
DEFAULT_MAX_READ_SIZE, MAX_READ_SIZE_OPT| Constructor and Description |
|---|
FileTailingAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
long |
shutdown(AdaptorShutdownPolicy shutdownPolicy)
Signals this adaptor to come to an orderly stop.
|
void |
start(long bytes) |
boolean |
tailFile()
Looks at the tail of the associated file, adds some of it to event queue
This method is not thread safe.
|
getCurrentStatus, getStreamName, parseArgs, toStringderegisterAndStop, getType, hardStop, parseArgs, shutdown, startpublic void start(long bytes)
start in class LWFTAdaptorpublic long shutdown(AdaptorShutdownPolicy shutdownPolicy)
Adaptorshutdown in interface Adaptorshutdown in class LWFTAdaptorshutdownPolicy - is defined as forcefully or gracefullypublic boolean tailFile()
throws InterruptedException
tailFile in class LWFTAdaptorInterruptedExceptionCopyright © 2016 Apache Software Foundation. All Rights Reserved.