Data Structures | |
| class | SessionContextManager |
| class | LogManagerLaunchMonitoringFileCtxMgr |
| class | Barrier |
| class | LockGuardCM |
| class | ContainerLauncherCM |
Variables | |
| string | ROOT_PYTHONPACKAGE_NAME = "salome" |
| string | MATCH_ENDING_PATTERN = "site-packages" + os.path.sep + "salome" |
| flags = None | |
| orb | |
| lcc | |
| naming_service | |
| cm | |
| sg | |
| esm | |
| dsm | |
| logm | |
| modulcat | |
| rm | |
| lm | |
| myStudy | |
| myStudyName | |
| bool | salome_initial = True |
| string | CM_NAME_IN_NS = "/ContainerManager" |
| string | RM_NAME_IN_NS = "/ResourcesManager" |
| string | DSM_NAME_IN_NS = "/DataServerManager" |
| string | ESM_NAME_IN_NS = "/ExternalServers" |
| string | LOGM_NAME_IN_NS = "/LogManager" |
| __all__ = dir() | |
| def KERNEL_PY.ContainerManagerSetOverrideEnvForContainersSimple | ( | self, | |
| env | |||
| ) |
| def KERNEL_PY.extend_path | ( | pname | ) |
References virtual_salome.verbose.
| def KERNEL_PY.get_all_containers | ( | ) |
References retrieve_containers_in_ns().
Referenced by salome_shutdown_containers_without_session().
| def KERNEL_PY.LogManagerDumpInFile | ( | self, | |
| fileName, | |||
clearMemory = False |
|||
| ) |
| def KERNEL_PY.LogManagerDumpIORInFile | ( | self, | |
| iorFileName | |||
| ) |
| def KERNEL_PY.LogManagerFetch | ( | self, | |
clearMemory = False |
|||
| ) |
Fetch data from server in one shot mode.
References SALOME_ContainerHelper.unserializeLogManager().
| def KERNEL_PY.LogManagerFinalFetchBeforeDying | ( | self | ) |
| def KERNEL_PY.LogManagerGetLatestMonitoringDumpFile | ( | self | ) |
| def KERNEL_PY.LogManagerLaunchMonitoringDumpFile | ( | self, | |
| intervalInMs, | |||
| outFileName | |||
| ) |
This method loops indefinitely every intervalInMs milliseconds to dump the singleton content of perf log stored in salome.logm. This method runs in a dedicated subprocess that can be killed at any time. So subprocess code must deal with. See also LogManagerGetLatestMonitoringDumpFile
References SalomeOnDemandTK.extension_utilities.format.
| def KERNEL_PY.LogManagerLoadFromFile | ( | fileName | ) |
References SALOME_ContainerHelper.unserializeLogManager().
Referenced by LogManagerLoadFromIORFile().
| def KERNEL_PY.LogManagerLoadFromIORFile | ( | iorFile | ) |
References LogManagerLoadFromFile(), and salome_init_without_session().
| def KERNEL_PY.LogManagerNaiveFetch | ( | self | ) |
Fetch data from server with multiple CORBA invokations.
| def KERNEL_PY.retrieve_containers_in_ns | ( | ) |
Referenced by get_all_containers().
| def KERNEL_PY.salome_close | ( | ) |
References salome_iapp.salome_iapp_close(), and KERNEL_PY.salome_study.salome_study_close().
Referenced by KERNEL_PY.SessionContextManager.__exit__().
| def KERNEL_PY.salome_init | ( | path = None, |
|
embedded = False, |
|||
iorfakensfile = None, |
|||
forced = False |
|||
| ) |
Initialize SALOME client process (that can also be server).
3 modes of initialization exists:
- SSL mode (see salome_init_without_session)
- SSL mode attached in the context of python execution inside SALOME_Container_No_NS_Serv server (typically YACS)
- Classical mode (see salome_init_with_session)
:param iorfakensfile: filename inside which IOR of fake NS will be written
:param forced: tell if the multi-initialization protection mecanism of salome_init must be skiped of not
(typically in the context where a path to a study is given whereas a previous initialisation without it was done)
References salome_init_with_session(), salome_init_without_session(), and salome_init_without_session_attached().
Referenced by KERNEL_PY.SessionContextManager.__enter__(), and salome_shutdown_containers_with_session().
| def KERNEL_PY.salome_init_with_session | ( | path = None, |
|
embedded = False |
|||
| ) |
Performs only once SALOME general purpose initialisation for scripts. Provides: orb reference to CORBA lcc a LifeCycleCorba instance naming_service a naming service instance cm reference to the container manager esm reference to external server manager dsm reference to shared dataserver manager modulcat reference to modulecatalog instance sg access to SALOME GUI (when linked with IAPP GUI) myStudy active study itself (CORBA reference) myStudyName active study name
References salome_iapp.salome_iapp_init(), KERNEL_PY.salome_kernel.salome_kernel_init(), and KERNEL_PY.salome_study.salome_study_init().
Referenced by salome_init().
| def KERNEL_PY.salome_init_without_session | ( | path = None, |
|
embedded = False, |
|||
iorfakensfile = None |
|||
| ) |
Force creation of all servants needed by SALOME session in the current process. A Fake NamingService is created storing reference of all servants in the current process.
References salome_init_without_session_common().
Referenced by LogManagerLoadFromIORFile(), and salome_init().
| def KERNEL_PY.salome_init_without_session_attached | ( | path = None, |
|
embedded = False |
|||
| ) |
Configuration SSL inside a python interpretor launched in the SALOME_Container_No_NS_Serv. In this configuration, a local FakeNamingService is created and remote objects are stored in it. lcc is pointing to the FakeNamingService above.
References salome_init_without_session_common().
Referenced by salome_init().
| def KERNEL_PY.salome_init_without_session_common | ( | path = None, |
|
embedded = False |
|||
| ) |
References KERNEL_PY.salome_kernel.list_of_catalogs_regarding_environement(), salome_iapp.salome_iapp_init(), KERNEL_PY.salome_study.salome_study_init_without_session(), and ORBConfigFile.writeORBConfigFileSSL().
Referenced by salome_init_without_session(), and salome_init_without_session_attached().
| def KERNEL_PY.salome_NS | ( | ) |
Referenced by salome_shutdown_containers_with_session().
| def KERNEL_PY.salome_shutdown_containers | ( | ) |
| def KERNEL_PY.salome_shutdown_containers_with_session | ( | ) |
References SalomeOnDemandTK.extension_utilities.format, salome_init(), salome_NS(), and salome_walk_on_containers().
Referenced by salome_shutdown_containers().
| def KERNEL_PY.salome_shutdown_containers_without_session | ( | ) |
References get_all_containers().
Referenced by salome_shutdown_containers().
| def KERNEL_PY.salome_walk_on_containers | ( | ns, | |
| root | |||
| ) |
Referenced by salome_shutdown_containers_with_session().
| def KERNEL_PY.standalone | ( | ) |
Referenced by KERNEL_PY.SessionContextManager.__enter__().
| def KERNEL_PY.withServers | ( | ) |
|
private |
| KERNEL_PY.cm |
| string KERNEL_PY.CM_NAME_IN_NS = "/ContainerManager" |
| KERNEL_PY.dsm |
| string KERNEL_PY.DSM_NAME_IN_NS = "/DataServerManager" |
| KERNEL_PY.esm |
| string KERNEL_PY.ESM_NAME_IN_NS = "/ExternalServers" |
| KERNEL_PY.flags = None |
| KERNEL_PY.lcc |
| KERNEL_PY.lm |
| KERNEL_PY.logm |
| string KERNEL_PY.LOGM_NAME_IN_NS = "/LogManager" |
| string KERNEL_PY.MATCH_ENDING_PATTERN = "site-packages" + os.path.sep + "salome" |
| KERNEL_PY.modulcat |
| KERNEL_PY.myStudy |
| KERNEL_PY.myStudyName |
| KERNEL_PY.naming_service |
| KERNEL_PY.orb |
| KERNEL_PY.rm |
| string KERNEL_PY.RM_NAME_IN_NS = "/ResourcesManager" |
| string KERNEL_PY.ROOT_PYTHONPACKAGE_NAME = "salome" |
| bool KERNEL_PY.salome_initial = True |
| KERNEL_PY.sg |