Class TailFile.TailFileState

java.lang.Object
org.apache.nifi.processors.standard.TailFile.TailFileState
Enclosing class:
TailFile

static class TailFile.TailFileState extends Object
A simple Java class to hold information about our state so that we can maintain this state across multiple invocations of the Processor
  • Field Details

    • filename

      private final String filename
    • file

      private final File file
    • reader

      private final FileChannel reader
    • position

      private final long position
    • timestamp

      private final long timestamp
    • length

      private final long length
    • checksum

      private final Checksum checksum
    • buffer

      private final ByteBuffer buffer
    • tailingPostRollover

      private final boolean tailingPostRollover
  • Constructor Details

  • Method Details

    • getFilename

      public String getFilename()
    • getFile

      public File getFile()
    • getReader

      public FileChannel getReader()
    • getPosition

      public long getPosition()
    • getTimestamp

      public long getTimestamp()
    • getLength

      public long getLength()
    • getChecksum

      public Checksum getChecksum()
    • getBuffer

      public ByteBuffer getBuffer()
    • isTailingPostRollover

      public boolean isTailingPostRollover()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStateMap

      public Map<String,String> toStateMap(int index)