NamingServer management class. More...
#include <NamingManager.h>
Classes | |
struct | Comps |
Structure for component management. More... | |
struct | Mgr |
Structure for ManagerServant management. More... | |
class | Names |
Structure for NameServer management. More... | |
Public Member Functions | |
void | bindObject (const char *name, const RTObject_impl *rtobj) |
Bind the specified objects to NamingService. More... | |
void | bindObject (const char *name, const RTM::ManagerServant *mgr) |
Bind the specified ManagerServants to NamingService. More... | |
std::vector< RTObject_impl * > | getObjects () |
Get all bound objects. More... | |
NamingManager (Manager *manager) | |
Constructor. More... | |
void | registerNameServer (const char *method, const char *name_server) |
Regster the NameServer. More... | |
void | unbindAll () |
Unbind all objects from NamingService. More... | |
void | unbindObject (const char *name) |
Unbind the specified objects from NamingService. More... | |
void | update () |
Update information of NamingServer. More... | |
virtual | ~NamingManager (void) |
Destructor. More... | |
Protected Member Functions | |
void | bindCompsTo (NamingBase *ns) |
Register the configured component to NameServer. More... | |
NamingBase * | createNamingObj (const char *method, const char *name_server) |
Create objects for NameServer management. More... | |
void | registerCompName (const char *name, const RTObject_impl *rtobj) |
Configure the components that will be registered to NameServer. More... | |
void | registerMgrName (const char *name, const RTM::ManagerServant *mgr) |
Configure the ManagerServants that will be registered to NameServer. More... | |
void | retryConnection (Names *ns) |
void | unregisterCompName (const char *name) |
Unregister the components that will be registered to NameServer. More... | |
void | unregisterMgrName (const char *name) |
Unregister the ManagerServants that will be registered to NameServer. More... | |
Protected Attributes | |
std::vector< Comps * > | m_compNames |
Component list. More... | |
Mutex | m_compNamesMutex |
Mutex of Component list. More... | |
Manager * | m_manager |
Manager object. More... | |
std::vector< Mgr * > | m_mgrNames |
ManagerServant list. More... | |
Mutex | m_mgrNamesMutex |
Mutex of ManagerServant list. More... | |
std::vector< Names * > | m_names |
NameServer list. More... | |
Mutex | m_namesMutex |
Mutex of NameServer list. More... | |
Logger | rtclog |
Logger stream. More... | |
Private Types | |
typedef coil::Guard< Mutex > | Guard |
typedef coil::Mutex | Mutex |
NamingServer management class.
NamingServer management class. Manage to register and unregister components to NamingService.
Definition at line 353 of file NamingManager.h.
|
private |
Definition at line 356 of file NamingManager.h.
|
private |
Definition at line 355 of file NamingManager.h.
RTC::NamingManager::NamingManager | ( | Manager * | manager | ) |
Constructor.
Constructor
manager | Manager object |
Definition at line 163 of file NamingManager.cpp.
|
virtual |
Destructor.
Definition at line 175 of file NamingManager.cpp.
|
protected |
Register the configured component to NameServer.
Register the already configured components to NameServer.
ns | The target NameServer for the registration |
Definition at line 428 of file NamingManager.cpp.
void RTC::NamingManager::bindObject | ( | const char * | name, |
const RTObject_impl * | rtobj | ||
) |
Bind the specified objects to NamingService.
Bind the specified objects to CORBA NamingService by specified names.
name | Names at the binding |
rtobj | The target objects for the binding |
Definition at line 205 of file NamingManager.cpp.
void RTC::NamingManager::bindObject | ( | const char * | name, |
const RTM::ManagerServant * | mgr | ||
) |
Bind the specified ManagerServants to NamingService.
Bind the specified ManagerServants to CORBA NamingService by specified names.
name | Names at the binding |
mgr | The target ManagerServants for the binding |
Definition at line 228 of file NamingManager.cpp.
|
protected |
Create objects for NameServer management.
Create objects of specified type for NameServer management.
method | NamingService format |
name_server | NameServer name |
Definition at line 392 of file NamingManager.cpp.
std::vector< RTObject_impl * > RTC::NamingManager::getObjects | ( | ) |
Get all bound objects.
Get all bound objects.
Definition at line 370 of file NamingManager.cpp.
|
protected |
Configure the components that will be registered to NameServer.
Configure the components that will be registered to NameServer.
name | Names of components at the registration |
rtobj | The target objects for registration |
Definition at line 443 of file NamingManager.cpp.
|
protected |
Configure the ManagerServants that will be registered to NameServer.
Configure the ManagerServants that will be registered to NameServer.
name | Names of ManagerServants at the registration |
mgr | The target ManagerServants for registration |
Definition at line 457 of file NamingManager.cpp.
void RTC::NamingManager::registerNameServer | ( | const char * | method, |
const char * | name_server | ||
) |
Regster the NameServer.
Register the NameServer.
Register NameServer by specified format. Currently. only CORBA can be specified.
method | Format of NamingService |
name_server | Name of NameServer for registration |
Definition at line 186 of file NamingManager.cpp.
|
protected |
Definition at line 508 of file NamingManager.cpp.
void RTC::NamingManager::unbindAll | ( | ) |
Unbind all objects from NamingService.
Unbind all objects from CORBA NamingService.
Definition at line 331 of file NamingManager.cpp.
void RTC::NamingManager::unbindObject | ( | const char * | name | ) |
Unbind the specified objects from NamingService.
Unbind the specified object from NamingService.
Unbind the specified objects from NamingService.
name | The target objects for the unbinding |
Definition at line 308 of file NamingManager.cpp.
|
protected |
Unregister the components that will be registered to NameServer.
Unregister the components that will be registered to NameServer.
name | Names of the target components for unregistration |
Definition at line 479 of file NamingManager.cpp.
|
protected |
Unregister the ManagerServants that will be registered to NameServer.
Unregister the ManagerServants that will be registered to NameServer.
name | Names of the target ManagerServants for unregistration |
Definition at line 493 of file NamingManager.cpp.
void RTC::NamingManager::update | ( | void | ) |
Update information of NamingServer.
Update the object information registered in the specified NameServer.
Definition at line 259 of file NamingManager.cpp.
|
protected |
Component list.
Definition at line 785 of file NamingManager.h.
|
protected |
Mutex of Component list.
Definition at line 793 of file NamingManager.h.
|
protected |
Manager object.
Definition at line 818 of file NamingManager.h.
|
protected |
ManagerServant list.
Definition at line 801 of file NamingManager.h.
|
protected |
Mutex of ManagerServant list.
Definition at line 809 of file NamingManager.h.
|
protected |
NameServer list.
Definition at line 737 of file NamingManager.h.
|
protected |
Mutex of NameServer list.
Definition at line 745 of file NamingManager.h.
|
protected |
Logger stream.
Definition at line 827 of file NamingManager.h.