Sha256: f000fad88c02ccba5e13938ffaf32003fe7309af521be9648849f165c6f54658

Contents?: true

Size: 516 Bytes

Versions: 30

Compression:

Stored size: 516 Bytes

Contents

# encoding: utf-8
require "logstash/util/loggable"
require_relative "read_mode/processor"

module FileWatch
  class ObservingRead
    include LogStash::Util::Loggable
    include ObservingBase

    def subscribe(observer)
      # observer here is the file input
      watch.subscribe(observer, sincedb_collection)
      sincedb_collection.write("read mode subscribe complete - shutting down")
    end

    private

    def build_specific_processor(settings)
      ReadMode::Processor.new(settings)
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
logstash-input-file-4.4.6 lib/filewatch/observing_read.rb
logstash-input-file-4.4.5 lib/filewatch/observing_read.rb
logstash-input-file-4.4.4 lib/filewatch/observing_read.rb
logstash-input-file-4.4.3 lib/filewatch/observing_read.rb
logstash-input-file-4.4.2 lib/filewatch/observing_read.rb
logstash-input-file-4.4.1 lib/filewatch/observing_read.rb
logstash-input-file-4.4.0 lib/filewatch/observing_read.rb
logstash-input-file-4.3.1 lib/filewatch/observing_read.rb
logstash-input-file-4.3.0 lib/filewatch/observing_read.rb
logstash-input-file-4.2.4 lib/filewatch/observing_read.rb
logstash-input-file-4.2.3 lib/filewatch/observing_read.rb
logstash-input-file-4.2.2 lib/filewatch/observing_read.rb
logstash-input-file-4.2.1 lib/filewatch/observing_read.rb
logstash-input-file-4.2.0 lib/filewatch/observing_read.rb
logstash-input-file-4.1.18 lib/filewatch/observing_read.rb
logstash-input-file-4.1.17 lib/filewatch/observing_read.rb
logstash-input-file-4.1.16 lib/filewatch/observing_read.rb
logstash-input-file-4.1.15 lib/filewatch/observing_read.rb
logstash-input-file-4.1.14 lib/filewatch/observing_read.rb
logstash-input-file-4.1.13 lib/filewatch/observing_read.rb