Sha256: 6434948cd3a1f2ff18e8279f86a47b9b2869a145ae63b503b2b4ae5dc880a8d2

Contents?: true

Size: 861 Bytes

Versions: 34

Compression:

Stored size: 861 Bytes

Contents

require 'flydata/fluent-plugins/flydata_plugin_ext/flydata_sync'

module Fluent

  module FlydataSyncDiffBased
    def self.include_modules(base)
      base.send(:include, FlydataSync)
      base.send(:include, self)
    end

    def self.included(base)
      base.class_eval do
        config_param :fetch_interval, :time, default: 60   # 1 minute
        config_param :retry_interval, :time, default: 30   # 30 seconds
        config_param :emit_chunk_limit, :size, default: 64 * (1024 ** 2)   # 64MB, should be equal or less than buffer_chunk_limit
      end
    end

    def configure(conf)
      super
      @table_src_pos_files = @tables.inject({}) do |ret, table_name|
        ret[table_name.to_sym] = self.class::SOURCE_POSITION_FILE_CLASS.new(
          @sync_fm.table_source_pos_file_path(table_name)
        )
        ret
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
flydata-0.8.10.2 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.10.1 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.9.11 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.10 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.9 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.8 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.7 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.6 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.5 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.4 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.3 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.2 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.1 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.8.0 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.7.19 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.7.18 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.7.17 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.7.16 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.7.15 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb
flydata-0.7.14 lib/flydata/fluent-plugins/flydata_plugin_ext/flydata_sync_diff_based.rb