Class: Fluent::Plugin::MonitorAgentInput

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/tdms_ext_fluentd.rb

Direct Known Subclasses

ExMonitorAgentInput

Class Method Summary collapse

Class Method Details

.collect_children(pe, array = []) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/fluent/plugin/tdms_ext_fluentd.rb', line 5

def self.collect_children(pe, array=[])
  array << pe
  if pe.is_a?(MultiOutput) && pe.respond_to?(:outputs)
    pe.outputs.each {|nop|
      collect_children(nop, array)
    }
  elsif pe.respond_to?(:output) && pe.output.is_a?(Output)
    collect_children(pe.output, array)
  end
  array
end