NamingServer management class.
More...
#include <NamingManager.h>
|
| struct | Comps |
| | Structure for component management . More...
|
| |
| struct | Mgr |
| | Structure for ManagerServant management . More...
|
| |
| struct | Port |
| | Structure for component management . More...
|
| |
NamingServer management class.
NamingServer management class. Manage to register and unregister components to NamingService.
- Since
- 0.4.0
◆ NamingManager()
| RTC::NamingManager::NamingManager |
( |
Manager * | manager | ) |
|
|
explicit |
Constructor.
Constructor
- Parameters
-
◆ ~NamingManager()
| virtual RTC::NamingManager::~NamingManager |
( |
| ) |
|
|
virtual |
◆ bindCompsTo()
| void RTC::NamingManager::bindCompsTo |
( |
NamingBase * | ns | ) |
|
|
protected |
Register the configured component to NameServer.
Register the already configured components to NameServer.
- Parameters
-
| ns | The target NameServer for the registration |
◆ bindObject() [1/3]
| void RTC::NamingManager::bindObject |
( |
const char * | name, |
|
|
const PortBase * | port ) |
Bind the specified objects to NamingService.
Bind the specified objects to CORBA NamingService by specified names.
- Parameters
-
| name | Names at the binding |
| rtobj | The target objects for the binding |
◆ bindObject() [2/3]
Bind the specified ManagerServants to NamingService.
Bind the specified ManagerServants to CORBA NamingService by specified names.
- Parameters
-
| name | Names at the binding |
| mgr | The target ManagerServants for the binding |
◆ bindObject() [3/3]
| void RTC::NamingManager::bindObject |
( |
const char * | name, |
|
|
const RTObject_impl * | rtobj ) |
◆ createNamingObj()
| 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.
- Parameters
-
- Returns
- Created NameServer objects
◆ getNameServices()
| std::vector< NamingService * > & RTC::NamingManager::getNameServices |
( |
| ) |
|
|
inline |
◆ getObjects()
| std::vector< RTObject_impl * > RTC::NamingManager::getObjects |
( |
| ) |
|
Get all bound objects.
Get all bound objects.
- Returns
- Bound object list
◆ registerCompName()
| 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.
- Parameters
-
| name | Names of components at the registration |
| rtobj | The target objects for registration |
◆ registerMgrName()
| 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.
- Parameters
-
| name | Names of ManagerServants at the registration |
| mgr | The target ManagerServants for registration |
◆ registerNameServer()
| 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.
- Parameters
-
| method | Format of NamingService |
| name_server | Name of NameServer for registration |
◆ registerPortName()
| void RTC::NamingManager::registerPortName |
( |
const char * | name, |
|
|
const PortBase * | port ) |
|
protected |
Configure the components that will be registered to NameServer.
Configure the components that will be registered to NameServer.
- Parameters
-
| name | Names of components at the registration |
| rtobj | The target objects for registration |
◆ retryConnection()
Rebind the component to NameServer.
Connect with the NameServer and rebind the component.
- Parameters
-
◆ string_to_component()
| RTCList RTC::NamingManager::string_to_component |
( |
const std::string & | name | ) |
|
registerMgrName
- Parameters
-
- Returns
◆ unbindAll()
| void RTC::NamingManager::unbindAll |
( |
| ) |
|
◆ unbindObject()
| void RTC::NamingManager::unbindObject |
( |
const char * | name | ) |
|
Unbind the specified objects from NamingService.
Unbind the specified objects from NamingService.
- Parameters
-
| name | The target objects for the unbinding |
◆ unregisterCompName()
| 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.
- Parameters
-
| name | Names of the target components for unregistration |
◆ unregisterMgrName()
| 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.
- Parameters
-
| name | Names of the target ManagerServants for unregistration |
◆ unregisterPortName()
| void RTC::NamingManager::unregisterPortName |
( |
const char * | name | ) |
|
|
protected |
◆ update()
| void RTC::NamingManager::update |
( |
| ) |
|
Update information of NamingServer.
Update the object information registered in the specified NameServer.
◆ m_compNames
| std::vector<Comps*> RTC::NamingManager::m_compNames |
|
protected |
◆ m_compNamesMutex
| std::mutex RTC::NamingManager::m_compNamesMutex |
|
protected |
Mutex of Component list .
◆ m_manager
| Manager* RTC::NamingManager::m_manager |
|
protected |
◆ m_mgrNames
| std::vector<Mgr*> RTC::NamingManager::m_mgrNames |
|
protected |
◆ m_mgrNamesMutex
| std::mutex RTC::NamingManager::m_mgrNamesMutex |
|
protected |
Mutex of ManagerServant list .
◆ m_names
◆ m_namesMutex
| std::mutex RTC::NamingManager::m_namesMutex |
|
protected |
Mutex of NameServer list .
◆ m_portNames
| std::vector<Port*> RTC::NamingManager::m_portNames |
|
protected |
◆ m_portNamesMutex
| std::mutex RTC::NamingManager::m_portNamesMutex |
|
protected |
◆ rtclog
| Logger RTC::NamingManager::rtclog |
|
protected |
The documentation for this class was generated from the following file: