Class: MintPress::OracleWeblogic::MetadataRepository
- Inherits:
-
Object
- Object
- MintPress::OracleWeblogic::MetadataRepository
- Includes:
- MintLogger, Mixins::Properties, MintPress::OracleRCU, MBeanUtils, Utils
- Defined in:
- src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb
Overview
Properties (Read/Write)
-
#username ⇒ String
Username for the 'sys' user
Property Attributes- required ⇒ true
95
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 95 property :username, type: String, required: true
-
#sysdba_password ⇒ Mint::Secret
Password for the 'sys' user
Property Attributes- from ⇒ String
- required ⇒ true
97
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 97 property :sysdba_password, type: Mint::Secret, from: String, required: true
-
#schema_password ⇒ Mint::Secret
Password for the created schemas
Property Attributes- from ⇒ String
99
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 99 property :schema_password, type: Mint::Secret, from: String
-
#listen_address ⇒ String
Listen address for the database
Property Attributes- required ⇒ true
101
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 101 property :listen_address, type: String, required: true
-
#listen_port ⇒ Integer
Listen port for the database
Property Attributes- required ⇒ true
103
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 103 property :listen_port, type: Integer, required: true
-
#service_name ⇒ String
Service name for the database
Property Attributes- required ⇒ true
105
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 105 property :service_name, type: String, required: true
-
#jdbc_url ⇒ String (Default Value: 'jdbc:oracle:thin:@//#{listen_address}:#{listen_port}/#{service_name}')
Resolved JDBC url - this can be overridden, but is usually formed by the address/port/service properties
Property Attributes- default ⇒ 'jdbc:oracle:thin:@//#{listen_address}:#{listen_port}/#{service_name}'
107
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 107 property :jdbc_url, type: String, default: 'jdbc:oracle:thin:@//#{listen_address}:#{listen_port}/#{service_name}'
-
#schema_prefix ⇒ String
Naming prefix for the created schemas
Property Attributes- required ⇒ true
109
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 109 property :schema_prefix, type: String, required: true
-
#components_list ⇒ Array of ⇒ String (Default Value: [])
List of componetns to create. Note that some templates will augment this list
Property Attributes- required ⇒ true
- default ⇒ []
111
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 111 property :components_list, type: String, required: true, array: true, default: []
-
#select_dependents_for_components ⇒ [ TrueClass, FalseClass ] (Default Value: true)
Should we automatically include dependencies?
Property Attributes- default ⇒ true
113
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 113 property :select_dependents_for_components, type: [ TrueClass, FalseClass ], default: true
-
#default_repository ⇒ [TrueClass, FalseClass] (Default Value: true)
Is this a default repository, or a secondary repository?
Property Attributes- default ⇒ true
115
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 115 property :default_repository, type: [TrueClass, FalseClass], default: true
-
#protected ⇒ [TrueClass, FalseClass] (Default Value: false)
Is this repository protected? If this is set to true, then attempting to drop it will cause an error!
Property Attributes- default ⇒ false
117
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 117 property :protected, type: [TrueClass, FalseClass], default: false
-
#db_type ⇒ String (Default Value: 'ORACLE')
What DB type is the target database?
Property Attributes- default ⇒ 'ORACLE'
119
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 119 property :db_type, type: String, default: 'ORACLE'
-
#name ⇒ String (Default Value: '#{schema_prefix}Repository')
Property Attributes- default ⇒ '#{schema_prefix}Repository'
120
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 120 property :name, type: String, default: '#{schema_prefix}Repository'
-
#wait_for_db ⇒ [TrueClass, FalseClass] (Default Value: true)
Should we wait for the database to be available before attempting operations? Default is true, since otherwise we can race the database in cloud deployments!
Property Attributes- default ⇒ true
122
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 122 property :wait_for_db, type: [TrueClass, FalseClass], default: true
-
#max_db_wait_time ⇒ Integer (Default Value: 60)
How long should we wait, in minutes
Property Attributes- default ⇒ 60
124
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 124 property :max_db_wait_time, type: Integer, default: 60
-
#optional_args ⇒ String (Default Value: "")
Extra parameters to pass to RCU Deprecated. optional_args will be removed in future releases
Property Attributes- default ⇒ ""
128
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 128 property :optional_args, type: String, default: ""
-
#create_optional_args ⇒ String (Default Value: "")
Property Attributes- default ⇒ ""
129
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 129 property :create_optional_args, type: String, default: ""
-
#drop_optional_args ⇒ String (Default Value: "")
Property Attributes- default ⇒ ""
130
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 130 property :drop_optional_args, type: String, default: ""
-
#encrypt_tablespaces ⇒ [TrueClass, FalseClass] (Default Value: false)
Encypt tablespaces?
Property Attributes- default ⇒ false
132
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 132 property :encrypt_tablespaces, type: [TrueClass, FalseClass], default: false
-
#edition ⇒ String
Edition for EBR databases
Property Attributes134
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 134 property :edition, type: String
-
#db_role ⇒ [String, Symbol]
Role for DB connect
Property Attributes136
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 136 property :db_role, type: [String, Symbol]
-
#unicode_support ⇒ [TrueClass, FalseClass]
Unicode support?
Property Attributes138
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 138 property :unicode_support, type: [TrueClass, FalseClass]
-
#skip_cleanup_on_failure ⇒ [TrueClass, FalseClass]
Skip Cleanup on failure?
Property Attributes140
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 140 property :skip_cleanup_on_failure, type: [TrueClass, FalseClass]
-
#honor_omf ⇒ [TrueClass, FalseClass]
Honor Oracle Managed File configuration?
Property Attributes142
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 142 property :honor_omf, type: [TrueClass, FalseClass]
-
#skip_tablespace_drop ⇒ [TrueClass, FalseClass]
Skip tablespace drop when cleaning up?
Property Attributes144
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 144 property :skip_tablespace_drop, type: [TrueClass, FalseClass]
-
#variables ⇒ Hash of ⇒ String
RCU variables
Property Attributes146
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 146 property :variables, type: String, hash: true
-
#tablespace ⇒ String
tablespace to use for the data
Property Attributes148
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 148 property :tablespace, type: String
-
#temp_tablespace ⇒ String
Temp tablepsace to use for the data
Property Attributes150
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 150 property :temp_tablespace, type: String
-
#script_location ⇒ String
Should we generate a script instead of actually doing the RCU? If so, specify it with this property
Property Attributes152
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 152 property :script_location, type: String
-
#standard_components ⇒ [TrueClass, FalseClass] (Default Value: true)
Should we include standard components, such as STB?
Property Attributes- default ⇒ true
155
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 155 property :standard_components, type: [TrueClass, FalseClass], default: true
-
#ignore_nonfatal_errors ⇒ [TrueClass, FalseClass] (Default Value: false)
Should we ignore nonfatal errors?
Property Attributes- default ⇒ false
158
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 158 property :ignore_nonfatal_errors, type: [TrueClass, FalseClass], default: false
-
#domain ⇒ MintPress::OracleWeblogic::Domain
What domain does this metadata repository relate to?
Property Attributes161
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 161 property :domain, type: MintPress::OracleWeblogic::Domain
-
#installation ⇒ MintPress::OracleWeblogic::Installation (Default Value: Proc.new { self.domain.adminserver_installation })
Which installation does this metadata repository relate to? By default, this will use an installation from the domain, hence is usually not required to be specified.
Property Attributes- default ⇒ Proc.new { self.domain.adminserver_installation }
165
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 165 property :installation, type: MintPress::OracleWeblogic::Installation, default: Proc.new { self.domain.adminserver_installation }
-
#host ⇒ MintPress::Infrastructure::Host (Default Value: Proc.new { r = nil
if self.installation and self.installation.host
r = self.installation.host
elsif self.domain
r = self.domain.host
end
r
})
Which host to operate on. This is usually derived from either the installation or the domain
Property Attributes- default ⇒ Proc.new { r = nil if self.installation and self.installation.host r = self.installation.host elsif self.domain r = self.domain.host end r }
168 169 170 171 172 173 174 175
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 168 property :host, type: MintPress::Infrastructure::Host, default: Proc.new { r = nil if self.installation and self.installation.host r = self.installation.host elsif self.domain r = self.domain.host end r }
-
#fmw_home ⇒ String (Default Value: Proc.new { r = nil
if self.domain
r = domain.fmw_home
elsif self.installation
r = installation.fmw_home
end
r
})
FMW Home to use for calling RCU - this is almost always automatically derived from either the installation or domain objects
Property Attributes- default ⇒ Proc.new { r = nil if self.domain r = domain.fmw_home elsif self.installation r = installation.fmw_home end r }
178 179 180 181 182 183 184 185
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 178 property :fmw_home, type: String, default: Proc.new { r = nil if self.domain r = domain.fmw_home elsif self.installation r = installation.fmw_home end r }
-
#java_home ⇒ String (Default Value: Proc.new { r = nil
if self.domain
r = domain.java_home
elsif self.installation
r = installation.java_home
end
r })
Java Home to use for calling RCU - this is almost always automatically derived from either the installation or domain objects
Property Attributes- default ⇒ Proc.new { r = nil if self.domain r = domain.java_home elsif self.installation r = installation.java_home end r }
188 189 190 191 192 193 194
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 188 property :java_home, type: String, default: Proc.new { r = nil if self.domain r = domain.java_home elsif self.installation r = installation.java_home end r }
-
#version ⇒ String (Default Value: Proc.new { r = nil
if self.domain and self.domain.version
r = domain.version
elsif self.installation and self.installation.version
r = installation.version
end
r })
Fusion middleware version to use
Property Attributes- default ⇒ Proc.new { r = nil if self.domain and self.domain.version r = domain.version elsif self.installation and self.installation.version r = installation.version end r }
196 197 198 199 200 201 202
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 196 property :version, type: String, default: Proc.new { r = nil if self.domain and self.domain.version r = domain.version elsif self.installation and self.installation.version r = installation.version end r }
-
#post_sql ⇒ String
SQL to run after
Property Attributes205
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 205 property :post_sql, type: String
-
#pre_sql ⇒ String
SQL to run before
Property Attributes207
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 207 property :pre_sql, type: String
-
#tablespace_autocreate ⇒ [TrueClass, FalseClass] (Default Value: true)
auto-create tablespace?
Property Attributes- default ⇒ true
209
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 209 property :tablespace_autocreate, type: [TrueClass, FalseClass], default: true
-
#datafile_initial_size ⇒ String
Datafile initial size for RCU, if specified and created by us
Property Attributes211
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 211 property :datafile_initial_size, type: String
-
#datafile_prefix ⇒ String
Datafile prefix
Property Attributes213
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 213 property :datafile_prefix, type: String
-
#datafile_autonaming ⇒ [TrueClass, FalseClass] (Default Value: true)
Datafile autonaming?
Property Attributes- default ⇒ true
215
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 215 property :datafile_autonaming, type: [TrueClass, FalseClass], default: true
-
#tablespace_autodestroy ⇒ [TrueClass, FalseClass] (Default Value: false)
auto-destroy tablespace?
Property Attributes- default ⇒ false
217
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 217 property :tablespace_autodestroy, type: [TrueClass, FalseClass], default: false
-
#tablespace_create_options ⇒ Array of ⇒ String
Tablespace create options
Property Attributes219
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 219 property :tablespace_create_options, type: String, array: true
-
#include_dbname_in_create ⇒ [TrueClass, FalseClass] (Default Value: false)
Include the DB name in the tabelsapce name?
Property Attributes- default ⇒ false
221
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 221 property :include_dbname_in_create, type: [TrueClass, FalseClass], default: false
-
#skip_rcu ⇒ [TrueClass, FalseClass] (Default Value: false)
Should we skip the RCU, and just run the template steps?
Property Attributes- default ⇒ false
223
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 223 property :skip_rcu, type: [TrueClass, FalseClass], default: false
-
#rcu_extra_passwords ⇒ Array of ⇒ Mint::Secret
Any extra passwords to pass to RCU. This would normally be set from your templat's pre_metadata_create hook
Property Attributes- from ⇒ String
226
# File 'src/oracle-weblogic/lib/oracle-weblogic/model/metadata_repository.rb', line 226 property :rcu_extra_passwords, type: Mint::Secret, array: true, from: String
Properties (Read Only)
Constant Summary
Constants included from MintLogger
MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN
Constants included from MintPress::OracleRCU
Instance Attribute Summary collapse
-
#components_list ⇒ String
An array of components for the MetadataRepository.
-
#db_type ⇒ String
The database type for the MetadataRepository [default: 'ORACLE'].
-
#default_repository ⇒ TrueClass, FalseClass
Whether the MetadataRepository is the default repository for the domain.
-
#Domain ⇒ MintPress::OracleWeblogic::Domain
Domain associated with the MetadataRepository.
-
#Installation ⇒ MintPress::OracleWeblogic::Installation
Installation associated with the MetadataRepository.
-
#jdbc_url ⇒ String
The database JDBC URL for the MetadataRepository.
-
#listen_address ⇒ String
The listen address for the MetadataRepository.
-
#listen_port ⇒ Integer
The listen port for the MetadataRepository.
-
#Parent ⇒ MintPress::OracleWeblogic::Domain
Parent Domain associated with the MetadataRepository.
-
#protected ⇒ TrueClass, FalseClass
Whether the MetadataRepository is protected from changes or updates.
-
#schema_password ⇒ Mint::Secret, String
The SCHEMA password for the MetadataRepository.
-
#schema_prefix ⇒ String
The database SCHEMA prefix for the MetadataRepository.
-
#select_dependents_for_components ⇒ TrueClass, FalseClass
Whether to automatically select dependent components for items in the components_list for the MetadataRepository.
-
#service_name ⇒ String
The database service name for the MetadataRepository.
-
#sysdba_password ⇒ Mint::Secret, String
The SYSDBA password for the MetadataRepository.
-
#username ⇒ String
The username for the MetadataRepository.
Attributes included from Mixins::Properties
#autopush_set_cache, #dynamic_create, #harvest_on_access, #harvest_undefined_only, #harvested, #tree_root
Instance Method Summary collapse
- #components_from_templates(template_object) ⇒ Object
-
#create ⇒ void
Create the Metadata Repository using RCU.
-
#drop ⇒ void
Drop the Metadata Repository using RCU.
-
#get_instance_variables ⇒ Hash
Get a Hash of all class instance variables.
-
#initialize(opts = {}) ⇒ MintPress::OracleWeblogic::MetadataRepository
constructor
Constructor.
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
Constructor Details
#initialize(opts = {}) ⇒ MintPress::OracleWeblogic::MetadataRepository
Instance Attribute Details
#components_list ⇒ String
#db_type ⇒ String
#default_repository ⇒ TrueClass, FalseClass
#Domain ⇒ MintPress::OracleWeblogic::Domain
#Installation ⇒ MintPress::OracleWeblogic::Installation
#jdbc_url ⇒ String
#listen_address ⇒ String
#listen_port ⇒ Integer
#Parent ⇒ MintPress::OracleWeblogic::Domain
#protected ⇒ TrueClass, FalseClass
#schema_password ⇒ Mint::Secret, String
#schema_prefix ⇒ String
#select_dependents_for_components ⇒ TrueClass, FalseClass
#service_name ⇒ String
#sysdba_password ⇒ Mint::Secret, String
#username ⇒ String
Instance Method Details
#components_from_templates(template_object) ⇒ Object
#create ⇒ void
This method returns an undefined value.
Create the Metadata Repository using RCU#drop ⇒ void
This method returns an undefined value.
Drop the Metadata Repository using RCU