A class to manage life cycle of SALOME components. More...
Public Member Functions | |
| SALOME_LifeCycleCORBA (SALOME_NamingService *ns=0) | |
| virtual | ~SALOME_LifeCycleCORBA () |
| Engines::EngineComponent_ptr | FindComponent (const Engines::ContainerParameters ¶ms, const char *componentName, int studyId=0) |
| Find an already existing and registered component instance. More... | |
| Engines::EngineComponent_ptr | LoadComponent (const Engines::ContainerParameters ¶ms, const char *componentName, int studyId=0) |
| Load a component instance on a container defined by its parameters. More... | |
| Engines::EngineComponent_ptr | FindOrLoad_Component (const Engines::ContainerParameters ¶ms, const char *componentName, int studyId=0) |
| Find an already existing and registered component instance or load a new component instance on a container defined by its parameters. More... | |
| Engines::EngineComponent_ptr | FindOrLoad_Component (const char *containerName, const char *componentName) |
| Find an already existing and registered component instance or load a new component instance on a container defined by name. More... | |
| Engines::EngineComponent_ptr | Load_ParallelComponent (const Engines::ContainerParameters ¶ms, const char *componentName, int studyId) |
| Load a parallel component instance. More... | |
| bool | isKnownComponentClass (const char *componentName) |
| Check if the component class is known in module catalog. More... | |
| int | NbProc (const Engines::ContainerParameters ¶ms) |
| Engines::ContainerManager_ptr | getContainerManager () |
| Get the container manager. More... | |
| Engines::ResourcesManager_ptr | getResourcesManager () |
| Get the resources manager. More... | |
| SALOME_NamingService * | namingService () |
| get the naming service used by the life cycle More... | |
| CORBA::ORB_ptr | orb () |
| get the orb used by the life cycle More... | |
| void | copyFile (const char *hostSrc, const char *fileSrc, const char *hostDest, const char *fileDest) |
| copy a file from a source host to a destination host More... | |
| void | shutdownServers () |
| shutdown all the SALOME servers except SALOME_Session_Server and omniNames More... | |
Static Public Member Functions | |
| static void | preSet (Engines::ResourceParameters &outparams) |
| Initialisation of a given Engines::ResourceParameters with default values. More... | |
| static void | preSet (Engines::ContainerParameters &outparams) |
| Initialisation of a given Engines::ContainerParameters with default values. More... | |
| static void | killOmniNames () |
| shutdown omniNames More... | |
Protected Member Functions | |
| Engines::EngineComponent_ptr | _FindComponent (const Engines::ContainerParameters ¶ms, const char *componentName, int studyId, const Engines::ResourceList &listOfResources) |
| Find an already existing and registered component instance. More... | |
| Engines::EngineComponent_ptr | _LoadComponent (const Engines::ContainerParameters ¶ms, const char *componentName, int studyId) |
| Load a component instance. More... | |
Protected Attributes | |
| SALOME_NamingService * | _NS |
| SALOME_NamingService * | _NSnew |
| Engines::ContainerManager_var | _ContManager |
| Engines::ResourcesManager_var | _ResManager |
| SALOME_LifeCycleCORBA::SALOME_LifeCycleCORBA | ( | SALOME_NamingService * | ns = 0 | ) |
Constructor
|
virtual |
Destructor
| Engines::EngineComponent_ptr SALOME_LifeCycleCORBA::FindComponent | ( | const Engines::ContainerParameters & | params, |
| const char * | componentName, | ||
| int | studyId = 0 |
||
| ) |
Find an already existing and registered component instance.
| params | container parameters like type or name... |
| componentName | the name of component class |
| studyId | default = 0 : multistudy instance |
| Engines::EngineComponent_ptr SALOME_LifeCycleCORBA::LoadComponent | ( | const Engines::ContainerParameters & | params, |
| const char * | componentName, | ||
| int | studyId = 0 |
||
| ) |
Load a component instance on a container defined by its parameters.
| params | container parameters like type or name... |
| componentName | the name of component class |
| studyId | default = 0 : multistudy instance |
| Engines::EngineComponent_ptr SALOME_LifeCycleCORBA::FindOrLoad_Component | ( | const Engines::ContainerParameters & | params, |
| const char * | componentName, | ||
| int | studyId = 0 |
||
| ) |
Find an already existing and registered component instance or load a new component instance on a container defined by its parameters.
| params | container parameters like type or name... |
| componentName | the name of component class |
| studyId | default = 0 : multistudy instance |
| Engines::EngineComponent_ptr SALOME_LifeCycleCORBA::FindOrLoad_Component | ( | const char * | containerName, |
| const char * | componentName | ||
| ) |
Find an already existing and registered component instance or load a new component instance on a container defined by name.
| containerName | the name of container, under one of the forms
|
| componentName | the name of component class |
| Engines::EngineComponent_ptr SALOME_LifeCycleCORBA::Load_ParallelComponent | ( | const Engines::ContainerParameters & | params, |
| const char * | componentName, | ||
| int | studyId | ||
| ) |
Load a parallel component instance.
| params | machine parameters like type or name... |
| componentName | the name of component class |
| studyId | default = 0 : multistudy instance |
| bool SALOME_LifeCycleCORBA::isKnownComponentClass | ( | const char * | componentName | ) |
Check if the component class is known in module catalog.
| componentName | the name of component class |
| int SALOME_LifeCycleCORBA::NbProc | ( | const Engines::ContainerParameters & | params | ) |
|
static |
Initialisation of a given Engines::ResourceParameters with default values.
|
static |
Initialisation of a given Engines::ContainerParameters with default values.
| Engines::ContainerManager_ptr SALOME_LifeCycleCORBA::getContainerManager | ( | ) |
Get the container manager.
| Engines::ResourcesManager_ptr SALOME_LifeCycleCORBA::getResourcesManager | ( | ) |
Get the resources manager.
| SALOME_NamingService * SALOME_LifeCycleCORBA::namingService | ( | ) |
get the naming service used by the life cycle
| CORBA::ORB_ptr SALOME_LifeCycleCORBA::orb | ( | ) |
get the orb used by the life cycle
| void SALOME_LifeCycleCORBA::copyFile | ( | const char * | hostSrc, |
| const char * | fileSrc, | ||
| const char * | hostDest, | ||
| const char * | fileDest | ||
| ) |
copy a file from a source host to a destination host
| hostSrc | the source host |
| fileSrc | the file to copy from the source host to the destination host |
| hostDest | the destination host |
| fileDest | the destination file |
| void SALOME_LifeCycleCORBA::shutdownServers | ( | ) |
shutdown all the SALOME servers except SALOME_Session_Server and omniNames
|
static |
shutdown omniNames
|
protected |
Find an already existing and registered component instance.
Establish if a component called "componentName" in a container called "containerName" exists among the list of resources in "listOfMachines". This method uses Naming Service to find the component.
| params | machine parameters like type or name... |
| componentName | the name of component class |
| studyId | default = 0 : multistudy instance |
| listOfMachines | list of machine address |
|
protected |
Load a component instance.
| params | machine parameters like type or name... |
| componentName | the name of component class |
| studyId | default = 0 : multistudy instance |