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.



882
883
884
885
# File 'lib/fluent/plugin/in_tail.rb', line 882

def initialize
  @pos = 0
  @inode = 0
end

Instance Method Details

#read_inodeObject



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

def read_inode
  @inode
end

#read_posObject



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

def read_pos
  @pos
end

#update(ino, pos) ⇒ Object



887
888
889
890
# File 'lib/fluent/plugin/in_tail.rb', line 887

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

#update_pos(pos) ⇒ Object



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

def update_pos(pos)
  @pos = pos
end