Class: Fluent::TailInput::MemoryPositionEntry
- Inherits:
-
Object
- Object
- Fluent::TailInput::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.
813 814 815 816 |
# File 'lib/fluent/plugin/in_tail.rb', line 813 def initialize @pos = 0 @inode = 0 end |
Instance Method Details
#read_inode ⇒ Object
831 832 833 |
# File 'lib/fluent/plugin/in_tail.rb', line 831 def read_inode @inode end |
#read_pos ⇒ Object
827 828 829 |
# File 'lib/fluent/plugin/in_tail.rb', line 827 def read_pos @pos end |
#update(ino, pos) ⇒ Object
818 819 820 821 |
# File 'lib/fluent/plugin/in_tail.rb', line 818 def update(ino, pos) @inode = ino @pos = pos end |
#update_pos(pos) ⇒ Object
823 824 825 |
# File 'lib/fluent/plugin/in_tail.rb', line 823 def update_pos(pos) @pos = pos end |