class LogStash::Inputs::RegistryItem

Registry item to coordinate between mulitple clients

Attributes

etag[RW]
file_path[RW]
gen[RW]
offset[RW]
reader[RW]

Public Class Methods

new(file_path, etag, reader, offset = 0, gen = 0) click to toggle source
# File lib/logstash/inputs/azureblob.rb, line 28
def initialize(file_path, etag, reader, offset = 0, gen = 0)
  @file_path = file_path
  @etag = etag
  @reader = reader
  @offset = offset
  @gen = gen
end

Public Instance Methods

as_json(options={}) click to toggle source

Allow json serialization.

# File lib/logstash/inputs/azureblob.rb, line 14
def as_json(options={})
  {
    file_path: @file_path,
    etag: @etag,
    reader: @reader,
    offset: @offset,
    gen: @gen
  }
end
to_json(*options) click to toggle source
# File lib/logstash/inputs/azureblob.rb, line 24
def to_json(*options)
  as_json(*options).to_json(*options)
end