Go to the documentation of this file.
12 #ifndef RTCTK_COMPONENTFRAMEWORK_SERVICEDISCOVERY_HPP
13 #define RTCTK_COMPONENTFRAMEWORK_SERVICEDISCOVERY_HPP
19 #include <mal/Cii.hpp>
39 explicit ServiceDiscovery(std::unique_ptr<ServiceRegistryIf>&& adapter,
const std::string& comp_name =
"");
47 explicit ServiceDiscovery(
const elt::mal::Uri& registry,
const std::string& comp_name =
"");
88 std::unique_ptr<ServiceRegistryIf> m_adapter;
92 const std::string m_component_name;
97 #endif // RTCTK_COMPONENTFRAMEWORK_SERVICEDISCOVERY_HPP
ServiceEndpoint GetRuntimeRepoEndpoint()
Get the Runtime Repository Endpoint from the ServiceDiscovery.
Definition: serviceDiscovery.cpp:35
Provides macros and utilities for exception handling.
std::vector< std::string > ListComponents()
Get known components.
Definition: serviceDiscovery.cpp:27
ServiceDiscovery(std::unique_ptr< ServiceRegistryIf > &&adapter, const std::string &comp_name="")
Create a new ServiceDiscovery object.
Definition: serviceDiscovery.cpp:17
ServiceEndpoint GetPubSubEndpoint(const std::string &component_name="")
Get the PubSub Endpoint of a component.
Definition: serviceDiscovery.cpp:51
Definition: commandReplier.cpp:20
elt::mal::Uri ServiceEndpoint
Definition: serviceRegistryIf.hpp:30
Class that implements a very basic service discovery mechanism.
Definition: serviceDiscovery.hpp:29
Class that implements a very basic service discover mechanism.
ServiceRegistryIf::ServiceEndpoint ServiceEndpoint
Definition: serviceDiscovery.hpp:31
ServiceEndpoint GetOldbEndpoint()
Get the Oldb Endpoint from the ServiceDiscovery.
Definition: serviceDiscovery.cpp:31
ServiceEndpoint GetPersistentRepoEndpoint()
Get the Persistent Repository Endpoint from the ServiceDiscovery.
Definition: serviceDiscovery.cpp:39
ServiceEndpoint GetReqRepEndpoint(const std::string &component_name="")
Get the Request/Reply Endpoint of a component.
Definition: serviceDiscovery.cpp:43