Class: Wakame::Trigger
- Inherits:
-
Object
- Object
- Wakame::Trigger
- Includes:
- AttributeHelper, FilterChain
- Defined in:
- lib/wakame/trigger.rb
Direct Known Subclasses
Wakame::Triggers::InstanceCountUpdate, Wakame::Triggers::MaintainSshKnownHosts, Wakame::Triggers::ScaleoutWhenHighLoad, Wakame::Triggers::ShutdownUnusedVM
Constant Summary
Constants included from AttributeHelper
AttributeHelper::CLASS_TYPE_KEY, AttributeHelper::CONVERT_CLASSES, AttributeHelper::PRIMITIVE_CLASSES
Instance Method Summary collapse
- #agent_monitor ⇒ Object
- #cleanup ⇒ Object
- #command_queue ⇒ Object
-
#master ⇒ Object
def service_cluster action_manager.service_cluster end alias :cluster :service_cluster.
- #register_hooks(service_cluster_id) ⇒ Object
- #trigger_action(action) ⇒ Object
Methods included from AttributeHelper
#dump_attrs, #retrieve_attr_attribute
Methods included from FilterChain
Instance Method Details
#agent_monitor ⇒ Object
17 18 19 |
# File 'lib/wakame/trigger.rb', line 17 def agent_monitor master.agent_monitor end |
#cleanup ⇒ Object
32 33 |
# File 'lib/wakame/trigger.rb', line 32 def cleanup end |
#command_queue ⇒ Object
21 22 23 |
# File 'lib/wakame/trigger.rb', line 21 def command_queue master.command_queue end |
#master ⇒ Object
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 |