Class: Fluent::TailPathInput::MemoryPositionEntry

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

Instance Method Summary collapse

Constructor Details

#initializeMemoryPositionEntry

Returns a new instance of MemoryPositionEntry.



475
476
477
478
# File 'lib/fluent/plugin/in_tailpath.rb', line 475

def initialize
  @pos = 0
  @inode = 0
end

Instance Method Details

#read_inodeObject



493
494
495
# File 'lib/fluent/plugin/in_tailpath.rb', line 493

def read_inode
  @inode
end

#read_posObject



489
490
491
# File 'lib/fluent/plugin/in_tailpath.rb', line 489

def read_pos
  @pos
end

#update(ino, pos) ⇒ Object



480
481
482
483
# File 'lib/fluent/plugin/in_tailpath.rb', line 480

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

#update_pos(pos) ⇒ Object



485
486
487
# File 'lib/fluent/plugin/in_tailpath.rb', line 485

def update_pos(pos)
  @pos = pos
end