Class: Fluent::TailPathInput::MemoryPositionEntry
- Inherits:
-
Object
- Object
- Fluent::TailPathInput::MemoryPositionEntry
- Defined in:
- lib/fluent/plugin/in_tailpath.rb
Instance Method Summary collapse
-
#initialize ⇒ MemoryPositionEntry
constructor
A new instance of MemoryPositionEntry.
- #read_inode ⇒ Object
- #read_pos ⇒ Object
- #update(ino, pos) ⇒ Object
- #update_pos(pos) ⇒ Object
Constructor Details
#initialize ⇒ MemoryPositionEntry
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_inode ⇒ Object
493 494 495 |
# File 'lib/fluent/plugin/in_tailpath.rb', line 493 def read_inode @inode end |
#read_pos ⇒ Object
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 |