Class: Fluent::MongoOutputReplset

Inherits:
MongoOutput
  • Object
show all
Defined in:
lib/fluent/plugin/out_mongo_replset.rb

Constant Summary

Constants inherited from MongoOutput

Fluent::MongoOutput::LIMIT_AFTER_v1_8, Fluent::MongoOutput::LIMIT_BEFORE_v1_8

Instance Attribute Summary

Attributes inherited from MongoOutput

#client_options, #collection_options

Instance Method Summary collapse

Methods inherited from MongoOutput

#emit, #format, format_nocache, #initialize, #shutdown, #start, #write

Methods included from LoggerSupport

#configure_logger, included

Methods included from MongoAuth

#authenticate

Methods included from MongoAuthParams

included

Constructor Details

This class inherits a constructor from Fluent::MongoOutput

Instance Method Details

#configure(conf) ⇒ Object



25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/fluent/plugin/out_mongo_replset.rb', line 25

def configure(conf)
  super

  if replica_set = conf['replica_set']
    @client_options[:replica_set] = replica_set
  end
  if read = conf['read']
    @client_options[:read] = read.to_sym
  end

  log.debug "Setup replica set configuration: #{conf['replica_set']}"
end