class Fluent::NorikraOutput
Public Instance Methods
client(opts={})
click to toggle source
# File lib/fluent/plugin/out_norikra.rb, line 50 def client(opts={}) Norikra::Client.new(@host, @port, { :connect_timeout => opts[:connect_timeout] || @connect_timeout, :send_timeout => opts[:send_timeout] || @send_timeout, :receive_timeout => opts[:receive_timeout] || @receive_timeout, }) end
configure(conf)
click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_norikra.rb, line 37 def configure(conf) super @host,@port = @norikra.split(':', 2) @port = @port.to_i if !@target_map_tag && @target_map_key.nil? && @target_string.nil? raise Fluent::ConfigError, 'target naming not specified (target_map_tag/target_map_key/target_string)' end setup_output(conf, false) # <query> disabled in <default> and <target TARGET> end
fetchable?()
click to toggle source
# File lib/fluent/plugin/out_norikra.rb, line 68 def fetchable? true end
format_stream(*)
click to toggle source
For Fluentd 0.14 compatibility. Fluent::Compat::BufferedOutput expects the plugin class itself (but not its included module) to define `format_stream` when overriding.
Calls superclass method
Fluent::NorikraPlugin::OutputMixin#format_stream
# File lib/fluent/plugin/out_norikra.rb, line 75 def format_stream(*) super end
shutdown()
click to toggle source
# File lib/fluent/plugin/out_norikra.rb, line 63 def shutdown stop_output shutdown_output end
start()
click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_norikra.rb, line 58 def start super start_output end