public class LWFTAdaptor extends AbstractAdaptor
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_READ_SIZE
This is the maximum amount we'll read from any one file before moving on to
the next.
|
static String |
MAX_READ_SIZE_OPT |
| Constructor and Description |
|---|
LWFTAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentStatus()
Return the adaptor's state Should not include class name or byte
offset, which are written by caller.
|
String |
getStreamName() |
String |
parseArgs(String params) |
long |
shutdown(AdaptorShutdownPolicy shutdownPolicy)
Signals this adaptor to come to an orderly stop.
|
void |
start(long offset) |
boolean |
tailFile() |
String |
toString() |
deregisterAndStop, getType, hardStop, parseArgs, shutdown, startpublic static final int DEFAULT_MAX_READ_SIZE
public static final String MAX_READ_SIZE_OPT
public void start(long offset)
start in class AbstractAdaptorpublic String getCurrentStatus()
AdaptorAdaptor.getCurrentStatus()public String getStreamName()
public String parseArgs(String params)
parseArgs in class AbstractAdaptorpublic long shutdown(AdaptorShutdownPolicy shutdownPolicy) throws AdaptorException
AdaptorshutdownPolicy - is defined as forcefully or gracefullyAdaptorException - Exception on shutdownpublic boolean tailFile()
throws InterruptedException
InterruptedExceptionCopyright © 2016 Apache Software Foundation. All Rights Reserved.