Class: Fluent::NewTailInput::MemoryPositionEntry
- Inherits:
-
Object
- Object
- Fluent::NewTailInput::MemoryPositionEntry
- Defined in:
- lib/fluent/plugin/in_tail.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.
793 794 795 796 |
# File 'lib/fluent/plugin/in_tail.rb', line 793 def initialize @pos = 0 @inode = 0 end |
Instance Method Details
#read_inode ⇒ Object
811 812 813 |
# File 'lib/fluent/plugin/in_tail.rb', line 811 def read_inode @inode end |
#read_pos ⇒ Object
807 808 809 |
# File 'lib/fluent/plugin/in_tail.rb', line 807 def read_pos @pos end |
#update(ino, pos) ⇒ Object
798 799 800 801 |
# File 'lib/fluent/plugin/in_tail.rb', line 798 def update(ino, pos) @inode = ino @pos = pos end |
#update_pos(pos) ⇒ Object
803 804 805 |
# File 'lib/fluent/plugin/in_tail.rb', line 803 def update_pos(pos) @pos = pos end |