Class: Wakame::Trigger

Inherits:
Object
  • Object
show all
Includes:
AttributeHelper, FilterChain
Defined in:
lib/wakame/trigger.rb

Constant Summary

Constants included from AttributeHelper

AttributeHelper::CLASS_TYPE_KEY, AttributeHelper::CONVERT_CLASSES, AttributeHelper::PRIMITIVE_CLASSES

Instance Method Summary collapse

Methods included from AttributeHelper

#dump_attrs, #retrieve_attr_attribute

Methods included from FilterChain

included, #run_filter

Instance Method Details

#agent_monitorObject



17
18
19
# File 'lib/wakame/trigger.rb', line 17

def agent_monitor
  master.agent_monitor
end

#cleanupObject



32
33
# File 'lib/wakame/trigger.rb', line 32

def cleanup
end

#command_queueObject



21
22
23
# File 'lib/wakame/trigger.rb', line 21

def command_queue
  master.command_queue
end

#masterObject

def service_cluster

action_manager.service_cluster

end alias :cluster :service_cluster



13
14
15
# File 'lib/wakame/trigger.rb', line 13

def master
  Master.instance
end

#register_hooks(service_cluster_id) ⇒ Object



29
30
# File 'lib/wakame/trigger.rb', line 29

def register_hooks(service_cluster_id)
end

#trigger_action(action) ⇒ Object



25
26
27
# File 'lib/wakame/trigger.rb', line 25

def trigger_action(action)
  job_id = master.action_manager.trigger_action(action)
end