Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types
RTC::NamingManager Class Reference

NamingServer management class. More...

#include <NamingManager.h>

Inheritance diagram for RTC::NamingManager:
Inheritance graph
[legend]

List of all members.

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.
void bindObject (const char *name, const RTM::ManagerServant *mgr)
 Bind the specified ManagerServants to NamingService.
std::vector< RTObject_impl * > getObjects ()
 Get all bound objects.
 NamingManager (Manager *manager)
 Constructor.
void registerNameServer (const char *method, const char *name_server)
 Regster the NameServer.
void unbindAll ()
 Unbind all objects from NamingService.
void unbindObject (const char *name)
 Unbind the specified objects from NamingService.
void update ()
 Update information of NamingServer.
virtual ~NamingManager (void)
 Destructor.

Protected Member Functions

void bindCompsTo (NamingBase *ns)
 Register the configured component to NameServer.
NamingBasecreateNamingObj (const char *method, const char *name_server)
 Create objects for NameServer management.
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 retryConnection (Names *ns)
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.

Protected Attributes

std::vector< Comps * > m_compNames
 Component list.
Mutex m_compNamesMutex
 Mutex of Component list.
Managerm_manager
 Manager object.
std::vector< Mgr * > m_mgrNames
 ManagerServant list.
Mutex m_mgrNamesMutex
 Mutex of ManagerServant list.
std::vector< Names * > m_names
 NameServer list.
Mutex m_namesMutex
 Mutex of NameServer list.
Logger rtclog
 Logger stream.

Private Types

typedef coil::Guard< MutexGuard
typedef coil::Mutex Mutex

Detailed Description

NamingServer management class.

NamingServer management class. Manage to register and unregister components to NamingService.

Since:
0.4.0

Definition at line 353 of file NamingManager.h.


Member Typedef Documentation

Definition at line 356 of file NamingManager.h.

Definition at line 355 of file NamingManager.h.


Constructor & Destructor Documentation

Constructor.

Constructor

Parameters:
managerManager object

Definition at line 163 of file NamingManager.cpp.

RTC::NamingManager::~NamingManager ( void  ) [virtual]

Destructor.

Definition at line 175 of file NamingManager.cpp.


Member Function Documentation

void RTC::NamingManager::bindCompsTo ( NamingBase ns) [protected]

Register the configured component to NameServer.

Register the already configured components to NameServer.

Parameters:
nsThe 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.

Parameters:
nameNames at the binding
rtobjThe 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.

Parameters:
nameNames at the binding
mgrThe target ManagerServants for the binding

Definition at line 228 of file NamingManager.cpp.

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:
methodNamingService format
name_serverNameServer name
Returns:
Created NameServer objects

Definition at line 392 of file NamingManager.cpp.

Get all bound objects.

Get all bound objects.

Returns:
Bound object list

Definition at line 370 of file NamingManager.cpp.

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:
nameNames of components at the registration
rtobjThe target objects for registration

Definition at line 443 of file NamingManager.cpp.

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:
nameNames of ManagerServants at the registration
mgrThe target ManagerServants for registration

Reimplemented in NamingManager::NamingManagerMock.

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.

Parameters:
methodFormat of NamingService
name_serverName of NameServer for registration

Definition at line 186 of file NamingManager.cpp.

void RTC::NamingManager::retryConnection ( Names ns) [protected]

Definition at line 508 of file NamingManager.cpp.

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.

Parameters:
nameThe target objects for the unbinding

Definition at line 308 of file NamingManager.cpp.

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:
nameNames of the target components for unregistration

Definition at line 479 of file NamingManager.cpp.

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:
nameNames of the target ManagerServants for unregistration

Reimplemented in NamingManager::NamingManagerMock.

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.


Member Data Documentation

std::vector<Comps*> RTC::NamingManager::m_compNames [protected]

Component list.

Definition at line 785 of file NamingManager.h.

Mutex of Component list.

Definition at line 793 of file NamingManager.h.

Manager object.

Definition at line 818 of file NamingManager.h.

std::vector<Mgr*> RTC::NamingManager::m_mgrNames [protected]

ManagerServant list.

Definition at line 801 of file NamingManager.h.

Mutex of ManagerServant list.

Definition at line 809 of file NamingManager.h.

std::vector<Names*> RTC::NamingManager::m_names [protected]

NameServer list.

Definition at line 737 of file NamingManager.h.

Mutex of NameServer list.

Definition at line 745 of file NamingManager.h.

Logger stream.

Definition at line 827 of file NamingManager.h.


The documentation for this class was generated from the following files:


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:41