Implementation of :class:RtcDeploymentData using :class:rtctk.framekwork.ServiceDiscovery.
More...
|
| list | _components (self) |
| | Accessor method for component property.
|
| |
| | _inject_test_sd (self, object test_sd) |
| | Injects a custom object that mocks ServiceDiscovery.
|
| |
Implementation of :class:RtcDeploymentData using :class:rtctk.framekwork.ServiceDiscovery.
◆ __init__()
| comms.deployment.RtcDeploymentDataServiceImpl.__init__ |
( |
| self, |
|
|
| cfg, |
|
|
| parent = None ) |
Creates new RtcDeploymentDataServiceImpl object using the ServiceDiscovery class.
- Parameters
-
| [in] | cfg | Configuration object holding the service_discovery_endpoint parameter. |
| [in] | parent | Optional parent Qt object. |
:raises RtctkException: When URI scheme in the service_disc is not "file"
◆ _components()
| list comms.deployment.RtcDeploymentDataServiceImpl._components |
( |
| self | ) |
|
|
protected |
Accessor method for component property.
Implements the accessor method declared in the :class:RtcDeploymentData class.
- Returns
- s List of names of components available in the deployment
return type of : list[dict]
Reimplemented from comms.deployment.RtcDeploymentData.
◆ _inject_test_sd()
| comms.deployment.RtcDeploymentDataServiceImpl._inject_test_sd |
( |
| self, |
|
|
object | test_sd ) |
|
protected |
Injects a custom object that mocks ServiceDiscovery.
◆ get_deployment_damon()
| comms.deployment.RtcDeploymentDataServiceImpl.get_deployment_damon |
( |
| self | ) |
|
◆ get_deployment_damon_name()
| comms.deployment.RtcDeploymentDataServiceImpl.get_deployment_damon_name |
( |
| self | ) |
|
◆ retrieve_components()
| comms.deployment.RtcDeploymentDataServiceImpl.retrieve_components |
( |
| self, |
|
|
Optional[Any] | tag = None ) |
Retrieves from Service Discovery the component endpoints and emits components_changed.
Uses the RTC Toolkit's ServiceDiscovery class to parse the services and components information from its source.
It fires the components_changed signal with that carries a list of Dictionaries. Each dictionary has information of one RTC component on the fields "name", "oldb_path", "rr_path", "ps path".
- Parameters
-
| [in] | tag | Optional user object to uniquely identify this call. The tag is returned in the arguments of the components_changed signal. |
Reimplemented from comms.deployment.RtcDeploymentData.
◆ retrieve_deployment_daemon()
| comms.deployment.RtcDeploymentDataServiceImpl.retrieve_deployment_daemon |
( |
| self | ) |
|
Retrieves from service discovery Deployment Daemon URI, and returns it.
◆ _comp_oldb_map
| dict comms.deployment.RtcDeploymentDataServiceImpl._comp_oldb_map = {} |
|
protected |
◆ _comp_ps_map
| dict comms.deployment.RtcDeploymentDataServiceImpl._comp_ps_map = {} |
|
protected |
◆ _comp_rr_map
| dict comms.deployment.RtcDeploymentDataServiceImpl._comp_rr_map = {} |
|
protected |
◆ _components_list
| list comms.deployment.RtcDeploymentDataServiceImpl._components_list = [] |
|
protected |
◆ _data_loaded
| comms.deployment.RtcDeploymentDataServiceImpl._data_loaded = None |
|
protected |
◆ _deployment_daemon
| dict comms.deployment.RtcDeploymentDataServiceImpl._deployment_daemon = {} |
|
protected |
◆ _deployment_daemon_failure
| bool comms.deployment.RtcDeploymentDataServiceImpl._deployment_daemon_failure = False |
|
protected |
◆ _deployment_daemon_name
| comms.deployment.RtcDeploymentDataServiceImpl._deployment_daemon_name = cfg.deployment_daemon_name |
|
protected |
◆ _sd
| comms.deployment.RtcDeploymentDataServiceImpl._sd = None |
|
protected |
◆ _service_disc_uri
| comms.deployment.RtcDeploymentDataServiceImpl._service_disc_uri = cfg.service_discovery_endpoint |
|
protected |
The documentation for this class was generated from the following file: