InternalVisorManager#

class ansys.saf.product_manager.visor.InternalVisorManager(**kwargs: Any)#

Bases: ansys.saf.glow.solution.InstanceManager[VisorSafClient, VisorRecoveryStateInfo]

Private class for Visor Manager

Overview#

get_product_name_implement

Return the name of the product in the product instance system (PIM or HPS) environment.

initialize

Initialize and start the custom product server.

save_state_implement

Save changes to the project data and settings.

load_state_implement

Open the latest Visor project saved within protected_state_directory_path.

get_client_object_implement

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

close_client_object_implement

Close the Visor object.

shutdown_implement

Gracefully terminates the product instance process.

Import detail#

from ansys.saf.product_manager.visor import InternalVisorManager

Attribute detail#

InternalVisorManager.PRODUCT_NAME = 'visor'#
InternalVisorManager.SERVICE_NAME = 'http'#

Method detail#

InternalVisorManager.initialize(version: str | None = None, input_file: ansys.bdm.api.EntityHandle = NO_ENTITY, metadata_file: ansys.bdm.api.EntityHandle = NO_ENTITY)#

Initialize and start the custom product server.

classmethod InternalVisorManager.get_product_name_implement() → str#

Return the name of the product in the product instance system (PIM or HPS) environment.

InternalVisorManager.save_state_implement() → None#

Save changes to the project data and settings.

InternalVisorManager.load_state_implement() → None#

Open the latest Visor project saved within protected_state_directory_path.

InternalVisorManager.get_client_object_implement(hostname: str, port: int) → VisorSafClient#

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

InternalVisorManager.close_client_object_implement() → None#

Close the Visor object.

InternalVisorManager.shutdown_implement() → None#

Gracefully terminates the product instance process.