Class: MintPress::Utils::WLSTSessionImpl
- Inherits:
-
Object
- Object
- MintPress::Utils::WLSTSessionImpl
- Includes:
- MintLogger
- Defined in:
- src/mintpress-utils/lib/mintpress-utils/wlst-session.rb
Properties (Read/Write)
Properties (Read Only)
Constant Summary collapse
- WLST_NO_RETURN_COMMANDS =
The list of commands which do not need to return anything - this is a performance hack! Because we know these return no value, we don't have to wait for it if we're also going to ignore things like exceptions - this will enable the `fast` mode to be actually pretty damn fast in those cases!
[ :cd, :set, :assign, :domainConfig, :custom, :domainCustom, :serverConfig, :edit, :startEdit, :undo, :activate, :selectTemplate, :closeDomain, :loadTemplates, :setOption, :closeTemplate, :updateDomain, :closeDomain, :create, :print ]
- WLST_NO_EXCEPTION_COMMANDS =
Note to self: we can't have :ls in here, because we rely on the stdout of ls when we do fast_ls_folders()
[ :print, :rand, :int ]
- WLST_NEVER_NATIVE =
[ :cmo ]
- WLST_ALWAYS_VERBOSE =
Stuff we always want to drop to the verbose loglevel
[ :cmo ]
Constants included from MintLogger
MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN
Class Attribute Summary collapse
-
.disable_activate ⇒ Object
Returns the value of attribute disable_activate.
Instance Attribute Summary collapse
-
#channel_id ⇒ Object
Returns the value of attribute channel_id.
-
#invalid ⇒ Object
Returns the value of attribute invalid.
Instance Method Summary collapse
- #close ⇒ Object
- #close_offline ⇒ Object
- #close_online ⇒ Object
- #connect_any(domain_name = nil) ⇒ Object
-
#connect_nm(hostname:, username:, password:, type:, domain_home:, domain_name:, port:) ⇒ Object
FIXME: should this also use session_creds?.
- #connect_offline(domain_home = nil) ⇒ Object
- #connect_online(domain_name = nil, hostname: nil, port_admin: nil, port_ssl: nil, port: nil, managed_server: nil, username: nil, password: nil) ⇒ Object
- #disconnect_nm ⇒ Object
- #edit_domain ⇒ Object
- #execute(sym, args, res_string, loglevel: 'info', getter_only: false, flush_only: false, no_return: false, no_exception: false) ⇒ Object
- #find_wlst_binary(transport, fmw_home) ⇒ Object
-
#initialize(transport, fmw_home, domain_home, domain_name, prefix: "") ⇒ WLSTSessionImpl
constructor
A new instance of WLSTSessionImpl.
- #invalid? ⇒ Boolean
- #last_stdout ⇒ Object
- #method_missing(sym, *args, &block) ⇒ Object
- #nm_connected? ⇒ Boolean
- #offline_domain? ⇒ Boolean
-
#online ⇒ Object
have this auto-update on connect.
- #online? ⇒ Boolean
- #override_speedy_block(&block) ⇒ Object
- #prepare_for_invalid ⇒ Object
- #respond_to_missing?(method_name, include_private = false) ⇒ Boolean
- #ruby_to_python(a) ⇒ Object
- #run_direct(command) ⇒ Object
- #save_domain ⇒ Object
- #speedy_block(&block) ⇒ Object
- #start_channel ⇒ Object
-
#undo_domain ⇒ Object
This should be called on exception.
Methods included from MintLogger::Utils::Common
#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send
Constructor Details
#initialize(transport, fmw_home, domain_home, domain_name, prefix: "") ⇒ WLSTSessionImpl
Returns a new instance of WLSTSessionImpl.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
Class Attribute Details
.disable_activate ⇒ Object
Returns the value of attribute disable_activate.
Instance Attribute Details
#channel_id ⇒ Object
Returns the value of attribute channel_id.
#invalid ⇒ Object
Returns the value of attribute invalid.
Instance Method Details
#close ⇒ Object
#close_offline ⇒ Object
#close_online ⇒ Object
#connect_any(domain_name = nil) ⇒ Object
#connect_nm(hostname:, username:, password:, type:, domain_home:, domain_name:, port:) ⇒ Object
FIXME: should this also use session_creds?
#connect_offline(domain_home = nil) ⇒ Object
#connect_online(domain_name = nil, hostname: nil, port_admin: nil, port_ssl: nil, port: nil, managed_server: nil, username: nil, password: nil) ⇒ Object
#disconnect_nm ⇒ Object
#edit_domain ⇒ Object
#execute(sym, args, res_string, loglevel: 'info', getter_only: false, flush_only: false, no_return: false, no_exception: false) ⇒ Object
#find_wlst_binary(transport, fmw_home) ⇒ Object
#invalid? ⇒ Boolean
#last_stdout ⇒ Object
#nm_connected? ⇒ Boolean
#offline_domain? ⇒ Boolean
#online ⇒ Object
have this auto-update on connect
#online? ⇒ Boolean
#override_speedy_block(&block) ⇒ Object
#prepare_for_invalid ⇒ Object
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
#ruby_to_python(a) ⇒ Object
#run_direct(command) ⇒ Object
#save_domain ⇒ Object
#speedy_block(&block) ⇒ Object
#start_channel ⇒ Object
#undo_domain ⇒ Object
This should be called on exception