Class: MintPress::OracleTrafficDirector::FailoverGroup

Inherits:
Object
  • Object
show all
Includes:
MintLogger, Mixins::Properties, OtdCommon
Defined in:
src/oracle-otd/lib/oracle-otd/generated/failover_group.rb

Overview

delete the specified failover group. To change the VIP or any property of a failover group, you should delete the failover group and create it afresh.

Properties (Read/Write)

  • #name ⇒ String

    Property Attributes
    
    
    27
    # File 'src/oracle-otd/lib/oracle-otd/generated/failover_group.rb', line 27
    
    property :name, type: String
  • #configuration ⇒ [MintPress::OracleTrafficDirector::Configuration]
    'Name of the configuration.'

    Property Attributes
    • otd_proptrue
    • otd_mandatorytrue
    • fromString
    • delete_proptrue
    • otd_delete_mandatorytrue
    
    
    30
    # File 'src/oracle-otd/lib/oracle-otd/generated/failover_group.rb', line 30
    
    property :configuration, description: 'Name of the configuration.', otd_prop: true, otd_mandatory: true, type: [MintPress::OracleTrafficDirector::Configuration], from: String, delete_prop: true, otd_delete_mandatory: true
  • #virtual_ip ⇒ String (Default Value: Proc.new { self.name })
    'The VIP for the failover group to be deleted.'

    Property Attributes
    • otd_proptrue
    • otd_mandatorytrue
    • defaultProc.new { self.name }
    • delete_proptrue
    • otd_delete_mandatorytrue
    
    
    32
    # File 'src/oracle-otd/lib/oracle-otd/generated/failover_group.rb', line 32
    
    property :virtual_ip, description: 'The VIP for the failover group to be deleted.', otd_prop: true, otd_mandatory: true, type: String, default: Proc.new { self.name }, delete_prop: true, otd_delete_mandatory: true
  • #primary_instance ⇒ [MintPress::OracleTrafficDirector::Instance] (Default Value: Proc.new { self.configuration.instance.values[0] })
    'An existing instance which is designated as the primary.'

    Property Attributes
    • otd_proptrue
    • otd_mandatorytrue
    • fromProc.new { |v| puts "WARNING: instance #{v} not yet available on configuration for primary instance" if self.configuration.instance[v].nil? self.configuration.instance[v] }
    • defaultProc.new { self.configuration.instance.values[0] }
    • cached_proctrue
    
    
    34
    35
    36
    # File 'src/oracle-otd/lib/oracle-otd/generated/failover_group.rb', line 34
    
    property :primary_instance, description: 'An existing instance which is designated as the primary.', otd_prop: true, otd_mandatory: true, type: [MintPress::OracleTrafficDirector::Instance], from: Proc.new { |v| 
    puts "WARNING: instance #{v} not yet available on configuration for primary instance" if  self.configuration.instance[v].nil?
    self.configuration.instance[v] }, default: Proc.new { self.configuration.instance.values[0] }, cached_proc: true
  • #backup_instance ⇒ [MintPress::OracleTrafficDirector::Instance] (Default Value: Proc.new { self.configuration.instance.values[1] })
    'An existing instance which is designated as the backup.'

    Property Attributes
    • otd_proptrue
    • otd_mandatorytrue
    • fromProc.new { |v| puts "WARNING: instance #{v} not yet available on configuration for backup instance" if self.configuration.instance[v].nil? self.configuration.instance[v] }
    • defaultProc.new { self.configuration.instance.values[1] }
    • cached_proctrue
    
    
    38
    39
    40
    # File 'src/oracle-otd/lib/oracle-otd/generated/failover_group.rb', line 38
    
    property :backup_instance, description: 'An existing instance which is designated as the backup.', otd_prop: true, otd_mandatory: true, type: [MintPress::OracleTrafficDirector::Instance], from: Proc.new { |v| 
    puts "WARNING: instance #{v} not yet available on configuration for backup instance" if  self.configuration.instance[v].nil?
    self.configuration.instance[v] }, default: Proc.new { self.configuration.instance.values[1] }, cached_proc: true
  • #primary_nic ⇒ String
    'A network interface, on the node where primary-instance is running, upon which the VIP must be managed.'

    Property Attributes
    • otd_proptrue
    • otd_mandatorytrue
    
    
    42
    # File 'src/oracle-otd/lib/oracle-otd/generated/failover_group.rb', line 42
    
    property :primary_nic, description: 'A network interface, on the node where primary-instance is running, upon which the VIP must be managed.', otd_prop: true, otd_mandatory: true, type: String
  • #backup_nic ⇒ String
    'A network interface, on the node where backup-instance is running, upon which the VIP must be managed.'

    Property Attributes
    • otd_proptrue
    • otd_mandatorytrue
    
    
    44
    # File 'src/oracle-otd/lib/oracle-otd/generated/failover_group.rb', line 44
    
    property :backup_nic, description: 'A network interface, on the node where backup-instance is running, upon which the VIP must be managed.', otd_prop: true, otd_mandatory: true, type: String
  • #router_id ⇒ Integer
    'A VRRP necessity, identifies the VRRP router group that are participating in failover for a VIP. The value should be unique across failover groups. If not specified, the default router-id will be a random number between 1 - 255. Range of values: positive integer, valid range is 1-255. Default: random number between 1 - 255'

    Property Attributes
    • otd_proptrue
    
    
    48
    49
    50
    # File 'src/oracle-otd/lib/oracle-otd/generated/failover_group.rb', line 48
    
    property :router_id, description: 'A VRRP necessity, identifies the VRRP router group that are participating in failover for a VIP. The value should be unique across failover groups. If not specified, the default router-id will be a random number between 1 - 255.
    Range of values: positive integer, valid range is 1-255.
    Default: random number between 1 - 255', otd_prop: true, type: Integer
  • #failover_type ⇒ String
    'Failover group type. Values: Active-passive, Active-active. Default value: Active-passive. Note: This property is valid on a Linux platform only.'

    Property Attributes
    • otd_proptrue
    
    
    55
    56
    57
    58
    # File 'src/oracle-otd/lib/oracle-otd/generated/failover_group.rb', line 55
    
    property :failover_type, description: 'Failover group type.
    Values: Active-passive, Active-active.
    Default value: Active-passive.
    Note: This property is valid on a Linux platform only.', otd_prop: true, type: String
  • #parent ⇒ MintPress::OracleTrafficDirector::Configuration

    Property Attributes
    
    
    59
    # File 'src/oracle-otd/lib/oracle-otd/generated/failover_group.rb', line 59
    
    property :parent, type: MintPress::OracleTrafficDirector::Configuration

Properties (Read Only)

Constant Summary collapse

MODEL_PARENTS =
["configuration"]
LIST_PARAMS =
["configuration"]
GET_PARAMS =
["virtual-ip", "configuration"]

Constants included from MintLogger

MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN

Instance Attribute Summary collapse

Attributes included from Mixins::Properties

#autopush_set_cache, #dynamic_create, #harvest_on_access, #harvest_undefined_only, #harvested, #tree_root

Attributes included from OtdCommon

#harvested

Instance Method Summary collapse

Methods included from Mixins::Properties

#[], #[]=, #add_validate_report_result, #armour_set_property, #array_contains?, #array_is_a?, #check_autopush, #check_stack_overflow, #clone_property_object, #cloner_handle_single_property, #coerce_single, #contains_as_string?, #display_validate_report_result, #double_initialize?, #dump_to_hash, #find_parent, #find_parent_by_identity, #generate_accessor_functions, #get_canonical_renamed, #get_from_opts, #get_my_name, #get_property, #get_property_item, #has?, included, #initialize_validate_report, #inspect, #is_cloned_object?, #is_mintpress_object?, #is_probably_canonical?, #is_set?, #local_debug, #local_info, #local_verbose, #mintpress_property_definitions, #place_object_by_identity, #process_properties, #prop_set?, #property, #property_definitions, #property_details, #property_is_simple_object?, #push_root!, #require_property, #require_update, #retrieve_docstring, #sanitize, #set_map_dirty, #set_property, #set_property_item, #show_short_array, #strip_defaults!, #synchronize, #uncloned_property_definitions, #update_map, #validate, #validate_generic, #validate_properties, #validate_property, #validate_required, #version_allowed?, #weakref

Methods included from MintLogger::Utils::Common

#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send

Methods included from OtdCommon

#can_exist?, #creator_available?, #delete_generic, #delete_props, #destroy_generic, #disable_props, #empty_mbean?, #enable_prop_generic, #enable_props, #exist_generic?, #form_props, #get_domain, #get_property_from_target, #get_props, #handle_type, #harvest, #harvesters, #harvesting, #list_generic, #list_props, #otd_create_generic, #otd_propize, #set_prop_generic, #set_props

Constructor Details

#initialize(opts = {}) ⇒ FailoverGroup

Returns a new instance of FailoverGroup.

Instance Attribute Details

#get_paramsObject

Returns the value of attribute get_params.

#list_paramsObject

Returns the value of attribute list_params.

#model_parentsObject

Returns the value of attribute model_parents.

Instance Method Details

#createObject

#destroyObject

#exist?Boolean

Returns:

  • (Boolean)

#startObject

#start_failover(instance) ⇒ Object

Start a failover instance

#stopObject

#stop_failover(instance) ⇒ Object

Stop a failover instance

#toggle_primaryObject

#wlst_session_lock(t, &block) ⇒ Object