Parent

Class/Module Index [+]

Quicksearch

Fluent::PluginClass

Public Class Methods

new() click to toggle source
# File lib/fluent/plugin.rb, line 22
def initialize
  @input = {}
  @output = {}
  @buffer = {}
end

Public Instance Methods

load_plugin(type, name) click to toggle source
# File lib/fluent/plugin.rb, line 68
def load_plugin(type, name)
  try_load_plugin(name, type)
end
load_plugin_dir(dir) click to toggle source
# File lib/fluent/plugin.rb, line 58
def load_plugin_dir(dir)
  dir = File.expand_path(dir)
  Dir.entries(dir).sort.each {|fname|
    if fname =~ /\.rb$/
      require File.join(dir, fname)
    end
  }
  nil
end
load_plugins() click to toggle source
# File lib/fluent/plugin.rb, line 52
def load_plugins
  dir = File.join(File.dirname(__FILE__), "plugin")
  load_plugin_dir(dir)
  load_gem_plugins
end
new_buffer(type) click to toggle source
# File lib/fluent/plugin.rb, line 48
def new_buffer(type)
  new_impl('buffer', @buffer, type)
end
new_input(type) click to toggle source
# File lib/fluent/plugin.rb, line 40
def new_input(type)
  new_impl('input', @input, type)
end
new_output(type) click to toggle source
# File lib/fluent/plugin.rb, line 44
def new_output(type)
  new_impl('output', @output, type)
end
register_buffer(type, klass) click to toggle source
# File lib/fluent/plugin.rb, line 36
def register_buffer(type, klass)
  register_impl('buffer', @buffer, type, klass)
end
register_input(type, klass) click to toggle source
# File lib/fluent/plugin.rb, line 28
def register_input(type, klass)
  register_impl('input', @input, type, klass)
end
register_output(type, klass) click to toggle source
# File lib/fluent/plugin.rb, line 32
def register_output(type, klass)
  register_impl('output', @output, type, klass)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.