Go to the documentation of this file.
12 #ifndef RTCTK_COMPONENTFRAMEWORK_SERVICEDISCOVERY_HPP
13 #define RTCTK_COMPONENTFRAMEWORK_SERVICEDISCOVERY_HPP
18 #include <mal/Cii.hpp>
46 explicit ServiceDiscovery(
const elt::mal::Uri& endpoint,
const std::string& comp_name =
"");
59 elt::mal::Uri
Get(
const std::string& service_name);
71 elt::mal::Uri
Get(
const std::string& service_name,
const std::string& comp_name);
74 DataPointPath CalcDatapointUri(
const std::string& comp_name,
const std::string& service_name);
76 const std::string& m_component_name;
77 std::unique_ptr<FileRepository> m_service_registry;
ServiceDiscovery(const elt::mal::Uri &endpoint, const std::string &comp_name="")
Create a new ServiceDiscovery object.
Definition: serviceDiscovery.cpp:32
elt::mal::Uri Get(const std::string &service_name, const std::string &comp_name)
Get endpoint of specific service.
Definition: commandReplier.cpp:20
static const DataPointPath RUNTIME_REPO_ENDPOINT
Definition: serviceDiscovery.hpp:36
static const DataPointPath PERSIST_REPO_ENDPOINT
Definition: serviceDiscovery.hpp:37
Class that implements a very basic service discovery mechanism.
Definition: serviceDiscovery.hpp:29
static const DataPointPath REQ_REP_ENDPOINT
There is a fixed set of supported service types.
Definition: serviceDiscovery.hpp:34
elt::mal::Uri Get(const std::string &service_name)
Get endpoint of specific service.
Header file for RepositoryIf and related base classes.
This class provides a wraper for DataPoint paths which ensures that they only contain valid character...
Definition: dataPointPath.hpp:34
static const DataPointPath PUB_SUB_ENDPOINT
Definition: serviceDiscovery.hpp:35
static const DataPointPath OLDB_ENDPOINT
Definition: serviceDiscovery.hpp:38