#include <RedirectionService.h>
Public Member Functions | |
RedirectionService (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, CosNaming::NamingContext_ptr hosting_context, CosNaming::NamingContext_ptr domain_context, bool ns=false, bool sl=false) | |
~RedirectionService () | |
void | add_node (const ACE_CString &node) |
Creates record in redirection service for correspondent node. | |
void | registration_start (const ACE_CString &node, const ACE_CString &plan) |
void | registration (const ACE_CString &node, const ACE_CString &plan, const ACE_CString &component, const ACE_CString &port, CORBA::Object_ptr obj) |
Registration for port object. | |
void | registration (const ACE_CString &node, const ACE_CString &plan, const ACE_CString &component, CORBA::Object_ptr obj) |
Registration for component object. | |
void | registration_finish (const ACE_CString &node, const ACE_CString &plan) |
void | unregister (const ACE_CString &node, const ACE_CString &plan) |
Private Types | |
typedef ACE_Map_Manager < ACE_CString, DAnCE::CCMObjectLocator *, ACE_Null_Mutex > | TLocators |
Map of servant locators (node name is a key). | |
Private Attributes | |
CORBA::ORB_var | orb_ |
Orb variable. | |
PortableServer::POA_var | poa_ |
Root POA variable. | |
NameServiceRedirection | naming_ |
bool | ns_ |
bool | sl_ |
TLocators | locators_ |
typedef ACE_Map_Manager<ACE_CString, DAnCE::CCMObjectLocator*, ACE_Null_Mutex> DAnCE::RedirectionService::TLocators [private] |
Map of servant locators (node name is a key).
RedirectionService::RedirectionService | ( | CORBA::ORB_ptr | orb, | |
PortableServer::POA_ptr | poa, | |||
CosNaming::NamingContext_ptr | hosting_context, | |||
CosNaming::NamingContext_ptr | domain_context, | |||
bool | ns = false , |
|||
bool | sl = false | |||
) |
Constructor for redirection service object In general, redirection service should be singleton in scope of dance agent process but probably it is not compulsory parameter hosting_context is compulsory if ns is true parameter domain_context should be specified if we need to bind local contextes to external context parameter ns should be passed as true if NameService redirection mechanism should be used parameter sl should be passed as true if ServantLocator redirection should be used parameter poa should be root poa (? probably this parameter is unnecessary and this class can obtains from orb)
RedirectionService::~RedirectionService | ( | ) |
void RedirectionService::add_node | ( | const ACE_CString & | node | ) |
Creates record in redirection service for correspondent node.
void RedirectionService::registration | ( | const ACE_CString & | node, | |
const ACE_CString & | plan, | |||
const ACE_CString & | component, | |||
CORBA::Object_ptr | obj | |||
) |
Registration for component object.
void RedirectionService::registration | ( | const ACE_CString & | node, | |
const ACE_CString & | plan, | |||
const ACE_CString & | component, | |||
const ACE_CString & | port, | |||
CORBA::Object_ptr | obj | |||
) |
Registration for port object.
void RedirectionService::registration_finish | ( | const ACE_CString & | node, | |
const ACE_CString & | plan | |||
) |
Closes transaction for registering node ccm objects and insert node to correspondent ServantLocator and/or NameService Parameters node and plan are the keys
void RedirectionService::registration_start | ( | const ACE_CString & | node, | |
const ACE_CString & | plan | |||
) |
Opens transaction for registering node ccm objects. Parameters node and plan are the keys
void RedirectionService::unregister | ( | const ACE_CString & | node, | |
const ACE_CString & | plan | |||
) |
bool DAnCE::RedirectionService::ns_ [private] |
Orb variable.
Root POA variable.
bool DAnCE::RedirectionService::sl_ [private] |