Methods to be used in SSL mode to skip NS. More...
Functions | |
Engines_Container_SSL_i * | getContainerSA () |
Engines::Container_var | getContainerRefSA () |
CORBA::ORB_ptr | getORB () |
This function returns a static reference to the orb. More... | |
void | assignNamingServiceSL () |
SALOME_NamingService_Abstract * | getNamingService () |
This function returns a static reference to the SALOME naming service. More... | |
SALOME_LifeCycleCORBA * | getLifeCycleCORBA () |
This function returns a static reference to the SALOME life cycle CORBA. More... | |
SALOMEDS::Study_ptr | getStudyServant () |
This returns a static reference to the SALOME study. More... | |
SALOME::Session_ptr | getSalomeSession () |
This returns a static reference to the SALOME session. More... | |
Engines::SalomeLauncher_ptr | getSalomeLauncher () |
This returns a static reference to the SALOME launcher. More... | |
Engines::ResourcesManager_ptr | getResourcesManager () |
CORBA::Object_ptr | SObjectToObject (SALOMEDS::SObject_ptr theSObject) |
This function retrieve the CORBA object reference from the study object wrapping it. More... | |
CORBA::Object_ptr | IORToObject (char *IOR) |
This function provides a CORBA pointer to a servant from its IOR given as a string of characters. More... | |
SALOME::SALOME_Exception | createSalomeException (const char *text) |
void | RegisterCompo (const std::string &compoName, CORBA::Object_var compoPtr) |
CORBA::Object_var | RetrieveCompo (const std::string &compoName) |
template<class TInterface > | |
TInterface::_var_type | ObjectToInterface (CORBA::Object_ptr object) |
This template function provides you with the servant (CORBA object narrowed to its interface) corresponding to the specified CORBA object (naked CORBA pointer). More... | |
template<class TInterface > | |
TInterface::_var_type | SObjectToInterface (SALOMEDS::SObject_ptr sobject) |
SALOME_Launcher * | getLauncherSA () |
SALOME_Logger::Logger_ptr | getLoggerServantSA () |
SALOME_ModuleCatalog::ModuleCatalog_ptr | getModuleComponentServantSA (const char *listOfCatalogs=nullptr) |
Standard_EXPORT SALOMEDS::Study_ptr | getStudyServantSA () |
Return a unique study obj but servant is embeded here. More... | |
Standard_EXPORT SALOMEDS::Study_var | retrieveNewStudyServantSA () |
Standard_EXPORT void | killStudyServantSA () |
Standard_EXPORT void | setStudyServantSA (SALOMEDS::Study_var study) |
Standard_EXPORT void | setStudyServantSA (SALOMEDS::Study_var study, PortableServer::POA_var poa) |
If a study is already built and activated elsewhere (for example in GUI context) More... | |
CORBA::ORB_var | GetRefToORB () |
Methods to be used in SSL mode to skip NS.
void KERNEL::assignNamingServiceSL | ( | ) |
References _naming_service, and THROW_SALOME_EXCEPTION.
SALOME::SALOME_Exception KERNEL::createSalomeException | ( | const char * | text | ) |
References SALOME::INTERNAL_ERROR, SALOME::ExceptionStruct::text, and SALOME::ExceptionStruct::type.
Engines::Container_var KERNEL::getContainerRefSA | ( | ) |
References _container_ref_singleton_ssl, and getContainerSA().
Referenced by GetContainerInstance().
Engines_Container_SSL_i * KERNEL::getContainerSA | ( | ) |
SALOME_Launcher * KERNEL::getLauncherSA | ( | ) |
References _launcher_singleton_ssl, GetRefToORB(), and salome::orb.
Referenced by GetContainerManagerInstance(), GetResourcesManagerInstance(), and RetrieveInternalInstanceOfLocalCppResourcesManager().
SALOME_LifeCycleCORBA * KERNEL::getLifeCycleCORBA | ( | ) |
This function returns a static reference to the SALOME life cycle CORBA.
References getNamingService().
Referenced by RetrieveCompo(), TEST_corba(), KernelHelpersUnitTests::TEST_corba(), TEST_getLifeCycleCORBA(), and KernelHelpersUnitTests::TEST_getLifeCycleCORBA().
SALOME_Logger::Logger_ptr KERNEL::getLoggerServantSA | ( | ) |
References getORB(), studyedit::logger, KERNEL_PY.batchmode_salome::obj, salome::orb, and SALOME_ContainerPy::poa.
Referenced by GetLoggerInstance(), and SingletonInstance().
SALOME_ModuleCatalog::ModuleCatalog_ptr KERNEL::getModuleComponentServantSA | ( | const char * | listOfCatalogs = nullptr | ) |
References envSalome::argv, SALOME_ModuleCatalogImpl::ENTRY_IN_NS, getORB(), salome::orb, and SALOME_Fake_NamingService::Register().
Referenced by GetModuleCatalogInstance().
SALOME_NamingService_Abstract * KERNEL::getNamingService | ( | ) |
This function returns a static reference to the SALOME naming service.
References _naming_service, getORB(), and getSSLMode().
Referenced by getLifeCycleCORBA(), getResourcesManager(), getSalomeLauncher(), getSalomeSession(), getStudyServant(), SALOMEDS_Study_i::SALOMEDS_Study_i(), TEST_corba(), and KernelHelpersUnitTests::TEST_corba().
CORBA::ORB_ptr KERNEL::getORB | ( | ) |
This function returns a static reference to the orb.
The orb can be used for example to initialize CORBA variables or to serialize and unserialize the CORBA objet to/from an IOR string.
References GetRefToORB(), and salome::orb.
Referenced by GetContainerInstance(), GetContainerManagerInstance(), GetDSMInstanceInternal(), GetExternalServerInstance(), GetLoggerInstance(), getLoggerServantSA(), GetModuleCatalogInstance(), getModuleComponentServantSA(), getNamingService(), GetNewSessionInstance(), GetResourcesManagerInstance(), GetSessionInstance(), IORToObject(), IORToObject(), main(), ObjectToIOR(), RegisterCompoInternal(), SALOME_Fake_NamingService::ReprOfContainersIORS_NoThreadSafe(), RetrieveCompoInternal(), retrieveNewStudyServantSA(), SObjectToObject(), TEST_corba(), and KernelHelpersUnitTests::TEST_corba().
CORBA::ORB_var KERNEL::GetRefToORB | ( | ) |
References SINGLETON_< TYPE >::Instance(), and salome::orb.
Referenced by container_common_main(), getContainerSA(), GetCustomORB(), getGlobalORB(), getLauncherSA(), Engines_Component_i::getNS(), getORB(), SALOMEDS_SObject::init_orb(), SALOMEDS_StudyBuilder::init_orb(), SALOME_NamingService::init_orb(), SALOMEDS_Study::InitORB(), main(), NOTIFICATION_channel(), SALOME_LifeCycleCORBA::SALOME_LifeCycleCORBA(), LifeCycleCORBATest::setUp(), NamingServiceTest::setUp(), SALOMEDSTest::setUp(), SALOMEDSTest_Embedded::setUp(), SALOME_LifeCycleCORBA::shutdownServers(), and TraceCollector_WaitForServerReadiness().
Engines::ResourcesManager_ptr KERNEL::getResourcesManager | ( | ) |
Engines::SalomeLauncher_ptr KERNEL::getSalomeLauncher | ( | ) |
This returns a static reference to the SALOME launcher.
The SALOME launcher can be used to schedule jobs, local or remote, using a batch system or not (see SALOME documentation).
References getNamingService(), KERNEL_PY.batchmode_salome::obj, and SALOME_NamingService_Container_Abstract::Resolve().
Referenced by TEST_getSalomeLauncher(), and KernelHelpersUnitTests::TEST_getSalomeLauncher().
SALOME::Session_ptr KERNEL::getSalomeSession | ( | ) |
This returns a static reference to the SALOME session.
The SALOME session can be used to retrieve some objects of the current session, as the SALOME study.
References getNamingService(), KERNEL_PY.batchmode_salome::obj, and SALOME_NamingService_Container_Abstract::Resolve().
SALOMEDS::Study_ptr KERNEL::getStudyServant | ( | ) |
This returns a static reference to the SALOME study.
The study can be used to get informations about it.
References getNamingService(), and SALOME_NamingService_Container_Abstract::Resolve().
Referenced by SALOMEDS_IParameters::decodeEntry(), DumpComponent(), DumpStudy(), SALOME_StudyEditor::findObject(), SALOME_StudyEditor::findRoot(), SALOMEDS_IParameters::isDumpPython(), SALOMEDS_IParameters::setDumpPython(), SALOME_StudyEditor::studyBuilder(), Test(), TEST_getStudy(), and KernelHelpersUnitTests::TEST_getStudy().
SALOMEDS::Study_ptr KERNEL::getStudyServantSA | ( | ) |
Return a unique study obj but servant is embeded here.
References _study, and retrieveNewStudyServantSA().
Referenced by GetSessionInstance().
CORBA::Object_ptr KERNEL::IORToObject | ( | char * | IOR | ) |
This function provides a CORBA pointer to a servant from its IOR given as a string of characters.
References getORB().
Referenced by SALOME_Embedded_NamingService::Register(), SALOME_Embedded_NamingService_Client::Resolve(), and SALOME_Embedded_NamingService_Client::ResolveFirst().
void KERNEL::killStudyServantSA | ( | ) |
Referenced by KillGlobalSessionInstance(), and setStudyServantSA().
TInterface::_var_type KERNEL::ObjectToInterface | ( | CORBA::Object_ptr | object | ) |
This template function provides you with the servant (CORBA object narrowed to its interface) corresponding to the specified CORBA object (naked CORBA pointer).
void KERNEL::RegisterCompo | ( | const std::string & | compoName, |
CORBA::Object_var | compoPtr | ||
) |
References _compo_map.
Referenced by RegisterCompoInternal().
CORBA::Object_var KERNEL::RetrieveCompo | ( | const std::string & | compoName | ) |
References _compo_map, SALOME_LifeCycleCORBA::FindOrLoad_Component(), getLifeCycleCORBA(), and TestKernelHelpers::ret.
Referenced by RetrieveCompoInternal().
SALOMEDS::Study_var KERNEL::retrieveNewStudyServantSA | ( | ) |
References _poa, getORB(), KERNEL_PY.batchmode_salome::obj, salome::orb, and SALOME_ContainerPy::poa.
Referenced by GetNewSessionInstance(), and getStudyServantSA().
void KERNEL::setStudyServantSA | ( | SALOMEDS::Study_var | study | ) |
References _study, and killStudyServantSA().
Referenced by CreateStudyNSAbstract(), GetNewSessionInstance(), and setStudyServantSA().
void KERNEL::setStudyServantSA | ( | SALOMEDS::Study_var | study, |
PortableServer::POA_var | poa | ||
) |
If a study is already built and activated elsewhere (for example in GUI context)
References _poa, SALOME_ContainerPy::poa, and setStudyServantSA().
TInterface::_var_type KERNEL::SObjectToInterface | ( | SALOMEDS::SObject_ptr | sobject | ) |
References SObjectToObject().
CORBA::Object_ptr KERNEL::SObjectToObject | ( | SALOMEDS::SObject_ptr | theSObject | ) |
This function retrieve the CORBA object reference from the study object wrapping it.
References getORB(), and INFOS.
Referenced by SObjectToInterface().