Version: 8.3.0
ConnectionManager_i Class Reference

This class implements the interface Engines::ConnectionManager. More...

#include <ConnectionManager_i.hxx>

Inheritance diagram for ConnectionManager_i:

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...
 

Protected Attributes

CORBA::ORB_var _orb
 

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
 

Detailed Description

This class implements the interface Engines::ConnectionManager.

Member Typedef Documentation

Constructor & Destructor Documentation

ConnectionManager_i::ConnectionManager_i ( CORBA::ORB_ptr  orb)
ConnectionManager_i::~ConnectionManager_i ( )
virtual

Member Function Documentation

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::Long ConnectionManager_i::getPID ( )

Returns the PID of the connection manager.

void ConnectionManager_i::ShutdownWithExit ( )

Shutdown the ConnectionManager process.

References _orb, disconnect(), ids, ids_it, and Engines::DSC::RemovingConnection.

Field Documentation

CORBA::ORB_var ConnectionManager_i::_orb
protected
int ConnectionManager_i::current_id
private

Referenced by connect(), and ConnectionManager_i().

ids_type ConnectionManager_i::ids
private
ids_it_type ConnectionManager_i::ids_it
private

Referenced by disconnect(), and ShutdownWithExit().

pthread_mutex_t ConnectionManager_i::mutex
private

Referenced by connect(), and ConnectionManager_i().