#include <NamingManager.h>
Public Member Functions | |
| NamingManager (Manager *manager) | |
| Constructor. | |
| virtual | ~NamingManager (void) |
| Destructor. | |
| void | registerNameServer (const char *method, const char *name_server) |
| Regster the NameServer. | |
| void | bindObject (const char *name, const RTObject_impl *rtobj) |
| Bind the specified objects to NamingService. | |
| void | bindObject (const char *name, const RTM::ManagerServant *mgr) |
| Bind the specified ManagerServants to NamingService. | |
| void | update () |
| Update information of NamingServer. | |
| void | unbindObject (const char *name) |
| Unbind the specified objects from NamingService. | |
| void | unbindAll () |
| Unbind all objects from NamingService. | |
| std::vector< RTObject_impl * > | getObjects () |
| Get all bound objects. | |
Protected Member Functions | |
| NamingBase * | createNamingObj (const char *method, const char *name_server) |
| Create objects for NameServer management. | |
| void | bindCompsTo (NamingBase *ns) |
| Register the configured component to NameServer. | |
| void | registerCompName (const char *name, const RTObject_impl *rtobj) |
| Configure the components that will be registered to NameServer. | |
| void | registerMgrName (const char *name, const RTM::ManagerServant *mgr) |
| Configure the ManagerServants that will be registered to NameServer. | |
| void | unregisterCompName (const char *name) |
| Unregister the components that will be registered to NameServer. | |
| void | unregisterMgrName (const char *name) |
| Unregister the ManagerServants that will be registered to NameServer. | |
| void | retryConnection (Names *ns) |
Protected Attributes | |
| std::vector< Names * > | m_names |
| NameServer list. | |
| Mutex | m_namesMutex |
| Mutex of NameServer list. | |
| std::vector< Comps * > | m_compNames |
| Component list. | |
| Mutex | m_compNamesMutex |
| Mutex of Component list. | |
| std::vector< Mgr * > | m_mgrNames |
| ManagerServant list. | |
| Mutex | m_mgrNamesMutex |
| Mutex of ManagerServant list. | |
| Manager * | m_manager |
| Manager object. | |
| Logger | rtclog |
| Logger stream. | |
Classes | |
| struct | Comps |
| Structure for component management. More... | |
| struct | Mgr |
| Structure for ManagerServant management. More... | |
| class | Names |
| Structure for NameServer management. More... | |
NamingServer management class. Manage to register and unregister components to NamingService.
| RTC::NamingManager::NamingManager | ( | Manager * | manager | ) |
| virtual RTC::NamingManager::~NamingManager | ( | void | ) | [virtual] |
Destructor.
| 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 |
| 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 |
| void RTC::NamingManager::update | ( | ) |
Update information of NamingServer.
Update the object information registered in the specified NameServer.
| 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 |
| void RTC::NamingManager::unbindAll | ( | ) |
Unbind all objects from NamingService.
Unbind all objects from CORBA NamingService.
| std::vector<RTObject_impl*> RTC::NamingManager::getObjects | ( | ) |
Get all bound objects.
Get all bound objects.
| NamingBase* RTC::NamingManager::createNamingObj | ( | const char * | method, | |
| const char * | name_server | |||
| ) | [protected] |
Create objects for NameServer management.
Create objects of specified type for NameServer management.
| method | NamingService format | |
| name_server | NameServer name |
| void RTC::NamingManager::bindCompsTo | ( | NamingBase * | ns | ) | [protected] |
Register the configured component to NameServer.
Register the already configured components to NameServer.
| ns | The target NameServer for the registration |
| void RTC::NamingManager::registerCompName | ( | const char * | name, | |
| const RTObject_impl * | rtobj | |||
| ) | [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 |
| void RTC::NamingManager::registerMgrName | ( | const char * | name, | |
| const RTM::ManagerServant * | mgr | |||
| ) | [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::unregisterCompName | ( | const char * | name | ) | [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 |
| void RTC::NamingManager::unregisterMgrName | ( | const char * | name | ) | [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::retryConnection | ( | Names * | ns | ) | [protected] |
std::vector<Names*> RTC::NamingManager::m_names [protected] |
NameServer list.
Mutex RTC::NamingManager::m_namesMutex [protected] |
Mutex of NameServer list.
std::vector<Comps*> RTC::NamingManager::m_compNames [protected] |
Component list.
Mutex RTC::NamingManager::m_compNamesMutex [protected] |
Mutex of Component list.
std::vector<Mgr*> RTC::NamingManager::m_mgrNames [protected] |
ManagerServant list.
Mutex RTC::NamingManager::m_mgrNamesMutex [protected] |
Mutex of ManagerServant list.
Manager* RTC::NamingManager::m_manager [protected] |
Manager object.
Logger RTC::NamingManager::rtclog [protected] |
Logger stream.
1.5.5