public class FileTailingAdaptorPreserveLines extends FileTailingAdaptor
GRACEFUL_PERIOD, MAX_RETRIES, reader
conf, DEFAULT_MAX_READ_SIZE, fileReadOffset, lastSlurpTime, MAX_READ_SIZE, MAX_READ_SIZE_OPT, offsetOfFirstByte, tailer
adaptorID, control, dest, type
Constructor and Description |
---|
FileTailingAdaptorPreserveLines() |
Modifier and Type | Method and Description |
---|---|
protected int |
extractRecords(ChunkReceiver eq,
long buffOffsetInFile,
byte[] buf)
Extract records from a byte sequence
|
shutdown, start, tailFile
getCurrentStatus, getStreamName, parseArgs, slurp, toString
deregisterAndStop, getType, hardStop, parseArgs, shutdown, start
protected int extractRecords(ChunkReceiver eq, long buffOffsetInFile, byte[] buf) throws InterruptedException
LWFTAdaptor
extractRecords
in class LWFTAdaptor
eq
- the queue to stick the new chunk[s] inbuffOffsetInFile
- the byte offset in the stream at which buf[] beginsbuf
- the byte buffer to extract records fromInterruptedException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.