|
RTC Toolkit
0.1.0-alpha
|
#include <serviceDiscovery.hpp>
Public Member Functions | |
| ServiceDiscovery (const elt::mal::Uri &endpoint, const std::string &comp_name="") | |
| ~ServiceDiscovery () | |
| ::elt::mal::Uri | Get (const std::string &service_name) |
| ::elt::mal::Uri | Get (const std::string &service_name, const std::string &comp_name) |
Static Public Attributes | |
| static const DataPointPath | REQ_REP_ENDPOINT = "req_rep_endpoint"_dppath |
| static const DataPointPath | PUB_SUB_ENDPOINT = "pub_sub_endpoint"_dppath |
| static const DataPointPath | RUNTIME_REPO_ENDPOINT = "runtime_repo_endpoint"_dppath |
| static const DataPointPath | PERSIST_REPO_ENDPOINT = "persist_repo_endpoint"_dppath |
| static const DataPointPath | OLDB_ENDPOINT = "oldb_endpoint"_dppath |
Class that implements a very basic service discovery mechanism.
|
explicit |
Create a new ServiceDiscovery object
| endpoint | location of the service registry |
| comp_name | optional: component name if used from within RTC component |
|
default |
| ::elt::mal::Uri rtctk::componentFramework::ServiceDiscovery::Get | ( | const std::string & | service_name | ) |
Get endpoint of specific service
Use this method to retrieve endpoints for the current component
| service_name | name of the service |
| std::runtime_error | if service_name invalid or comp_name not set |
| ::elt::mal::Uri rtctk::componentFramework::ServiceDiscovery::Get | ( | const std::string & | service_name, |
| const std::string & | comp_name | ||
| ) |
Get endpoint of specific service
Use this method if you need to retrieve endpoints to access other components
| service_name | name of the service |
| comp_name | name of the component instance |
| std::runtime_error | if service_name or comp_name invalid |
|
static |
|
static |
|
static |
|
static |
There is a fixed set of supported service types.
|
static |