Class: Fluent::Plugin::TailInput::Entry

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

Constant Summary collapse

POSITION_FILE_ENTRY_FORMAT =
"%s\t%016x\t%016x\n".freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inoObject

Returns the value of attribute ino

Returns:

  • (Object)

    the current value of ino



190
191
192
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 190

def ino
  @ino
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



190
191
192
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 190

def path
  @path
end

#posObject

Returns the value of attribute pos

Returns:

  • (Object)

    the current value of pos



190
191
192
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 190

def pos
  @pos
end

#seekObject

Returns the value of attribute seek

Returns:

  • (Object)

    the current value of seek



190
191
192
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 190

def seek
  @seek
end

Instance Method Details

#to_entry_fmtObject



193
194
195
# File 'lib/fluent/plugin/in_tail/position_file.rb', line 193

def to_entry_fmt
  POSITION_FILE_ENTRY_FORMAT % [path, pos, ino]
end