Parent

Class/Module Index [+]

Quicksearch

Fluent::DebugAgentInput

Public Class Methods

new() click to toggle source
# File lib/fluent/plugin/in_debug_agent.rb, line 21
def initialize
  require 'drb/drb'
  require 'fluent/plugin/file_util'
  super
end

Public Instance Methods

configure(conf) click to toggle source
# File lib/fluent/plugin/in_debug_agent.rb, line 33
def configure(conf)
  super
  if @unix_path
    unless ::Fluent::FileUtil.writable?(@unix_path)
      raise ConfigError, "in_debug_agent: `#{@unix_path}` is not writable"
    end
  end
end
shutdown() click to toggle source
# File lib/fluent/plugin/in_debug_agent.rb, line 54
def shutdown
  @server.stop_service if @server
end
start() click to toggle source
# File lib/fluent/plugin/in_debug_agent.rb, line 42
def start
  if @unix_path
    require 'drb/unix'
    uri = "drbunix:#{@unix_path}"
  else
    uri = "druby://#{@bind}:#{@port}"
  end
  log.info "listening dRuby", :uri => uri, :object => @object
  obj = eval(@object)
  @server = DRb::DRbServer.new(uri, obj)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.