//! Determines whether the server has already been loaded or not.
void ping();
+ boolean isSSLMode() raises(SALOME::SALOME_Exception);
//! Remove component instance from container
/*!
Deactivates the %Component.
#include "Utils_SINGLETON.hxx"
#include "Utils_ORB_INIT.hxx"
#include "SALOME_NamingService.hxx"
+#include "Utils_CorbaException.hxx"
#include <cstdio>
#ifndef WIN32
}
+CORBA::Boolean Engines_Component_i::isSSLMode()
+{
+ PortableServer::ServantBase *serv(_poa->reference_to_servant(_container));
+ if(!serv)
+ THROW_SALOME_CORBA_EXCEPTION("_container and component are not managed by the same POA ! Looks bad !", SALOME::INTERNAL_ERROR);
+ Abstract_Engines_Container_i *elt=dynamic_cast<Abstract_Engines_Container_i *>(serv);
+ if(!elt)
+ THROW_SALOME_CORBA_EXCEPTION("_container servant object if not a Abstract_Engines_Container_i ! It smells bad !", SALOME::INTERNAL_ERROR);
+ SALOME_NamingService_Container_Abstract *ns(elt->getNS());
+ if(!ns)
+ THROW_SALOME_CORBA_EXCEPTION("_container servant object points to a nullptr NS ! It smells bad !", SALOME::INTERNAL_ERROR);
+ return elt->isSSLMode() && (!dynamic_cast<SALOME_NamingService *>(ns));
+}
+
SALOME_NamingService_Abstract *Engines_Component_i::getNS()
{
ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance() ;
Engines::EmbeddedNamingService_ptr get_embedded_NS_if_ssl() override;
+ SALOME_NamingService_Container_Abstract *getNS() const { return _NS; }
+
void remove_impl(Engines::EngineComponent_ptr component_i);
void finalize_removal();