public class FileTailingAdaptor extends LWFTAdaptor
| Modifier and Type | Field and Description |
|---|---|
static int |
GRACEFUL_PERIOD |
static int |
MAX_RETRIES |
protected RandomAccessFile |
reader |
conf, DEFAULT_MAX_READ_SIZE, fileReadOffset, MAX_READ_SIZE, MAX_READ_SIZE_OPT, offsetOfFirstByte, taileradaptorID, control, dest, type| Constructor and Description |
|---|
FileTailingAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
hardStop()
Deprecated.
|
long |
shutdown()
Deprecated.
|
long |
shutdown(AdaptorShutdownPolicy shutdownPolicy)
Signals this adaptor to come to an orderly stop.
|
void |
start(long bytes) |
boolean |
tailFile(ChunkReceiver eq)
Looks at the tail of the associated file, adds some of it to event queue
This method is not thread safe.
|
extractRecords, getCurrentStatus, getStreamName, parseArgs, slurp, toStringderegisterAndStop, getType, startpublic static int MAX_RETRIES
public static int GRACEFUL_PERIOD
protected RandomAccessFile reader
public void start(long bytes)
start in class LWFTAdaptor@Deprecated public long shutdown() throws AdaptorException
shutdown in interface Adaptorshutdown in class LWFTAdaptorAdaptorExceptionAdaptor.shutdown()@Deprecated public void hardStop() throws AdaptorException
hardStop in interface AdaptorhardStop in class LWFTAdaptorAdaptorExceptionpublic long shutdown(AdaptorShutdownPolicy shutdownPolicy)
Adaptorshutdown in interface Adaptorshutdown in class LWFTAdaptorpublic boolean tailFile(ChunkReceiver eq) throws InterruptedException
tailFile in class LWFTAdaptoreq - the queue to write Chunks intoInterruptedExceptionCopyright © ${year} The Apache Software Foundation