def close_domain(self): """ Close the domain. :raises: BundleAwareException of the specified type: if an error occurs """ _method_name = 'close_domain' try: wlst_helper.close_domain() except PyWLSTException, pwe: ex = exception_helper.create_exception(self.__exception_type, 'WLSDPLY-19115', pwe.getLocalizedMessage(), error=pwe) self.__logger.throwing(ex, class_name=self.__class_name, method_name=_method_name) raise ex
_method_name = '__disconnect_domain' __logger.entering(class_name=_class_name, method_name=_method_name) if __wlst_mode == WlstModes.ONLINE: try: wlst_helper.disconnect() except PyWLSTException, wlst_ex: ex = exception_helper.create_discover_exception( 'WLSDPLY-06006', wlst_ex.getLocalizedMessage(), error=wlst_ex) __logger.throwing(ex, class_name=_class_name, method_name=_method_name) raise ex else: try: wlst_helper.close_domain() except PyWLSTException, wlst_ex: ex = exception_helper.create_discover_exception( 'WLSDPLY-06007', wlst_ex.getLocalizedMessage(), error=wlst_ex) __logger.throwing(ex, class_name=_class_name, method_name=_method_name) raise ex __logger.exiting(class_name=_class_name, method_name=_method_name) return def __persist_model(model, model_context): """ Save the model to the specified model file name or to the archive if the file name was not specified.