This class implements the interface Engines::ConnectionManager. More...
#include <ConnectionManager_i.hxx>
Data Structures | |
struct | connection_infos |
Public Member Functions | |
ConnectionManager_i (CORBA::ORB_ptr orb) | |
virtual | ~ConnectionManager_i () |
Engines::ConnectionManager::connectionId | connect (Engines::DSC_ptr uses_component, const char *uses_port_name, Engines::DSC_ptr provides_component, const char *provides_port_name) |
CORBA method : connect two ports of two components. More... | |
void | disconnect (Engines::ConnectionManager::connectionId id, Engines::DSC::Message message) |
CORBA method : releases a connection performed with ConnectionManager_i::connect. More... | |
void | ShutdownWithExit () |
Shutdown the ConnectionManager process. More... | |
CORBA::Long | getPID () |
Returns the PID of the connection manager. More... | |
Static Public Attributes | |
static const char * | _ConnectionManagerNameInNS = "/ConnectionManager" |
Protected Attributes | |
CORBA::ORB_var | _orb |
SALOME_NamingService * | _NS |
Private Types | |
typedef std::map< Engines::ConnectionManager::connectionId, connection_infos * > | ids_type |
typedef std::map< Engines::ConnectionManager::connectionId, connection_infos * >::iterator | ids_it_type |
Private Attributes | |
ids_type | ids |
ids_it_type | ids_it |
int | current_id |
pthread_mutex_t | mutex |
This class implements the interface Engines::ConnectionManager.
|
private |
|
private |
ConnectionManager_i::ConnectionManager_i | ( | CORBA::ORB_ptr | orb | ) |
References _ConnectionManagerNameInNS, _NS, _orb, current_id, mutex, salome::orb, and SALOME_NamingService::Register().
|
virtual |
References _NS.
Engines::ConnectionManager::connectionId ConnectionManager_i::connect | ( | Engines::DSC_ptr | uses_component, |
const char * | uses_port_name, | ||
Engines::DSC_ptr | provides_component, | ||
const char * | provides_port_name | ||
) |
CORBA method : connect two ports of two components.
References current_id, ids, mutex, ConnectionManager_i::connection_infos::provides_component, ConnectionManager_i::connection_infos::provides_port, ConnectionManager_i::connection_infos::provides_port_name, ConnectionManager_i::connection_infos::uses_component, and ConnectionManager_i::connection_infos::uses_port_name.
void ConnectionManager_i::disconnect | ( | Engines::ConnectionManager::connectionId | id, |
Engines::DSC::Message | message | ||
) |
CORBA method : releases a connection performed with ConnectionManager_i::connect.
References python_test_driver::err, ids, ids_it, ConnectionManager_i::connection_infos::provides_component, ConnectionManager_i::connection_infos::provides_port, ConnectionManager_i::connection_infos::provides_port_name, ConnectionManager_i::connection_infos::uses_component, and ConnectionManager_i::connection_infos::uses_port_name.
Referenced by ShutdownWithExit().
CORBA::Long ConnectionManager_i::getPID | ( | ) |
Returns the PID of the connection manager.
void ConnectionManager_i::ShutdownWithExit | ( | ) |
Shutdown the ConnectionManager process.
References _ConnectionManagerNameInNS, _NS, _orb, SALOME_NamingService::Destroy_Name(), disconnect(), ids, ids_it, and Engines::DSC::RemovingConnection.
|
static |
Referenced by ConnectionManager_i(), and ShutdownWithExit().
|
protected |
Referenced by ConnectionManager_i(), ShutdownWithExit(), and ~ConnectionManager_i().
|
protected |
Referenced by SALOME_Container.SALOME_Container_i::__init__(), SALOME_ContainerPy.SALOME_ContainerPy_Gen_i::__init__(), SALOME_ContainerPy.SALOME_ContainerPy_i::__init__(), SALOME_ComponentPy.SALOME_ComponentPy_Gen_i::__init__(), SALOME_NamingServicePy.SALOME_NamingServicePy_i::__init__(), ConnectionManager_i(), SALOME_ContainerPy.SALOME_ContainerPy_Gen_i::create_component_instance(), SALOME_Container.SALOME_Container_i::create_component_instance(), SALOME_Container.SALOME_Container_i::create_pynode(), SALOME_Container.SALOME_Container_i::create_pyscriptnode(), SALOME_Embedded_NamingService_ClientPy.SALOME_Embedded_NamingService_ClientPy::Register(), SALOME_Embedded_NamingService_ClientPy.SALOME_Embedded_NamingService_ClientPy::Resolve(), SALOME_ContainerPy.SALOME_ContainerPy_Gen_i::Shutdown(), and ShutdownWithExit().
|
private |
Referenced by connect(), and ConnectionManager_i().
|
private |
Referenced by connect(), disconnect(), and ShutdownWithExit().
|
private |
Referenced by disconnect(), and ShutdownWithExit().
|
private |
Referenced by connect(), and ConnectionManager_i().