Class that implements a very basic service discovery mechanism using a file.
More...
#include <rtctk/componentFramework/fileServiceRegistryAdapter.hpp>
|
| static const std::string | SUPPORTED_URI_SCHEME = "file" |
| |
| static const std::string | REQ_REP_ENDPOINT = "req_rep_endpoint" |
| | the string used to identify the Request/Reply endpoint of a service when using the Get function.
|
| |
| static const std::string | PUB_SUB_ENDPOINT = "pub_sub_endpoint" |
| | the string used to identify the PubSub endpoint of a service when using the Get function.
|
| |
| static const std::string | COMPONENT_TYPE = "rtctk_component" |
| | the string for component type (default)
|
| |
Class that implements a very basic service discovery mechanism using a file.
- Deprecated
- This functionality is deprecate and can be removed in future version, so please do not use it.
◆ FileServiceRegistryAdapter()
| rtctk::componentFramework::FileServiceRegistryAdapter::FileServiceRegistryAdapter |
( |
const elt::mal::Uri & | endpoint | ) |
|
◆ Get()
| FileServiceRegistryAdapter::ServiceEndpoint rtctk::componentFramework::FileServiceRegistryAdapter::Get |
( |
const std::string & | comp_name, |
|
|
const std::string & | service_name, |
|
|
const std::string & | service_type, |
|
|
const bool | health_check ) |
|
overridevirtual |
Get endpoint of specific service of a specific component.
- Parameters
-
| comp_name | name of the (component) instance |
| service_name | name of the service, Must be one of the REQ_REP_ENDPOINT or PUB_SUB_ENDPOINT contants defined in ServiceRegistryIf |
| service_type | type of service e.g. rtctk_component |
| health_check | if should be checked for the health of component before returning a valid endpoint |
- Returns
- ServiceEndpoint
- Exceptions
-
Implements rtctk::componentFramework::ServiceRegistryIf.
◆ GetOldbEndpoint()
◆ GetPersistentRepoEndpoint()
◆ GetRuntimeRepoEndpoint()
◆ GetTelegrafEndpoint()
◆ ListComponents()
| std::vector< std::string > rtctk::componentFramework::FileServiceRegistryAdapter::ListComponents |
( |
const std::string & | service_type = COMPONENT_TYPE | ) |
|
|
overridevirtual |
Get known components.
Use this method to retrieve all components known to the service registry
- Parameters
-
| service_type | type of service e.g. rtctk_component |
- Returns
- vector of pairs containing the component names
Implements rtctk::componentFramework::ServiceRegistryIf.
◆ SUPPORTED_URI_SCHEME
| const std::string rtctk::componentFramework::FileServiceRegistryAdapter::SUPPORTED_URI_SCHEME = "file" |
|
inlinestatic |
The documentation for this class was generated from the following files: