|
RTC Toolkit 6.0.0
|
Implements the RtcDeploymentControl interface using Deployment Daemon as the backend. More...
Public Member Functions | |
| __init__ (self, parent, deployment_data, cfg) | |
| Constructs a RtcDeploymentControl interface object that integrates with Deployment Daemon. | |
| connect_facade (self, reconnect=False) | |
| Connects to the Deployment Daemon Facade if not already done. | |
| check_dd (self) | |
| Checking the connection to the Deployment Daemon. | |
| connection_changed (self, bool connected) | |
| Captures Deployment Daemon connection event. | |
| start_polling (self) | |
| Starts polling from the DeploymentDaemon Interface. | |
| stop_polling (self) | |
| Stops polling from the DeploymentDaemon Interface. | |
Public Attributes | |
| check_dd | |
Static Public Attributes | |
| components = Property(list, _components, notify=RtcDeploymentControl.components_changed) | |
| active_components_changed = Signal(list) | |
| active_components = Property(list, _active_components, notify=active_components_changed) | |
| deployment_sets | |
| get_components_failed = Signal((str,), (str, object)) | |
Protected Member Functions | |
| list | _components (self) |
| Accessor method for component property. | |
| list | _active_components (self) |
| Accessor method for active component property. | |
| list | _deployment_sets (self) |
| Accessor method for deployment sets property. | |
| _exec_start_component (self, str component_name, Any tag) | |
| Delegate to Deployment Daemon facade to start a component. | |
| _exec_stop_component (self, str component_name, Any tag) | |
| Delegate to Deployment Daemon facade to stop a component. | |
| _exec_deploy (self, str deployment_set, Any tag) | |
| Delegate to Deployment Daemon facade to deploy a deployment set. | |
| _exec_undeploy (self, Any tag) | |
| Delegate to Deployment Daemon facade to undeploy current deployment set. | |
| _exec_get_active_deployment (self, Any tag) | |
| Delegate to Deployment Daemon facade to get name of active deployment. | |
| _exec_get_active_components (self, Any tag) | |
| Delegate to Deployment Daemon facade to get active components of current deployment. | |
| _exec_get_components (self, Any tag) | |
| Delegate to Deployment Daemon facade to get components of current deployment. | |
| _exec_get_deployment_sets (self, Any tag) | |
| Delegate to Deployment Daemon facade to get deployment sets of current deployment. | |
| _exec_get_state (self) | |
| Delegate to Deployment Daemon facade to get Deployment Daemon state. | |
Protected Attributes | |
| _cfg = cfg | |
| _deployment_data = deployment_data | |
| _dd_facade = None | |
| str | _active_deployment = None |
| list | _components_list = [] |
| list | _active_components_list = [] |
| list | _deployment_sets_list = [] |
| _poll_deployment_timer = QTimer() | |
Implements the RtcDeploymentControl interface using Deployment Daemon as the backend.
The command signals are effectively translated to invocations of the "Deployment Daemon". These are executed in the background using subprocess and a Qt timer periodically triggers a handler routine to monitor the "Deployment Daemon" invocations for completion. Once completed, the appropriate success or failure signal is sent depending on the exit code of the "nomad" command.
| comms.deploymentcontroldeploymentdaemonimpl.RtcDeploymentControlDeploymentDaemonImpl.__init__ | ( | self, | |
| parent, | |||
| deployment_data, | |||
| cfg ) |
Constructs a RtcDeploymentControl interface object that integrates with Deployment Daemon.
The deployment_data provides access to deployment information such as the deployment daemon, component list, etc.
Various timeout values are provided in the cfg object. The timeouts specify the maximum number of seconds to wait for the commands to complete. If the timeout is exceeded then the corresponding failure signal is emitted.
| parent | Optional Qt parent object. |
| deployment_data | Optional deployment data object (Service Discovery). |
| cfg | Configuration object containing various timeout parameters. |
|
protected |
Accessor method for active component property.
return type of : list[dict]
|
protected |
Accessor method for component property.
return type of : list[dict]
|
protected |
Accessor method for deployment sets property.
return type of : list[dict]
|
protected |
Delegate to Deployment Daemon facade to deploy a deployment set.
| deployment_set | The deployment set to be deployed. |
| tag | An optional user provided tag that uniquely identifies the request. |
|
protected |
Delegate to Deployment Daemon facade to get active components of current deployment.
| tag | An optional user provided tag that uniquely identifies the request. |
|
protected |
Delegate to Deployment Daemon facade to get name of active deployment.
| tag | An optional user provided tag that uniquely identifies the request. |
|
protected |
Delegate to Deployment Daemon facade to get components of current deployment.
| tag | An optional user provided tag that uniquely identifies the request. |
|
protected |
Delegate to Deployment Daemon facade to get deployment sets of current deployment.
| tag | An optional user provided tag that uniquely identifies the request. |
|
protected |
Delegate to Deployment Daemon facade to get Deployment Daemon state.
The main usage of this method is to track deployment process so that the UI stays synchronized with it
|
protected |
Delegate to Deployment Daemon facade to start a component.
| component_name | The component name needs to be in the deployment set. |
| tag | An optional user provided tag that uniquely identifies the request. |
|
protected |
Delegate to Deployment Daemon facade to stop a component.
| component_name | The component name needs to be in the deployment set. |
| tag | An optional user provided tag that uniquely identifies the request. |
|
protected |
Delegate to Deployment Daemon facade to undeploy current deployment set.
| tag | An optional user provided tag that uniquely identifies the request. |
| comms.deploymentcontroldeploymentdaemonimpl.RtcDeploymentControlDeploymentDaemonImpl.check_dd | ( | self | ) |
Checking the connection to the Deployment Daemon.
| comms.deploymentcontroldeploymentdaemonimpl.RtcDeploymentControlDeploymentDaemonImpl.connect_facade | ( | self, | |
| reconnect = False ) |
Connects to the Deployment Daemon Facade if not already done.
| reconnect | Force to re-connect if True. |
| comms.deploymentcontroldeploymentdaemonimpl.RtcDeploymentControlDeploymentDaemonImpl.connection_changed | ( | self, | |
| bool | connected ) |
Captures Deployment Daemon connection event.
| connected | Boolean that indicates the new state of connection. |
| comms.deploymentcontroldeploymentdaemonimpl.RtcDeploymentControlDeploymentDaemonImpl.start_polling | ( | self | ) |
Starts polling from the DeploymentDaemon Interface.
| comms.deploymentcontroldeploymentdaemonimpl.RtcDeploymentControlDeploymentDaemonImpl.stop_polling | ( | self | ) |
Stops polling from the DeploymentDaemon Interface.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
| comms.deploymentcontroldeploymentdaemonimpl.RtcDeploymentControlDeploymentDaemonImpl.check_dd |
|
static |
|
static |
|
static |