public class RCheckFTAdaptor extends LWFTAdaptor implements FileFilter
conf, DEFAULT_MAX_READ_SIZE, fileReadOffset, lastSlurpTime, MAX_READ_SIZE, MAX_READ_SIZE_OPT, offsetOfFirstByte, tailer
adaptorID, control, dest, type
Constructor and Description |
---|
RCheckFTAdaptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File pathname) |
protected void |
advanceQ() |
String |
getCurrentStatus()
Return the adaptor's state Should not include class name or byte
offset, which are written by caller.
|
protected void |
mkFileQ() |
String |
parseArgs(String params)
Check for date-modified and offset; if absent assume we just got a name.
|
void |
start(long offset) |
boolean |
tailFile() |
String |
toString() |
extractRecords, getStreamName, shutdown, slurp
deregisterAndStop, getType, hardStop, parseArgs, shutdown, start
public String parseArgs(String params)
parseArgs
in class LWFTAdaptor
public String getCurrentStatus()
Adaptor
getCurrentStatus
in interface Adaptor
getCurrentStatus
in class LWFTAdaptor
Adaptor.getCurrentStatus()
public boolean accept(File pathname)
accept
in interface FileFilter
protected void mkFileQ()
protected void advanceQ()
public void start(long offset)
start
in class LWFTAdaptor
public boolean tailFile() throws InterruptedException
tailFile
in class LWFTAdaptor
InterruptedException
public String toString()
toString
in class LWFTAdaptor
Copyright © 2014 Apache Software Foundation. All Rights Reserved.