Class: Fluent::ReemitOutput
- Inherits:
-
Output
- Object
- Output
- Fluent::ReemitOutput
show all
- Defined in:
- lib/fluent/plugin/out_reemit.rb
Defined Under Namespace
Classes: V10Engine, V12EventRouter
Instance Method Summary
collapse
Instance Method Details
12
13
14
|
# File 'lib/fluent/plugin/out_reemit.rb', line 12
def configure(conf)
super
end
|
#emit(tag, es, chain) ⇒ Object
26
27
28
29
30
31
|
# File 'lib/fluent/plugin/out_reemit.rb', line 26
def emit(tag, es, chain)
@router.emit_stream(tag, es)
chain.next
rescue => e
log.warn "reemit: #{e.class} #{e.message} #{e.backtrace.first}"
end
|
#included?(collector) ⇒ Boolean
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'lib/fluent/plugin/out_reemit.rb', line 33
def included?(collector)
return false if collector.nil?
if collector == self
true
elsif collector.respond_to?(:outputs) collector.outputs.each do |o|
return true if self.included?(o)
end
false
else
false
end
end
|
#start ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/fluent/plugin/out_reemit.rb', line 16
def start
super
@router =
if Engine.instance_variable_get(:@event_router)
V12EventRouter.new(self)
else
V10Engine.new(self)
end
end
|