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.



891
892
893
894
# File 'lib/fluent/plugin/in_tail.rb', line 891

def initialize
  @pos = 0
  @inode = 0
end

Instance Method Details

#read_inodeObject



909
910
911
# File 'lib/fluent/plugin/in_tail.rb', line 909

def read_inode
  @inode
end

#read_posObject



905
906
907
# File 'lib/fluent/plugin/in_tail.rb', line 905

def read_pos
  @pos
end

#update(ino, pos) ⇒ Object



896
897
898
899
# File 'lib/fluent/plugin/in_tail.rb', line 896

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

#update_pos(pos) ⇒ Object



901
902
903
# File 'lib/fluent/plugin/in_tail.rb', line 901

def update_pos(pos)
  @pos = pos
end