public class FileTailingAdaptor extends LWFTAdaptor
Modifier and Type | Field and Description |
---|---|
static int |
MAX_RETRIES |
protected RandomAccessFile |
reader |
conf, DEFAULT_MAX_READ_SIZE, fileReadOffset, lastSlurpTime, MAX_READ_SIZE_OPT, offsetOfFirstByte
adaptorID, control, dest, type
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.
|
extractRecords, getCurrentStatus, getStreamName, parseArgs, slurp, toString
deregisterAndStop, getType, hardStop, parseArgs, shutdown, start
public static int MAX_RETRIES
protected RandomAccessFile reader
public void start(long bytes)
start
in class LWFTAdaptor
public long shutdown(AdaptorShutdownPolicy shutdownPolicy)
Adaptor
shutdown
in interface Adaptor
shutdown
in class LWFTAdaptor
public boolean tailFile() throws InterruptedException
tailFile
in class LWFTAdaptor
InterruptedException
Copyright © 2015 Apache Software Foundation. All Rights Reserved.