RTC Toolkit
2.0.0
|
Class that implements a service registry to be used by the service discovery. More...
#include <serviceRegistryIf.hpp>
Classes | |
class | InvalidComponent |
class | InvalidService |
Public Types | |
using | ServiceEndpoint = elt::mal::Uri |
Public Member Functions | |
virtual | ~ServiceRegistryIf ()=default |
virtual destructor More... | |
virtual std::vector< std::string > | ListComponents ()=0 |
Get known components. More... | |
virtual ServiceEndpoint | GetOldbEndpoint ()=0 |
Get the Oldb Endpoint from the service registry. More... | |
virtual ServiceEndpoint | GetRuntimeRepoEndpoint ()=0 |
Get the Runtime Repository Endpoint from the service registry. More... | |
virtual ServiceEndpoint | GetPersistentRepoEndpoint ()=0 |
Get the Persistent Repository Endpoint from the service registry. More... | |
virtual ServiceEndpoint | Get (const std::string &comp_name, const std::string &service_name)=0 |
Get endpoint of specific service of a specific component. More... | |
Static Public Attributes | |
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... | |
Class that implements a service registry to be used by the service discovery.
using rtctk::componentFramework::ServiceRegistryIf::ServiceEndpoint = elt::mal::Uri |
|
virtualdefault |
virtual destructor
|
pure virtual |
Get endpoint of specific service of a specific component.
comp_name | name of the component instance |
service_name | name of the service, Must be one of the REQ_REP_ENDPOINT or PUB_SUB_ENDPOINT contants defined in ServiceRegistryIf |
InvalidService | if service_name or InvalidComponent if comp_name invalid |
Implemented in rtctk::componentFramework::FileServiceRegistryAdapter.
|
pure virtual |
Get the Oldb Endpoint from the service registry.
Implemented in rtctk::componentFramework::FileServiceRegistryAdapter.
|
pure virtual |
Get the Persistent Repository Endpoint from the service registry.
Implemented in rtctk::componentFramework::FileServiceRegistryAdapter.
|
pure virtual |
Get the Runtime Repository Endpoint from the service registry.
Implemented in rtctk::componentFramework::FileServiceRegistryAdapter.
|
pure virtual |
Get known components.
Use this method to retrieve all components known to the service registry
Implemented in rtctk::componentFramework::FileServiceRegistryAdapter.
|
static |
the string used to identify the PubSub endpoint of a service when using the Get function.
|
static |
the string used to identify the Request/Reply endpoint of a service when using the Get function.