public class TailFile extends Object
Constructor and Description |
---|
TailFile(File file,
Map<String,String> headers,
long inode,
long pos) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,String> |
getHeaders() |
long |
getInode() |
long |
getLastUpdated() |
long |
getLineReadPos() |
String |
getPath() |
long |
getPos() |
RandomAccessFile |
getRaf() |
boolean |
needTail() |
List<Event> |
readEvents(int numEvents,
boolean backoffWithoutNL,
boolean addByteOffset) |
org.apache.flume.source.taildir.TailFile.LineResult |
readLine() |
void |
setLastUpdated(long lastUpdated) |
void |
setLineReadPos(long lineReadPos) |
void |
setNeedTail(boolean needTail) |
void |
setPos(long pos) |
void |
updateFilePos(long pos) |
boolean |
updatePos(String path,
long inode,
long pos) |
public TailFile(File file, Map<String,String> headers, long inode, long pos) throws IOException
IOException
public RandomAccessFile getRaf()
public String getPath()
public long getInode()
public long getPos()
public long getLastUpdated()
public boolean needTail()
public long getLineReadPos()
public void setPos(long pos)
public void setLastUpdated(long lastUpdated)
public void setNeedTail(boolean needTail)
public void setLineReadPos(long lineReadPos)
public boolean updatePos(String path, long inode, long pos) throws IOException
IOException
public void updateFilePos(long pos) throws IOException
IOException
public List<Event> readEvents(int numEvents, boolean backoffWithoutNL, boolean addByteOffset) throws IOException
IOException
public org.apache.flume.source.taildir.TailFile.LineResult readLine() throws IOException
IOException
public void close()
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.