Class that implements a very basic service discovery mechanism.
More...
#include <serviceDiscovery.hpp>
Class that implements a very basic service discovery mechanism.
◆ ServiceDiscovery()
rtctk::componentFramework::ServiceDiscovery::ServiceDiscovery |
( |
const elt::mal::Uri & |
endpoint, |
|
|
const std::string & |
comp_name = "" |
|
) |
| |
|
explicit |
Create a new ServiceDiscovery object.
- Parameters
-
endpoint | location of the service registry |
comp_name | optional: component name if used from within RTC component |
◆ ~ServiceDiscovery()
rtctk::componentFramework::ServiceDiscovery::~ServiceDiscovery |
( |
| ) |
|
|
default |
◆ Get() [1/2]
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
- Parameters
-
service_name | name of the service |
- Returns
- service endpoint URI
- Exceptions
-
◆ Get() [2/2]
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
- Parameters
-
service_name | name of the service |
comp_name | name of the component instance |
- Returns
- service endpoint URI
- Exceptions
-
◆ OLDB_ENDPOINT
const DataPointPath rtctk::componentFramework::ServiceDiscovery::OLDB_ENDPOINT = "oldb_endpoint"_dppath |
|
static |
◆ PERSIST_REPO_ENDPOINT
const DataPointPath rtctk::componentFramework::ServiceDiscovery::PERSIST_REPO_ENDPOINT = "persist_repo_endpoint"_dppath |
|
static |
◆ PUB_SUB_ENDPOINT
const DataPointPath rtctk::componentFramework::ServiceDiscovery::PUB_SUB_ENDPOINT = "pub_sub_endpoint"_dppath |
|
static |
◆ REQ_REP_ENDPOINT
const DataPointPath rtctk::componentFramework::ServiceDiscovery::REQ_REP_ENDPOINT = "req_rep_endpoint"_dppath |
|
static |
There is a fixed set of supported service types.
◆ RUNTIME_REPO_ENDPOINT
const DataPointPath rtctk::componentFramework::ServiceDiscovery::RUNTIME_REPO_ENDPOINT = "runtime_repo_endpoint"_dppath |
|
static |
The documentation for this class was generated from the following files: