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.



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

def initialize
  @pos = 0
  @inode = 0
end

Instance Method Details

#read_inodeObject



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

def read_inode
  @inode
end

#read_posObject



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

def read_pos
  @pos
end

#update(ino, pos) ⇒ Object



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

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

#update_pos(pos) ⇒ Object



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

def update_pos(pos)
  @pos = pos
end