Included Modules

Class/Module Index [+]

Quicksearch

Fluent::DetachProcessMixin

Public Instance Methods

configure(conf) click to toggle source
# File lib/fluent/process.rb, line 398
def configure(conf)
  super

  if detach_process = conf['detach_process']
    b3v = Config.bool_value(detach_process)
    case b3v
    when nil
      num = detach_process.to_i
      if num > 1
        $log.warn "'detach_process' parameter supports only 1 process on this plugin: #{conf}"
      elsif num > 0
        @detach_process = true
      elsif detach_process =~ /0+/
        @detach_process = false
      else
        @detach_process = true
      end
    when true
      @detach_process = true
    when false
      @detach_process = false
    end
  end
end
detach_process(&block) click to toggle source
# File lib/fluent/process.rb, line 423
def detach_process(&block)
  if @detach_process
    detach_process_impl(1, &block)
  else
    block.call
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.