module Maxwell::Agent::Probe::ClassMethods

Public Instance Methods

call_handler(probe) click to toggle source
# File lib/maxwell/agent/probe.rb, line 29
def call_handler(probe)
  probe.handle if probe.respond_to?(:handle)
end
instance(*args) click to toggle source
# File lib/maxwell/agent/probe.rb, line 23
def instance(*args)
  instance = new
  instance.args = args
  instance
end
perform(*args) click to toggle source
# 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() click to toggle source
# File lib/maxwell/agent/probe.rb, line 33
def work_type
  @work_type ||= :non_evented
end
work_type=(value) click to toggle source
# File lib/maxwell/agent/probe.rb, line 37
def work_type=(value)
  @work_type = value.to_sym
end