Module: Maxwell::Agent::Probe::ClassMethods
- Defined in:
- lib/maxwell/agent/probe.rb
Instance Method Summary collapse
- #call_handler(probe) ⇒ Object
- #instance(*args) ⇒ Object
- #perform(*args) ⇒ Object
- #work_type ⇒ Object
- #work_type=(value) ⇒ Object
Instance Method Details
#call_handler(probe) ⇒ Object
29 30 31 |
# File 'lib/maxwell/agent/probe.rb', line 29 def call_handler(probe) probe.handle if probe.respond_to?(:handle) end |
#instance(*args) ⇒ Object
23 24 25 26 27 |
# File 'lib/maxwell/agent/probe.rb', line 23 def instance(*args) instance = new instance.args = args instance end |
#perform(*args) ⇒ Object
17 18 19 20 21 |
# File 'lib/maxwell/agent/probe.rb', line 17 def perform(*args) probe = instance(*args) probe.output = probe.perform(*args) call_handler(probe) end |
#work_type ⇒ Object
33 34 35 |
# File 'lib/maxwell/agent/probe.rb', line 33 def work_type @work_type ||= :non_evented end |
#work_type=(value) ⇒ Object
37 38 39 |
# File 'lib/maxwell/agent/probe.rb', line 37 def work_type=(value) @work_type = value.to_sym end |