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.
882 883 884 885 |
# File 'lib/fluent/plugin/in_tail.rb', line 882 def initialize @pos = 0 @inode = 0 end |
Instance Method Details
#read_inode ⇒ Object
900 901 902 |
# File 'lib/fluent/plugin/in_tail.rb', line 900 def read_inode @inode end |
#read_pos ⇒ Object
896 897 898 |
# File 'lib/fluent/plugin/in_tail.rb', line 896 def read_pos @pos end |
#update(ino, pos) ⇒ Object
887 888 889 890 |
# File 'lib/fluent/plugin/in_tail.rb', line 887 def update(ino, pos) @inode = ino @pos = pos end |
#update_pos(pos) ⇒ Object
892 893 894 |
# File 'lib/fluent/plugin/in_tail.rb', line 892 def update_pos(pos) @pos = pos end |