Class: MintPress::Utils::WLSTSessionImpl

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_activateObject

Returns the value of attribute disable_activate.

Instance Attribute Details

#channel_idObject

Returns the value of attribute channel_id.

#invalidObject

Returns the value of attribute invalid.

Instance Method Details

#closeObject

#close_offlineObject

#close_onlineObject

#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_nmObject

#edit_domainObject

#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

Returns:

  • (Boolean)

#last_stdoutObject

#nm_connected?Boolean

Returns:

  • (Boolean)

#offline_domain?Boolean

Returns:

  • (Boolean)

#onlineObject

have this auto-update on connect

#online?Boolean

Returns:

  • (Boolean)

#override_speedy_block(&block) ⇒ Object

#prepare_for_invalidObject

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)

#ruby_to_python(a) ⇒ Object

#run_direct(command) ⇒ Object

#save_domainObject

#speedy_block(&block) ⇒ Object

#start_channelObject

#undo_domainObject

This should be called on exception