Class: IControl::LocalLB::Pool
- Inherits:
-
Base
- Object
- Base
- IControl::LocalLB::Pool
- Defined in:
- lib/icontrol/local_lb/pool.rb,
lib/icontrol/local_lb.rb,
lib/icontrol/base/icontrol_overlay/local_lb/pool.rb
Overview
The Pool interface enables you to work with attributes, and statistics for pools. You can also use this interface to create pools, add members to a pool, delete members from a pool, find out the load balancing mode for a pool, and set the load balancing mode for a pool.
Defined Under Namespace
Classes: MonitorAssociation, MonitorAssociationSequence, PoolStatisticEntry, PoolStatisticEntrySequence, PoolStatistics
Instance Method Summary collapse
-
#action_on_service_down ⇒ ServiceDownAction
Gets the action to take when the node goes down for this pool.
-
#active_member_count ⇒ long
Gets the current active member counts for this pool.
-
#add_member(opts) ⇒ Object
Adds members to this pool.
-
#aggregate_dynamic_ratio ⇒ long
Gets the aggregate dynamic ratio values from all the members of the pool.
-
#all_statistics ⇒ PoolStatistics
Gets the statistics for all the pool.
-
#allow_nat_state ⇒ EnabledState
Gets the states indicating whether NATs are allowed for this pool.
-
#allow_snat_state ⇒ EnabledState
Gets the states indicating whether SNATs are allowed for this pool.
-
#client_ip_tos ⇒ long
Gets the IP ToS values for client traffic for this pool.
-
#client_link_qos ⇒ long
Gets the link QoS values for client traffic for this pool.
-
#create(opts) ⇒ Object
Creates a new pool.
-
#delete_all_pools ⇒ Object
Deletes all pool.
-
#delete_persistence_record(opts) ⇒ Object
Deletes the persistence records based on this persistent modes for this pool.
-
#delete_pool ⇒ Object
Deletes this pool.
-
#gateway_failsafe_unit_id ⇒ long
Gets the gateway failsafe unit IDs for this pool.
-
#lb_method ⇒ LBMethod
Gets the load balancing methods for this pool.
-
#list ⇒ String
Gets a list of all pool.
-
#member ⇒ IPPortDefinition[]
Gets a list of pool members.
- #members ⇒ Object
-
#minimum_active_member ⇒ long
Gets the minimum active member counts for this pool.
-
#minimum_up_member ⇒ long
Gets the minimum member counts that are required to be UP for this pool.
-
#minimum_up_member_action ⇒ HAAction
Gets the actions to be taken if the minimum number of members required to be UP for this pool is not met.
-
#minimum_up_member_enabled_state ⇒ EnabledState
Gets the states indicating that the feature that requires a minimum number of members to be UP is enabled/disabled for this pool.
-
#monitor_association ⇒ MonitorAssociation
Gets the monitor associations for this pool, i.e.
-
#monitor_instance ⇒ MonitorInstanceState[]
Gets the monitor instance information for this pool, i.e.
-
#object_status ⇒ ObjectStatus
Gets the statuses of this pool.
-
#persistence_record(opts) ⇒ PersistenceRecord[]
Gets the persistence records based on this persistent modes for this pool.
-
#remove_member(opts) ⇒ Object
Removes members from this pool.
-
#remove_monitor_association ⇒ Object
Removes the monitor associations for this pool.
-
#reset_statistics ⇒ Object
Resets the statistics for this pool.
-
#server_ip_tos ⇒ long
Gets the IP ToS values for server traffic for this pool.
-
#server_link_qos ⇒ long
Gets the link QoS values for server traffic for this pool.
-
#set_action_on_service_down(opts) ⇒ Object
Sets the action to take when the node goes down for this pool.
-
#set_allow_nat_state(opts) ⇒ Object
Sets the states indicating whether NATs are allowed for this pool.
-
#set_allow_snat_state(opts) ⇒ Object
Sets the states indicating whether SNATs are allowed for this pool.
-
#set_client_ip_tos(opts) ⇒ Object
Sets the IP ToS values for client traffic for this pool.
-
#set_client_link_qos(opts) ⇒ Object
Sets the link QoS values for client traffic for this pool.
-
#set_gateway_failsafe_unit_id(opts) ⇒ Object
Sets the gateway failsafe unit IDs for this pool.
-
#set_lb_method(opts) ⇒ Object
Sets the load balancing methods for this pool.
-
#set_minimum_active_member(opts) ⇒ Object
Sets the minimum active member counts for this pool.
-
#set_minimum_up_member(opts) ⇒ Object
Sets the minimum member counts that are required to be UP for this pool.
-
#set_minimum_up_member_action(opts) ⇒ Object
Sets the actions to be taken if the minimum number of members required to be UP for this pool is not met.
-
#set_minimum_up_member_enabled_state(opts) ⇒ Object
Sets the states indicating that the feature that requires a minimum number of members to be UP is enabled/disabled for this pool.
-
#set_monitor_association(opts) ⇒ Object
Sets/creates the monitor associations for this pool.
-
#set_server_ip_tos(opts) ⇒ Object
Sets the IP ToS values for server traffic for this pool.
-
#set_server_link_qos(opts) ⇒ Object
Sets the link QoS values for server traffic for this pool.
-
#set_simple_timeout(opts) ⇒ Object
Sets the simple timeouts for this pool.
-
#set_slow_ramp_time(opts) ⇒ Object
Sets the ramp-up time (in seconds) to gradually ramp up the load on newly added or freshly detected UP pool members.
-
#simple_timeout ⇒ long
Gets the simple timeouts for this pool.
-
#slow_ramp_time ⇒ long
Gets the ramp-up time (in seconds) to gradually ramp up the load on newly added or freshly detected UP pool members.
-
#statistics ⇒ PoolStatistics
Gets the statistics for this pool.
-
#version ⇒ String
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
#action_on_service_down ⇒ ServiceDownAction
Gets the action to take when the node goes down for this pool.
82 83 84 |
# File 'lib/icontrol/local_lb/pool.rb', line 82 def action_on_service_down super end |
#active_member_count ⇒ long
Gets the current active member counts for this pool.
93 94 95 |
# File 'lib/icontrol/local_lb/pool.rb', line 93 def active_member_count super end |
#add_member(opts) ⇒ Object
Adds members to this pool.
23 24 25 26 |
# File 'lib/icontrol/local_lb/pool.rb', line 23 def add_member(opts) opts = check_params(opts,[:members]) super(opts) end |
#aggregate_dynamic_ratio ⇒ long
Gets the aggregate dynamic ratio values from all the members of the pool.
104 105 106 |
# File 'lib/icontrol/local_lb/pool.rb', line 104 def aggregate_dynamic_ratio super end |
#all_statistics ⇒ PoolStatistics
Gets the statistics for all the pool.
115 116 117 |
# File 'lib/icontrol/local_lb/pool.rb', line 115 def all_statistics super end |
#allow_nat_state ⇒ EnabledState
Gets the states indicating whether NATs are allowed for this pool.
126 127 128 |
# File 'lib/icontrol/local_lb/pool.rb', line 126 def allow_nat_state super end |
#allow_snat_state ⇒ EnabledState
Gets the states indicating whether SNATs are allowed for this pool.
137 138 139 |
# File 'lib/icontrol/local_lb/pool.rb', line 137 def allow_snat_state super end |
#client_ip_tos ⇒ long
Gets the IP ToS values for client traffic for this pool.
148 149 150 |
# File 'lib/icontrol/local_lb/pool.rb', line 148 def client_ip_tos super end |
#client_link_qos ⇒ long
Gets the link QoS values for client traffic for this pool.
159 160 161 |
# File 'lib/icontrol/local_lb/pool.rb', line 159 def client_link_qos super end |
#create(opts) ⇒ Object
Creates a new pool.
37 38 39 40 |
# File 'lib/icontrol/local_lb/pool.rb', line 37 def create(opts) opts = check_params(opts,[:lb_methods,:members]) super(opts) end |
#delete_all_pools ⇒ Object
Deletes all pool.
48 49 50 |
# File 'lib/icontrol/local_lb/pool.rb', line 48 def delete_all_pools super end |
#delete_persistence_record(opts) ⇒ Object
Deletes the persistence records based on this persistent modes for this pool.
60 61 62 63 |
# File 'lib/icontrol/local_lb/pool.rb', line 60 def delete_persistence_record(opts) opts = check_params(opts,[:persistence_modes]) super(opts) end |
#delete_pool ⇒ Object
Deletes this pool.
71 72 73 |
# File 'lib/icontrol/local_lb/pool.rb', line 71 def delete_pool super end |
#gateway_failsafe_unit_id ⇒ long
Gets the gateway failsafe unit IDs for this pool.
170 171 172 |
# File 'lib/icontrol/local_lb/pool.rb', line 170 def gateway_failsafe_unit_id super end |
#lb_method ⇒ LBMethod
Gets the load balancing methods for this pool.
181 182 183 |
# File 'lib/icontrol/local_lb/pool.rb', line 181 def lb_method super end |
#list ⇒ String
Gets a list of all pool.
192 193 194 |
# File 'lib/icontrol/local_lb/pool.rb', line 192 def list super end |
#member ⇒ IPPortDefinition[]
Gets a list of pool members.
203 204 205 |
# File 'lib/icontrol/local_lb/pool.rb', line 203 def member super end |
#members ⇒ Object
3 4 5 |
# File 'lib/icontrol/base/icontrol_overlay/local_lb/pool.rb', line 3 def members @members ||= IControl::LocalLB::PoolMember.new(:id => id) end |
#minimum_active_member ⇒ long
Gets the minimum active member counts for this pool.
214 215 216 |
# File 'lib/icontrol/local_lb/pool.rb', line 214 def minimum_active_member super end |
#minimum_up_member ⇒ long
Gets the minimum member counts that are required to be UP for this pool.
225 226 227 |
# File 'lib/icontrol/local_lb/pool.rb', line 225 def minimum_up_member super end |
#minimum_up_member_action ⇒ HAAction
Gets the actions to be taken if the minimum number of members required to be UP for this pool is not met.
237 238 239 |
# File 'lib/icontrol/local_lb/pool.rb', line 237 def minimum_up_member_action super end |
#minimum_up_member_enabled_state ⇒ EnabledState
Gets the states indicating that the feature that requires a minimum number of members to be UP is enabled/disabled for this pool.
249 250 251 |
# File 'lib/icontrol/local_lb/pool.rb', line 249 def minimum_up_member_enabled_state super end |
#monitor_association ⇒ MonitorAssociation
Gets the monitor associations for this pool, i.e. the monitor rules used by the pool.
260 261 262 |
# File 'lib/icontrol/local_lb/pool.rb', line 260 def monitor_association super end |
#monitor_instance ⇒ MonitorInstanceState[]
Gets the monitor instance information for this pool, i.e. the monitor instance information for the pool members of this pool.
272 273 274 |
# File 'lib/icontrol/local_lb/pool.rb', line 272 def monitor_instance super end |
#object_status ⇒ ObjectStatus
Gets the statuses of this pool.
283 284 285 |
# File 'lib/icontrol/local_lb/pool.rb', line 283 def object_status super end |
#persistence_record(opts) ⇒ PersistenceRecord[]
Gets the persistence records based on this persistent modes for this pool.
296 297 298 299 |
# File 'lib/icontrol/local_lb/pool.rb', line 296 def persistence_record(opts) opts = check_params(opts,[:persistence_modes]) super(opts) end |
#remove_member(opts) ⇒ Object
Removes members from this pool.
373 374 375 376 |
# File 'lib/icontrol/local_lb/pool.rb', line 373 def remove_member(opts) opts = check_params(opts,[:members]) super(opts) end |
#remove_monitor_association ⇒ Object
Removes the monitor associations for this pool. This basically deletes the monitor associations between a pool and a monitor rule, i.e. this pool will no longer be monitored.
386 387 388 |
# File 'lib/icontrol/local_lb/pool.rb', line 386 def remove_monitor_association super end |
#reset_statistics ⇒ Object
Resets the statistics for this pool.
396 397 398 |
# File 'lib/icontrol/local_lb/pool.rb', line 396 def reset_statistics super end |
#server_ip_tos ⇒ long
Gets the IP ToS values for server traffic for this pool.
308 309 310 |
# File 'lib/icontrol/local_lb/pool.rb', line 308 def server_ip_tos super end |
#server_link_qos ⇒ long
Gets the link QoS values for server traffic for this pool.
319 320 321 |
# File 'lib/icontrol/local_lb/pool.rb', line 319 def server_link_qos super end |
#set_action_on_service_down(opts) ⇒ Object
Sets the action to take when the node goes down for this pool.
408 409 410 411 |
# File 'lib/icontrol/local_lb/pool.rb', line 408 def set_action_on_service_down(opts) opts = check_params(opts,[:actions]) super(opts) end |
#set_allow_nat_state(opts) ⇒ Object
Sets the states indicating whether NATs are allowed for this pool.
421 422 423 424 |
# File 'lib/icontrol/local_lb/pool.rb', line 421 def set_allow_nat_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_allow_snat_state(opts) ⇒ Object
Sets the states indicating whether SNATs are allowed for this pool.
434 435 436 437 |
# File 'lib/icontrol/local_lb/pool.rb', line 434 def set_allow_snat_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_client_ip_tos(opts) ⇒ Object
Sets the IP ToS values for client traffic for this pool.
447 448 449 450 |
# File 'lib/icontrol/local_lb/pool.rb', line 447 def set_client_ip_tos(opts) opts = check_params(opts,[:values]) super(opts) end |
#set_client_link_qos(opts) ⇒ Object
Sets the link QoS values for client traffic for this pool.
460 461 462 463 |
# File 'lib/icontrol/local_lb/pool.rb', line 460 def set_client_link_qos(opts) opts = check_params(opts,[:values]) super(opts) end |
#set_gateway_failsafe_unit_id(opts) ⇒ Object
Sets the gateway failsafe unit IDs for this pool.
473 474 475 476 |
# File 'lib/icontrol/local_lb/pool.rb', line 473 def set_gateway_failsafe_unit_id(opts) opts = check_params(opts,[:unit_ids]) super(opts) end |
#set_lb_method(opts) ⇒ Object
Sets the load balancing methods for this pool.
486 487 488 489 |
# File 'lib/icontrol/local_lb/pool.rb', line 486 def set_lb_method(opts) opts = check_params(opts,[:lb_methods]) super(opts) end |
#set_minimum_active_member(opts) ⇒ Object
Sets the minimum active member counts for this pool.
499 500 501 502 |
# File 'lib/icontrol/local_lb/pool.rb', line 499 def set_minimum_active_member(opts) opts = check_params(opts,[:values]) super(opts) end |
#set_minimum_up_member(opts) ⇒ Object
Sets the minimum member counts that are required to be UP for this pool.
512 513 514 515 |
# File 'lib/icontrol/local_lb/pool.rb', line 512 def set_minimum_up_member(opts) opts = check_params(opts,[:values]) super(opts) end |
#set_minimum_up_member_action(opts) ⇒ Object
Sets the actions to be taken if the minimum number of members required to be UP for this pool is not met.
526 527 528 529 |
# File 'lib/icontrol/local_lb/pool.rb', line 526 def set_minimum_up_member_action(opts) opts = check_params(opts,[:actions]) super(opts) end |
#set_minimum_up_member_enabled_state(opts) ⇒ Object
Sets the states indicating that the feature that requires a minimum number of members to be UP is enabled/disabled for this pool.
540 541 542 543 |
# File 'lib/icontrol/local_lb/pool.rb', line 540 def set_minimum_up_member_enabled_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_monitor_association(opts) ⇒ Object
Sets/creates the monitor associations for this pool. This basically creates the monitor associations between a pool and a monitor rule.
554 555 556 557 |
# File 'lib/icontrol/local_lb/pool.rb', line 554 def set_monitor_association(opts) opts = check_params(opts,[:monitor_associations]) super(opts) end |
#set_server_ip_tos(opts) ⇒ Object
Sets the IP ToS values for server traffic for this pool.
567 568 569 570 |
# File 'lib/icontrol/local_lb/pool.rb', line 567 def set_server_ip_tos(opts) opts = check_params(opts,[:values]) super(opts) end |
#set_server_link_qos(opts) ⇒ Object
Sets the link QoS values for server traffic for this pool.
580 581 582 583 |
# File 'lib/icontrol/local_lb/pool.rb', line 580 def set_server_link_qos(opts) opts = check_params(opts,[:values]) super(opts) end |
#set_simple_timeout(opts) ⇒ Object
Sets the simple timeouts for this pool.
593 594 595 596 |
# File 'lib/icontrol/local_lb/pool.rb', line 593 def set_simple_timeout(opts) opts = check_params(opts,[:simple_timeouts]) super(opts) end |
#set_slow_ramp_time(opts) ⇒ Object
Sets the ramp-up time (in seconds) to gradually ramp up the load on newly added or freshly detected UP pool members.
607 608 609 610 |
# File 'lib/icontrol/local_lb/pool.rb', line 607 def set_slow_ramp_time(opts) opts = check_params(opts,[:values]) super(opts) end |
#simple_timeout ⇒ long
Gets the simple timeouts for this pool.
330 331 332 |
# File 'lib/icontrol/local_lb/pool.rb', line 330 def simple_timeout super end |
#slow_ramp_time ⇒ long
Gets the ramp-up time (in seconds) to gradually ramp up the load on newly added or freshly detected UP pool members.
342 343 344 |
# File 'lib/icontrol/local_lb/pool.rb', line 342 def slow_ramp_time super end |
#statistics ⇒ PoolStatistics
Gets the statistics for this pool.
353 354 355 |
# File 'lib/icontrol/local_lb/pool.rb', line 353 def statistics super end |
#version ⇒ String
Gets the version information for this interface.
361 362 363 |
# File 'lib/icontrol/local_lb/pool.rb', line 361 def version super end |