Class: Fluent::Plugin::TailInput::MemoryPositionEntry
- Inherits:
-
Object
- Object
- Fluent::Plugin::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.
891 892 893 894 |
# File 'lib/fluent/plugin/in_tail.rb', line 891 def initialize @pos = 0 @inode = 0 end |
Instance Method Details
#read_inode ⇒ Object
909 910 911 |
# File 'lib/fluent/plugin/in_tail.rb', line 909 def read_inode @inode end |
#read_pos ⇒ Object
905 906 907 |
# File 'lib/fluent/plugin/in_tail.rb', line 905 def read_pos @pos end |
#update(ino, pos) ⇒ Object
896 897 898 899 |
# File 'lib/fluent/plugin/in_tail.rb', line 896 def update(ino, pos) @inode = ino @pos = pos end |
#update_pos(pos) ⇒ Object
901 902 903 |
# File 'lib/fluent/plugin/in_tail.rb', line 901 def update_pos(pos) @pos = pos end |