Class: Fluent::ReemitOutput
- Inherits:
-
Output
- Object
- Output
- Fluent::ReemitOutput
show all
- Defined in:
- lib/fluent/plugin/out_reemit.rb,
lib/fluent/plugin/out_reemit/v10_event_router.rb,
lib/fluent/plugin/out_reemit/v12_event_router.rb,
lib/fluent/plugin/out_reemit/v14_event_router.rb
Defined Under Namespace
Classes: V10EventRouter, V12EventRouter, V14EventRouter
Constant Summary
collapse
- EventRouter =
V10EventRouter
Instance Method Summary
collapse
Instance Method Details
24
25
26
27
28
|
# File 'lib/fluent/plugin/out_reemit.rb', line 24
def configure(conf)
super
@router = EventRouter.new(self)
end
|
#emit(tag, es, chain) ⇒ Object
34
35
36
37
38
39
|
# File 'lib/fluent/plugin/out_reemit.rb', line 34
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
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# File 'lib/fluent/plugin/out_reemit.rb', line 41
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
30
31
32
|
# File 'lib/fluent/plugin/out_reemit.rb', line 30
def start
super
end
|