|
OpenRTM-aist
1.1.2
|
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 | |
| NamingManager (Manager *manager) | |
| Constructor. More... | |
| virtual | ~NamingManager (void) |
| Destructor. More... | |
| void | registerNameServer (const char *method, const char *name_server) |
| Regster the NameServer. More... | |
| 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... | |
| void | update () |
| Update information of NamingServer. More... | |
| void | unbindObject (const char *name) |
| Unbind the specified objects from NamingService. More... | |
| void | unbindAll () |
| Unbind all objects from NamingService. More... | |
| std::vector< RTObject_impl * > | getObjects () |
| Get all bound objects. More... | |
Protected Member Functions | |
| NamingBase * | createNamingObj (const char *method, const char *name_server) |
| Create objects for NameServer management. More... | |
| void | bindCompsTo (NamingBase *ns) |
| Register the configured component to NameServer. 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 | 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... | |
| void | retryConnection (Names *ns) |
Protected Attributes | |
| std::vector< Names * > | m_names |
| NameServer list. More... | |
| Mutex | m_namesMutex |
| Mutex of NameServer list. More... | |
| std::vector< Comps * > | m_compNames |
| Component list. More... | |
| Mutex | m_compNamesMutex |
| Mutex of Component list. More... | |
| std::vector< Mgr * > | m_mgrNames |
| ManagerServant list. More... | |
| Mutex | m_mgrNamesMutex |
| Mutex of ManagerServant list. More... | |
| Manager * | m_manager |
| Manager object. More... | |
| Logger | rtclog |
| Logger stream. More... | |
NamingServer management class.
NamingServer management class. Manage to register and unregister components to NamingService.
| RTC::NamingManager::NamingManager | ( | Manager * | manager | ) |
|
virtual |
Destructor.
|
protected |
Register the configured component to NameServer.
Register the already configured components to NameServer.
| ns | The target NameServer for the registration |
| 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 |
| 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 |
|
protected |
Create objects for NameServer management.
Create objects of specified type for NameServer management.
| method | NamingService format |
| name_server | NameServer name |
| std::vector<RTObject_impl*> RTC::NamingManager::getObjects | ( | ) |
Get all bound objects.
Get all bound objects.
|
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 |
|
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 |
| void RTC::NamingManager::registerNameServer | ( | const char * | method, |
| const char * | name_server | ||
| ) |
Regster the NameServer.
Register NameServer by specified format. Currently. only CORBA can be specified.
| method | Format of NamingService |
| name_server | Name of NameServer for registration |
|
protected |
| void RTC::NamingManager::unbindAll | ( | ) |
Unbind all objects from NamingService.
Unbind all objects from CORBA NamingService.
| void RTC::NamingManager::unbindObject | ( | const char * | name | ) |
Unbind the specified objects from NamingService.
Unbind the specified objects from NamingService.
| name | The target objects for the unbinding |
|
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 |
|
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 |
| void RTC::NamingManager::update | ( | ) |
Update information of NamingServer.
Update the object information registered in the specified NameServer.
|
protected |
Component list.
|
protected |
Mutex of Component list.
|
protected |
ManagerServant list.
|
protected |
Mutex of ManagerServant list.
|
protected |
NameServer list.
|
protected |
Mutex of NameServer list.
1.8.11