13#ifndef RTCTK_COMPONENTFRAMEWORK_SERVICEREGISTRYIF_HPP
14#define RTCTK_COMPONENTFRAMEWORK_SERVICEREGISTRYIF_HPP
67 const std::string&
reason);
91 virtual std::vector<std::string>
145 static std::unique_ptr<ServiceRegistryIf>
CreateAdapter(
const elt::mal::Uri&
uri);
The RtctkException class is the base class for all Rtctk exceptions.
Definition exceptions.hpp:211
Definition serviceRegistryIf.hpp:74
ConsulUnavailable(const std::string &message, const std::string &service)
Definition serviceRegistryIf.cpp:58
Definition serviceRegistryIf.hpp:62
InvalidComponent(const std::string &component, const std::string &service)
Definition serviceRegistryIf.cpp:33
Definition serviceRegistryIf.hpp:69
InvalidService(const std::string &service)
Definition serviceRegistryIf.cpp:49
Class that implements a service registry to be used by the service discovery.
Definition serviceRegistryIf.hpp:31
virtual ServiceEndpoint GetOldbEndpoint()=0
Get the Oldb Endpoint from the service registry.
static const std::string REQ_REP_ENDPOINT
the string used to identify the Request/Reply endpoint of a service when using the Get function.
Definition serviceRegistryIf.hpp:49
elt::mal::Uri AdapterIdType
The type used to distinguish between different adapters implementing ServiceRegistryIf.
Definition serviceRegistryIf.hpp:41
virtual ServiceEndpoint Get(const std::string &comp_name, const std::string &service_name, const std::string &service_type=COMPONENT_TYPE, const bool health_check=true)=0
Get endpoint of specific service of a specific component.
virtual std::vector< std::string > ListComponents(const std::string &service_type=COMPONENT_TYPE)=0
Get known components.
static const std::string COMPONENT_TYPE
the string for component type (default)
Definition serviceRegistryIf.hpp:60
virtual ServiceEndpoint GetRuntimeRepoEndpoint()=0
Get the Runtime Repository Endpoint from the service registry.
static const std::string PUB_SUB_ENDPOINT
the string used to identify the PubSub endpoint of a service when using the Get function.
Definition serviceRegistryIf.hpp:54
virtual ~ServiceRegistryIf()=default
virtual destructor
virtual ServiceEndpoint GetPersistentRepoEndpoint()=0
Get the Persistent Repository Endpoint from the service registry.
elt::mal::Uri ServiceEndpoint
Definition serviceRegistryIf.hpp:43
static std::unique_ptr< ServiceRegistryIf > CreateAdapter(const elt::mal::Uri &uri)
Factory method used to create the appropriate service registry adapter depending on the URI scheme.
Definition serviceRegistryIf.cpp:64
Provides macros and utilities for exception handling.
Definition commandReplier.cpp:22
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23