RTC Toolkit  2.0.0
Public Member Functions | List of all members
rtctk::componentFramework::FileServiceRegistryAdapter Class Reference

Class that implements a very basic service discovery mechanism. More...

#include <fileServiceRegistryAdapter.hpp>

Inheritance diagram for rtctk::componentFramework::FileServiceRegistryAdapter:
rtctk::componentFramework::ServiceRegistryIf

Public Member Functions

 FileServiceRegistryAdapter (const elt::mal::Uri &endpoint)
 
std::vector< std::string > ListComponents () override
 Get known components. More...
 
ServiceEndpoint Get (const std::string &comp_name, const std::string &service_name) override
 Get endpoint of specific service of a specific component. More...
 
ServiceEndpoint GetOldbEndpoint () override
 Get the Oldb Endpoint from the service registry. More...
 
ServiceEndpoint GetRuntimeRepoEndpoint () override
 Get the Runtime Repository Endpoint from the service registry. More...
 
ServiceEndpoint GetPersistentRepoEndpoint () override
 Get the Persistent Repository Endpoint from the service registry. More...
 
- Public Member Functions inherited from rtctk::componentFramework::ServiceRegistryIf
virtual ~ServiceRegistryIf ()=default
 virtual destructor More...
 

Additional Inherited Members

- Public Types inherited from rtctk::componentFramework::ServiceRegistryIf
using ServiceEndpoint = elt::mal::Uri
 
- Static Public Attributes inherited from rtctk::componentFramework::ServiceRegistryIf
static const std::string REQ_REP_ENDPOINT = "req_rep_endpoint"
 the string used to identify the Request/Reply endpoint of a service when using the Get function. More...
 
static const std::string PUB_SUB_ENDPOINT = "pub_sub_endpoint"
 the string used to identify the PubSub endpoint of a service when using the Get function. More...
 

Detailed Description

Class that implements a very basic service discovery mechanism.

Constructor & Destructor Documentation

◆ FileServiceRegistryAdapter()

rtctk::componentFramework::FileServiceRegistryAdapter::FileServiceRegistryAdapter ( const elt::mal::Uri &  endpoint)

Member Function Documentation

◆ Get()

FileServiceRegistryAdapter::ServiceEndpoint rtctk::componentFramework::FileServiceRegistryAdapter::Get ( const std::string &  comp_name,
const std::string &  service_name 
)
overridevirtual

Get endpoint of specific service of a specific component.

Parameters
comp_namename of the component instance
service_namename of the service, Must be one of the REQ_REP_ENDPOINT or PUB_SUB_ENDPOINT contants defined in ServiceRegistryIf
Returns
ServiceEndpoint
Exceptions
InvalidServiceif service_name or InvalidComponent if comp_name invalid

Implements rtctk::componentFramework::ServiceRegistryIf.

◆ GetOldbEndpoint()

FileServiceRegistryAdapter::ServiceEndpoint rtctk::componentFramework::FileServiceRegistryAdapter::GetOldbEndpoint ( )
overridevirtual

Get the Oldb Endpoint from the service registry.

Implements rtctk::componentFramework::ServiceRegistryIf.

◆ GetPersistentRepoEndpoint()

FileServiceRegistryAdapter::ServiceEndpoint rtctk::componentFramework::FileServiceRegistryAdapter::GetPersistentRepoEndpoint ( )
overridevirtual

Get the Persistent Repository Endpoint from the service registry.

Implements rtctk::componentFramework::ServiceRegistryIf.

◆ GetRuntimeRepoEndpoint()

FileServiceRegistryAdapter::ServiceEndpoint rtctk::componentFramework::FileServiceRegistryAdapter::GetRuntimeRepoEndpoint ( )
overridevirtual

Get the Runtime Repository Endpoint from the service registry.

Implements rtctk::componentFramework::ServiceRegistryIf.

◆ ListComponents()

std::vector< std::string > rtctk::componentFramework::FileServiceRegistryAdapter::ListComponents ( )
overridevirtual

Get known components.

Use this method to retrieve all components known to the service registry

Returns
vector of pairs containing the component names

Implements rtctk::componentFramework::ServiceRegistryIf.


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