Module: Dag::Client::Cluster
Constant Summary
Constants included from ClusterValidation
Dag::Client::ClusterValidation::VALID_WHERE_KEYS
Instance Attribute Summary collapse
-
#cluster_name ⇒ Object
readonly
Returns the value of attribute cluster_name.
Instance Method Summary collapse
Methods included from ClusterValidation
#cluster_norm?, #cluster_norm_or_ptfailed?, #cluster_restart_status?, #cluster_status, #valid_cluster_info_list_status?, #valid_cluster_status?, #validate_cluster, #validate_cluster_param_keys
Instance Attribute Details
#cluster_name ⇒ Object (readonly)
Returns the value of attribute cluster_name.
6 7 8 |
# File 'lib/dag/client/cluster.rb', line 6 def cluster_name @cluster_name end |
Instance Method Details
#cluster ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/dag/client/cluster.rb', line 17 def cluster if @cluster_name.blank? raise Dag::Client::ClusterNotOpen.new("cluster not opened") end cluster_status Dag::Cluster.new(@api, @cluster_info.merge("name" => @cluster_name)) end |
#clusters ⇒ Object
13 14 15 |
# File 'lib/dag/client/cluster.rb', line 13 def clusters Dag::ClusterCollection.new(@api) end |
#open(cluster_name) ⇒ Object
8 9 10 11 |
# File 'lib/dag/client/cluster.rb', line 8 def open(cluster_name) @cluster_name = cluster_name self end |