Class: Fluent::Plugin::TailInput::MemoryPositionEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/in_tail/position_file.rb

Instance Method Summary collapse

Constructor Details

#initializeMemoryPositionEntry

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_inodeObject



262
263
264
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 262

def read_inode
  @inode
end

#read_posObject



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