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



780
781
782
783
# File 'lib/fluent/plugin/in_tail.rb', line 780

def initialize
  @pos = 0
  @inode = 0
end

Instance Method Details

#read_inodeObject



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

def read_inode
  @inode
end

#read_posObject



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

def read_pos
  @pos
end

#update(ino, pos) ⇒ Object



785
786
787
788
# File 'lib/fluent/plugin/in_tail.rb', line 785

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

#update_pos(pos) ⇒ Object



790
791
792
# File 'lib/fluent/plugin/in_tail.rb', line 790

def update_pos(pos)
  @pos = pos
end