Modifier and Type | Class and Description |
---|---|
private static class |
TailFile.TailFileState.StateKeys |
Modifier and Type | Field and Description |
---|---|
private ByteBuffer |
buffer |
private Checksum |
checksum |
private File |
file |
private String |
filename |
private long |
length |
private long |
position |
private FileChannel |
reader |
private long |
timestamp |
Constructor and Description |
---|
TailFileState(String filename,
File file,
FileChannel reader,
long position,
long timestamp,
long length,
Checksum checksum,
ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getBuffer() |
Checksum |
getChecksum() |
File |
getFile() |
String |
getFilename() |
long |
getLength() |
long |
getPosition() |
FileChannel |
getReader() |
long |
getTimestamp() |
Map<String,String> |
toStateMap(int index) |
String |
toString() |
private final String filename
private final File file
private final FileChannel reader
private final long position
private final long timestamp
private final long length
private final Checksum checksum
private final ByteBuffer buffer
public TailFileState(String filename, File file, FileChannel reader, long position, long timestamp, long length, Checksum checksum, ByteBuffer buffer)
public String getFilename()
public File getFile()
public FileChannel getReader()
public long getPosition()
public long getTimestamp()
public long getLength()
public Checksum getChecksum()
public ByteBuffer getBuffer()
Copyright © 2018 Apache NiFi Project. All rights reserved.