Class: MintPress::OracleWeblogic::Machine

Inherits:
Object
  • Object
show all
Includes:
MintLogger, Mixins::Properties, FancyNew, MBeanUtils, Utils
Defined in:
src/oracle-weblogic/lib/oracle-weblogic/model/individual/machine.rb,
src/oracle-weblogic/lib/oracle-weblogic/model/generated_classes/split_18.rb,
src/oracle-weblogic/lib/oracle-weblogic/model/machine.rb

Overview

Base class for an Oracle Weblogic Domain's Machine object see Domain class for further details Domain#machines

Since:

  • 0.1.0

Properties (Read/Write)

  • #version ⇒ String (Default Value: Proc.new { self.domain.version })
    Version of weblogic this property is being applied to

    Property Attributes
    • defaultProc.new { self.domain.version }
    
    
    17
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/individual/machine.rb', line 17
    
    property :version, type: String, default: Proc.new { self.domain.version }
  • #name ⇒ String
    "The name of this configuration."

    Property Attributes
    • short_name"Name"
    • has_settertrue
    • has_gettertrue
    • has_listerfalse
    • has_creatorfalse
    • read_onlyfalse
    
    
    20
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/individual/machine.rb', line 20
    
    property :Name, type: String, array: false, hash: false, short_name: "Name", has_setter: true, has_getter: true, has_lister: false, has_creator: false, read_only: false, description: "The name of this configuration."
  • #notes ⇒ String
    "Optional information that you can include to describe this\nconfiguration."

    Property Attributes
    • short_name"Notes"
    • has_settertrue
    • has_gettertrue
    • has_listerfalse
    • has_creatorfalse
    • read_onlyfalse
    
    
    23
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/individual/machine.rb', line 23
    
    property :Notes, type: String, array: false, hash: false, short_name: "Notes", has_setter: true, has_getter: true, has_lister: false, has_creator: false, read_only: false, description: "Optional information that you can include to describe this\nconfiguration."
  • #addresses ⇒ Array of ⇒ String
    "Deprecated.\n8.1.0.0 Replaced by ServerTemplateMBean.getListenAddress()"

    Property Attributes
    • short_name"Addresses"
    • has_settertrue
    • has_gettertrue
    • has_listerfalse
    • has_creatorfalse
    • read_onlyfalse
    
    
    26
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/individual/machine.rb', line 26
    
    property :Addresses, type: String, array: true, hash: false, short_name: "Addresses", has_setter: true, has_getter: true, has_lister: false, has_creator: false, read_only: false, description: "Deprecated.\n8.1.0.0 Replaced by ServerTemplateMBean.getListenAddress()"
  • #dynamically_created ⇒ [TrueClass, FalseClass] (Default Value: false)

    Property Attributes
    • defaultfalse
    
    
    61
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/machine.rb', line 61
    
    property :DynamicallyCreated, type: [TrueClass, FalseClass], default: false
  • #servers ⇒ Array of ⇒ MintPress::OracleWeblogic::Server (Default Value: [])
    The servers associated with this machine

    Property Attributes
    • default[]
    
    
    64
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/machine.rb', line 64
    
    property :Servers, type: MintPress::OracleWeblogic::Server, array: true, default: []
  • #domain ⇒ MintPress::OracleWeblogic::Domain
    The domain associated with this machine

    Property Attributes
    
    
    66
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/machine.rb', line 66
    
    property :domain, type: MintPress::OracleWeblogic::Domain
  • #parent ⇒ MintPress::OracleWeblogic::Domain
    Machine is always parented on the domain - if you don't do this, some things break. To be fair, the harvester _should_ enforce off what objects you can create - it doens't today. We'll fix this later, but for now this should allieviate the bug that i had...

    Property Attributes
    
    
    75
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/machine.rb', line 75
    
    property :parent, type: MintPress::OracleWeblogic::Domain
  • #installations ⇒ Hash of ⇒ MintPress::OracleWeblogic::Installation
    The installation associated with this machine - the primary uses for this are deriving fmw_home and host - it makes sense, if you're creating a new domain from scratch, to specify this, however for BAU operations it's just as effective to specify host directly, and fmw_home on the domain.

    Property Attributes
    • disposition:requires
    • canonicaltrue
    
    
    79
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/machine.rb', line 79
    
    property :installations, type: MintPress::OracleWeblogic::Installation, hash: true, disposition: :requires, canonical: true
  • #host ⇒ MintPress::Infrastructure::Host (Default Value: Proc.new { r=nil # remember, installation is a function here, not a property! if installation and installation.host r = installation.host elsif self.default_localhost r = MintPress::Infrastructure::Localhost.new(final_user: self.default_localhost_user) else r = guess_host end r })
    The host this machine is located on. If an installation is available, this will be derived from that. In systems where it makes sense to do so, such as chef/puppet, this will default to localhost. Note that if neither host nor installation. This is required to perform start/stop of the nodemanager of this machine, as well as non-adminserver assisted startup/shutdown, for BAU operations this can be omitted and the admin server can be used to connect instead.

    Property Attributes
    • defaultProc.new { r=nil # remember, installation is a function here, not a property! if installation and installation.host r = installation.host elsif self.default_localhost r = MintPress::Infrastructure::Localhost.new(final_user: self.default_localhost_user) else r = guess_host end r }
    • cached_proctrue
    
    
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/machine.rb', line 83
    
    property :host, type: MintPress::Infrastructure::Host, default: Proc.new { r=nil
    # remember, installation is a function here, not a property!
    if installation and installation.host 
     r = installation.host
                                                                                      elsif self.default_localhost
     r = MintPress::Infrastructure::Localhost.new(final_user: self.default_localhost_user)
                                                                                      else
     r = guess_host
                                                                                      end
    r }, cached_proc: true

Properties (Read Only)

  • #node_manager ⇒ MintPress::OracleWeblogic::NodeManager (Default Value: MintPress::OracleWeblogic::NodeManager.new)

    Property Attributes
    • short_name"NodeManager"
    • has_setterfalse
    • has_gettertrue
    • has_listerfalse
    • has_creatorfalse
    • read_onlytrue
    • fromHash
    • defaultMintPress::OracleWeblogic::NodeManager.new
    
    
    28
    # File 'src/oracle-weblogic/lib/oracle-weblogic/model/individual/machine.rb', line 28
    
    property :NodeManager, type: MintPress::OracleWeblogic::NodeManager, from: Hash, default: MintPress::OracleWeblogic::NodeManager.new

Constant Summary

Constants included from MintLogger

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

Instance Attribute Summary

Attributes included from Mixins::Properties

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

Instance Method Summary collapse

Methods included from MBeanUtils

#assign_object_by_identity, #assign_object_by_identity_from, #bean_is_changed?, #dump_metadata, #dump_tree_metadata, #get_item_by_identity_name, #get_item_by_identity_name_from, #get_parent_by_identity_name, #harvest, #harvest_anew, #harvest_item_by_name, #harvest_item_by_type, #harvest_wlst, #harvesters, #harvesting, #longname, #lookup_mintpress_by_mbean, #mbean_by_url, #process_mbeans, #register_mbean_url

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 Utils

#activate_list, #already_traversed, #announce_self, #bean_type, #build_activate_list, #clear_property_sheet_cache, #create_generic, #create_mbean_components, #delete, #destroy_generic, #empty_mbean?, #execute_script, #exists?, #fast_ls_all, #fast_ls_folder, #fast_ls_object, #fast_ls_object_map, #find_cluster, #find_runtime_path_in_rest, #find_server, #full_url, #get, #get_all_self_names, #get_identity, #get_local_wlst_session, #get_matching_self_names, #get_property_from_target, #get_property_from_target_rest, #get_property_from_target_wlst, #get_property_from_target_wlst_impl, #get_property_sheet, #get_rest_item, #get_rest_url_for_parent, #get_rest_url_for_self, #get_servers, #get_servers_rest, #get_servers_wlst, #get_wl_home, #globmatch?, #handle_create, #http_delete, #http_get, #http_post, #http_put, included, #invalidate_session, #is_meta_object?, #longclass, #massage_return, #mbean_components, #mbean_exists?, #mbean_lookup, #mbean_properties, #mbean_to_hash, #meta_list?, #my_short_name, #perform_method_generic, #perform_runtime_call_generic_rest, #perform_runtime_method_generic, #post, #raise_http_exception, #remove, #request_headers, #reset_activate_list, #rest_activate_change, #rest_create_generic, #rest_create_mbean_components, #rest_destroy_self, #rest_edit_url, #rest_has_changes, #rest_idempotent_create, #rest_locked, #rest_nonedit_url, #rest_start_change, #rest_undo_change, #runtime_introspection, #shortclass, #start_with_async, #state_with_net_ping, #stop_with_async, #to_nested, #wlst_cd_to, #wlst_create_generic, #wlst_destroy_self, #wlst_find_object, #wlst_find_parent_object, #wlst_generic_mbean_update_all, #wlst_idempotent_create, #wlst_update_mbean

Methods included from FancyNew

included

Constructor Details

#initialize(opts = {}) ⇒ MintPress::OracleWeblogic::Machine

Constructor

Examples:

Create Domain with Machines - @see Domain#configure_offline

admin_password = Mint::Secret.new("welcome1")

domain_opts={Name: 'wls_domain', AdminServerName: 'AdminServer', AdminUsername: 'weblogic', AdminPassword: admin_password, RootDirectory: '/oracle/app/wls/environments', installations: [wls_installation1, wls_installation2])
domain=MintPress::OracleWeblogic::Domain.new(domain_opts)

domain.add_machine(Name: "appserver1.mintpress.io", 
                   NodeManager: { Name: "appserver1.mintpress.io", Home: "#{domain.domainHome}/nodemanager", ListenAddress: "appserver1.mintpress.io", ListenPort: 5566, UserName: 'weblogic', Password: admin_password, NMType: 'Plain'})

Parameters:

  • opts (Hash) (defaults to: {})
    A Hash of options with which to instantiate this class

Raises:

  • (ArgumentError)
    invalid argument passed into constructor

Since:

  • 0.1.0

Instance Method Details

#createvoid

This method returns an undefined value.

Create the Machine and associated NodeManager

Since:

  • 0.1.0

#generate_demoidentityObject

Since:

  • 0.1.0

#guess_hostObject

Since:

  • 0.1.0

#import_props_from_modelObject

#installObject

Since:

  • 0.1.0

#installationObject

Since:

  • 0.1.0

#set_addressesObject

setAddresses(String[] addresses)# Deprecated. 8.1.0.0 Replaced by ServerTemplateMBean.getListenAddress()

#usagevoid

This method returns an undefined value.

Print usage

Since:

  • 0.1.0