InternalOptislangManagerImpl#

class ansys.saf.product_manager.optislang_wrapper.InternalOptislangManagerImpl(**kwargs: Any)#

Bases: ansys.saf.glow.solution.InstanceManager[OslClient, OptislangStateInfo]

A manager of a secure optiSLang product instance, accessed through the optiSLang wrapper service.

Overview#

get_product_name_implement

Return the name of the product in the PIM environment.

initialize

Initialize secure optiSLang wrapper service without deprecation warning.

get_client_object_implement

Return an instance of the custom product’s client given the host and port of the shared product instance.

save_state_implement

Save the state of the product instance to the given directory.

load_state_implement

Loads the state of the product instance from the given directory.

shutdown_implement

Gracefully terminates the product instance process.

Import detail#

from ansys.saf.product_manager.optislang_wrapper import InternalOptislangManagerImpl

Attribute detail#

InternalOptislangManagerImpl.PRODUCT_NAME = 'optislang-wrapper-secure'#
InternalOptislangManagerImpl.SERVICE_NAME = 'http'#

Method detail#

InternalOptislangManagerImpl.initialize(version: str | None = None)#

Initialize secure optiSLang wrapper service without deprecation warning.

static InternalOptislangManagerImpl.get_connection_mode_for_secure_flags(secure_flags: str | None, hostname: str | None = None) → str#
InternalOptislangManagerImpl.get_client_object_implement(hostname: str, port: int) → OslClient#

Return an instance of the custom product’s client given the host and port of the shared product instance.

classmethod InternalOptislangManagerImpl.get_product_name_implement() → str#

Return the name of the product in the PIM environment.

InternalOptislangManagerImpl.save_state_implement() → None#

Save the state of the product instance to the given directory.

InternalOptislangManagerImpl.load_state_implement() → None#

Loads the state of the product instance from the given directory.

InternalOptislangManagerImpl.shutdown_implement() → None#

Gracefully terminates the product instance process.