Class: Fluent::Plugin::TailInput::MemoryPositionEntry
- Inherits:
-
Object
- Object
- Fluent::Plugin::TailInput::MemoryPositionEntry
- Defined in:
- lib/fluent/plugin/in_tail/position_file.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.
244 245 246 247 |
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 244 def initialize @pos = 0 @inode = 0 end |
Instance Method Details
#read_inode ⇒ Object
262 263 264 |
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 262 def read_inode @inode end |
#read_pos ⇒ Object
258 259 260 |
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 258 def read_pos @pos end |
#update(ino, pos) ⇒ Object
249 250 251 252 |
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 249 def update(ino, pos) @inode = ino @pos = pos end |
#update_pos(pos) ⇒ Object
254 255 256 |
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 254 def update_pos(pos) @pos = pos end |