RTC Toolkit 6.0.0-pre2
Loading...
Searching...
No Matches
fileServiceRegistryAdapter.hpp
Go to the documentation of this file.
1
12
13#ifndef RTCTK_COMPONENTFRAMEWORK_SERVICEDISCOVERYFILEADAPTER_HPP
14#define RTCTK_COMPONENTFRAMEWORK_SERVICEDISCOVERYFILEADAPTER_HPP
15
16#include <memory>
17#include <string>
18
19#include <config-ng/ciiConfigApi.hpp>
20#include <mal/Cii.hpp>
21
23
25
35public:
36 inline static const std::string SUPPORTED_URI_SCHEME = "file";
37
38 FileServiceRegistryAdapter(const elt::mal::Uri& endpoint);
39 std::vector<std::string>
40 ListComponents(const std::string& service_type = COMPONENT_TYPE) override;
41 ServiceEndpoint Get(const std::string& comp_name,
42 const std::string& service_name,
43 const std::string& service_type,
44 const bool health_check) override;
49
50private:
51 static const std::string RUNTIME_REPO_ENDPOINT;
52 static const std::string PERSISTENT_REPO_ENDPOINT;
53 static const std::string OLDB_ENDPOINT;
54 static const std::string TELEGRAF_ENDPOINT;
55 elt::mal::Uri sde;
56 elt::configng::CiiConfigDocument m_document;
57};
58
59} // namespace rtctk::componentFramework
60
61#endif // RTCTK_COMPONENTFRAMEWORK_SERVICEDISCOVERYFILEADAPTER_HPP
std::vector< std::string > ListComponents(const std::string &service_type=COMPONENT_TYPE) override
Get known components.
Definition fileServiceRegistryAdapter.cpp:80
ServiceEndpoint GetOldbEndpoint() override
Get the Oldb Endpoint from the service registry.
Definition fileServiceRegistryAdapter.cpp:92
static const std::string SUPPORTED_URI_SCHEME
Definition fileServiceRegistryAdapter.hpp:36
FileServiceRegistryAdapter(const elt::mal::Uri &endpoint)
Definition fileServiceRegistryAdapter.cpp:36
ServiceEndpoint GetPersistentRepoEndpoint() override
Get the Persistent Repository Endpoint from the service registry.
Definition fileServiceRegistryAdapter.cpp:101
ServiceEndpoint GetRuntimeRepoEndpoint() override
Get the Runtime Repository Endpoint from the service registry.
Definition fileServiceRegistryAdapter.cpp:96
ServiceEndpoint Get(const std::string &comp_name, const std::string &service_name, const std::string &service_type, const bool health_check) override
Get endpoint of specific service of a specific component.
Definition fileServiceRegistryAdapter.cpp:47
ServiceEndpoint GetTelegrafEndpoint() override
Get the Telegraf Endpoint from the service registry.
Definition fileServiceRegistryAdapter.cpp:105
Class that implements a service registry to be used by the service discovery.
Definition serviceRegistryIf.hpp:31
static const std::string COMPONENT_TYPE
the string for component type (default)
Definition serviceRegistryIf.hpp:60
elt::mal::Uri ServiceEndpoint
Definition serviceRegistryIf.hpp:43
Definition commandReplier.cpp:22
Class that implements the service registry interface.