Class: Fluent::TailInput::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.



813
814
815
816
# File 'lib/fluent/plugin/in_tail.rb', line 813

def initialize
  @pos = 0
  @inode = 0
end

Instance Method Details

#read_inodeObject



831
832
833
# File 'lib/fluent/plugin/in_tail.rb', line 831

def read_inode
  @inode
end

#read_posObject



827
828
829
# File 'lib/fluent/plugin/in_tail.rb', line 827

def read_pos
  @pos
end

#update(ino, pos) ⇒ Object



818
819
820
821
# File 'lib/fluent/plugin/in_tail.rb', line 818

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

#update_pos(pos) ⇒ Object



823
824
825
# File 'lib/fluent/plugin/in_tail.rb', line 823

def update_pos(pos)
  @pos = pos
end