RTC Toolkit
2.0.0
|
Class that implements a very basic service discovery mechanism. More...
#include <serviceDiscovery.hpp>
Public Types | |
using | ServiceEndpoint = ServiceRegistryIf::ServiceEndpoint |
Public Member Functions | |
ServiceDiscovery (std::unique_ptr< ServiceRegistryIf > &&adapter, const std::string &comp_name="") | |
Create a new ServiceDiscovery object. More... | |
ServiceDiscovery (const elt::mal::Uri ®istry, const std::string &comp_name="") | |
Create a new ServiceDiscovery object. More... | |
std::vector< std::string > | ListComponents () |
Get known components. More... | |
ServiceEndpoint | GetOldbEndpoint () |
Get the Oldb Endpoint from the ServiceDiscovery. More... | |
ServiceEndpoint | GetRuntimeRepoEndpoint () |
Get the Runtime Repository Endpoint from the ServiceDiscovery. More... | |
ServiceEndpoint | GetPersistentRepoEndpoint () |
Get the Persistent Repository Endpoint from the ServiceDiscovery. More... | |
ServiceEndpoint | GetReqRepEndpoint (const std::string &component_name="") |
Get the Request/Reply Endpoint of a component. More... | |
ServiceEndpoint | GetPubSubEndpoint (const std::string &component_name="") |
Get the PubSub Endpoint of a component. More... | |
Class that implements a very basic service discovery mechanism.
using rtctk::componentFramework::ServiceDiscovery::ServiceEndpoint = ServiceRegistryIf::ServiceEndpoint |
|
explicit |
Create a new ServiceDiscovery object.
adapter | unique_ptr to Service Registry to use for service discovery |
comp_name | optional: component name if used from within RTC component |
|
explicit |
Create a new ServiceDiscovery object.
registry | URI to the Service Registry, currently only file:// URIs are supported |
comp_name | optional: component name if used from within RTC component |
ServiceDiscovery::ServiceEndpoint rtctk::componentFramework::ServiceDiscovery::GetOldbEndpoint | ( | ) |
Get the Oldb Endpoint from the ServiceDiscovery.
ServiceDiscovery::ServiceEndpoint rtctk::componentFramework::ServiceDiscovery::GetPersistentRepoEndpoint | ( | ) |
Get the Persistent Repository Endpoint from the ServiceDiscovery.
ServiceDiscovery::ServiceEndpoint rtctk::componentFramework::ServiceDiscovery::GetPubSubEndpoint | ( | const std::string & | component_name = "" | ) |
Get the PubSub Endpoint of a component.
comp_name | optional: component name, otherwise component name during construction is used. |
ServiceDiscovery::ServiceEndpoint rtctk::componentFramework::ServiceDiscovery::GetReqRepEndpoint | ( | const std::string & | component_name = "" | ) |
Get the Request/Reply Endpoint of a component.
comp_name | optional: component name, otherwise component name during construction is used. |
ServiceDiscovery::ServiceEndpoint rtctk::componentFramework::ServiceDiscovery::GetRuntimeRepoEndpoint | ( | ) |
Get the Runtime Repository Endpoint from the ServiceDiscovery.
std::vector< std::string > rtctk::componentFramework::ServiceDiscovery::ListComponents | ( | ) |
Get known components.
Use this method to retrieve all components known to the service discovery