Class: Fluent::NewTailInput::MemoryPositionEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/in_tail.rb

Instance Method Summary collapse

Constructor Details

#initializeMemoryPositionEntry

Returns a new instance of MemoryPositionEntry.



793
794
795
796
# File 'lib/fluent/plugin/in_tail.rb', line 793

def initialize
  @pos = 0
  @inode = 0
end

Instance Method Details

#read_inodeObject



811
812
813
# File 'lib/fluent/plugin/in_tail.rb', line 811

def read_inode
  @inode
end

#read_posObject



807
808
809
# File 'lib/fluent/plugin/in_tail.rb', line 807

def read_pos
  @pos
end

#update(ino, pos) ⇒ Object



798
799
800
801
# File 'lib/fluent/plugin/in_tail.rb', line 798

def update(ino, pos)
  @inode = ino
  @pos = pos
end

#update_pos(pos) ⇒ Object



803
804
805
# File 'lib/fluent/plugin/in_tail.rb', line 803

def update_pos(pos)
  @pos = pos
end