public class TailFile extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TailFile.CompareByLastModifiedTime |
| 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() |
String |
getPath() |
long |
getPos() |
RandomAccessFile |
getRaf() |
boolean |
needTail() |
List<Event> |
readEvents(int numEvents,
boolean backoffWithoutNL,
boolean addByteOffset) |
void |
setLastUpdated(long lastUpdated) |
void |
setNeedTail(boolean needTail) |
void |
setPos(long pos) |
boolean |
updatePos(String path,
long inode,
long pos) |
public TailFile(File file, Map<String,String> headers, long inode, long pos) throws IOException
IOExceptionpublic RandomAccessFile getRaf()
public String getPath()
public long getInode()
public long getPos()
public long getLastUpdated()
public boolean needTail()
public void setPos(long pos)
public void setLastUpdated(long lastUpdated)
public void setNeedTail(boolean needTail)
public boolean updatePos(String path, long inode, long pos) throws IOException
IOExceptionpublic List<Event> readEvents(int numEvents, boolean backoffWithoutNL, boolean addByteOffset) throws IOException
IOExceptionpublic void close()
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.