Class: Wakame::Actions::FreezeCluster
- Inherits:
-
Wakame::Action
- Object
- Wakame::Action
- Wakame::Actions::FreezeCluster
- Defined in:
- lib/wakame/actions/freeze_cluster.rb
Constant Summary
Constants included from AttributeHelper
AttributeHelper::CLASS_TYPE_KEY, AttributeHelper::CONVERT_CLASSES, AttributeHelper::PRIMITIVE_CLASSES
Instance Attribute Summary
Attributes inherited from Wakame::Action
Instance Method Summary collapse
Methods inherited from Wakame::Action
#acquire_lock, #actor_request, #agent_monitor, #all_subactions_complete?, #flush_subactions, #master, #notes, #notify, #on_canceled, #on_failed, #service_cluster, #status=, #subactions, #sync_actor_request, #trigger_action, #walk_subactions
Methods included from ThreadImmutable
#bind_thread, included, #target_thread, #target_thread?, #thread_check
Methods included from AttributeHelper
#dump_attrs, #retrieve_attr_attribute
Instance Method Details
#run ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/wakame/actions/freeze_cluster.rb', line 5 def run acquire_lock(cluster.resources.keys.map {|resid| Service::Resource.find(resid).class.to_s }) StatusDB. { cluster.update_freeze_status(Service::ServiceCluster::STATUS_UNFROZEN) } end |