Class: Fluent::Input

Inherits:
Object
  • Object
show all
Includes:
Configurable, PluginId, PluginLoggerMixin
Defined in:
lib/fluent/input.rb

Constant Summary

Constants included from Configurable

Configurable::CONFIG_TYPE_REGISTRY

Instance Attribute Summary collapse

Attributes included from PluginLoggerMixin

#log

Instance Method Summary collapse

Methods included from PluginLoggerMixin

included

Methods included from PluginId

#plugin_id

Methods included from Configurable

#config, included, lookup_type, register_type

Constructor Details

#initializeInput

Returns a new instance of Input.



30
31
32
# File 'lib/fluent/input.rb', line 30

def initialize
  super
end

Instance Attribute Details

#routerObject

Returns the value of attribute router.



28
29
30
# File 'lib/fluent/input.rb', line 28

def router
  @router
end

Instance Method Details

#configure(conf) ⇒ Object



34
35
36
37
38
39
40
41
42
43
# File 'lib/fluent/input.rb', line 34

def configure(conf)
  super

  if label_name = conf['@label']
    label = Engine.root_agent.find_label(label_name)
    @router = label.event_router
  elsif @router.nil?
    @router = Engine.root_agent.event_router
  end
end

#shutdownObject



48
49
# File 'lib/fluent/input.rb', line 48

def shutdown
end

#startObject



45
46
# File 'lib/fluent/input.rb', line 45

def start
end