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.
474 475 476 477 |
# File 'lib/fluent/plugin/in_tailpath.rb', line 474 def initialize @pos = 0 @inode = 0 end |
Instance Method Details
#read_inode ⇒ Object
492 493 494 |
# File 'lib/fluent/plugin/in_tailpath.rb', line 492 def read_inode @inode end |
#read_pos ⇒ Object
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 |