13#ifndef RTCTK_COMPONENTFRAMEWORK_SERVICEDISCOVERY_HPP
14#define RTCTK_COMPONENTFRAMEWORK_SERVICEDISCOVERY_HPP
44 const std::string& comp_name =
"");
53 explicit ServiceDiscovery(
const elt::mal::Uri& registry,
const std::string& comp_name =
"");
85 GetReqRepEndpoint(
const std::string& component_name =
"",
const bool health_check =
true);
95 GetPubSubEndpoint(
const std::string& component_name =
"",
const bool health_check =
true);
101 std::unique_ptr<ServiceRegistryIf> m_adapter;
105 const std::string m_component_name;
Class that implements a very basic service discovery mechanism.
Definition: serviceDiscovery.hpp:33
ServiceEndpoint GetPersistentRepoEndpoint()
Get the Persistent Repository Endpoint from the ServiceDiscovery.
Definition: serviceDiscovery.cpp:68
std::vector< std::string > ListComponents()
Get known components.
Definition: serviceDiscovery.cpp:43
ServiceEndpoint GetOldbEndpoint()
Get the Oldb Endpoint from the ServiceDiscovery.
Definition: serviceDiscovery.cpp:51
ServiceEndpoint GetReqRepEndpoint(const std::string &component_name="", const bool health_check=true)
Get the Request/Reply Endpoint of a component.
Definition: serviceDiscovery.cpp:78
ServiceEndpoint GetPubSubEndpoint(const std::string &component_name="", const bool health_check=true)
Get the PubSub Endpoint of a component.
Definition: serviceDiscovery.cpp:93
ServiceRegistryIf::ServiceEndpoint ServiceEndpoint
Definition: serviceDiscovery.hpp:35
ServiceEndpoint GetRuntimeRepoEndpoint()
Get the Runtime Repository Endpoint from the ServiceDiscovery.
Definition: serviceDiscovery.cpp:59
elt::mal::Uri ServiceEndpoint
Definition: serviceRegistryIf.hpp:43
Provides macros and utilities for exception handling.
Definition: commandReplier.cpp:22
Class that implements the service registry interface.