RTC Toolkit 4.0.1
|
This class provides methods to invoke deployment daemon commands. More...
Public Member Functions | |
def | set_name (self, name) |
Sets the name of the deployment daemon that we want to talk with. | |
def | set_timeouts (self, time_out) |
Sets the timeouts for both request and reply for the command invocation. | |
def | set_service_discovery_uri (self, service_discovery_uri) |
Sets the service discovery URI (endpoint). | |
def | deploy (self, deployment_set) |
Invokes 'Deploy' command of the deployment daemon. | |
def | undeploy (self) |
Invokes 'Undeploy' command of the deployment daemon. | |
def | get_active_deployment (self) |
Invokes 'GetActiveDeployment' command of the deployment daemon. | |
def | get_description (self) |
Invokes 'GetDescription' command of the deployment daemon. | |
def | get_deployment_sets (self) |
Invokes 'GetDeploymentSets' command of the deployment daemon. | |
def | get_components (self) |
Invokes 'GetComponents' command of the deployment daemon. | |
def | get_active_components (self) |
Invokes 'GetActiveComponents' command of the deployment daemon. | |
def | start_component (self, component_name) |
Invokes 'StartComponent' command of the deployment daemon. | |
def | stop_component (self, component_name) |
Invokes 'StopComponent' command of the deployment daemon. | |
def | get_state (self) |
Invokes 'GetState' command of the deployment daemon. | |
def | reset (self) |
Invokes 'Reset' command of the deployment daemon. | |
def | exit (self) |
Invokes 'Exit' command of the deployment daemon. | |
def | set_log_level (self, log_info) |
Invokes 'SetLogLevel' command of the deployment daemon. | |
Public Attributes | |
dd_name | |
conn_to | |
reply_to | |
service_discovery_uri | |
request_reply_str | |
Static Public Attributes | |
str | dd_name = "deployment_daemon" |
str | cmd_namespace = "::rtctkif::DeploymentCmds::" |
str | request_reply_str = "" |
datetime | conn_to = datetime.timedelta(seconds=20) |
datetime | reply_to = datetime.timedelta(seconds=20) |
MsgSend | sender = MsgSend([]) |
Protected Member Functions | |
def | _get_service_discovery (self) |
Retrieves from the service discovery the daemon endpoint. | |
This class provides methods to invoke deployment daemon commands.
It is important to invoke get_endpoint method before any other deployment daemon command.
|
protected |
Retrieves from the service discovery the daemon endpoint.
def client.DeploymentDaemonClient.deploy | ( | self, | |
deployment_set | |||
) |
Invokes 'Deploy' command of the deployment daemon.
def client.DeploymentDaemonClient.exit | ( | self | ) |
Invokes 'Exit' command of the deployment daemon.
def client.DeploymentDaemonClient.get_active_components | ( | self | ) |
Invokes 'GetActiveComponents' command of the deployment daemon.
def client.DeploymentDaemonClient.get_active_deployment | ( | self | ) |
Invokes 'GetActiveDeployment' command of the deployment daemon.
def client.DeploymentDaemonClient.get_components | ( | self | ) |
Invokes 'GetComponents' command of the deployment daemon.
def client.DeploymentDaemonClient.get_deployment_sets | ( | self | ) |
Invokes 'GetDeploymentSets' command of the deployment daemon.
def client.DeploymentDaemonClient.get_description | ( | self | ) |
Invokes 'GetDescription' command of the deployment daemon.
def client.DeploymentDaemonClient.get_state | ( | self | ) |
Invokes 'GetState' command of the deployment daemon.
def client.DeploymentDaemonClient.reset | ( | self | ) |
Invokes 'Reset' command of the deployment daemon.
def client.DeploymentDaemonClient.set_log_level | ( | self, | |
log_info | |||
) |
Invokes 'SetLogLevel' command of the deployment daemon.
def client.DeploymentDaemonClient.set_name | ( | self, | |
name | |||
) |
Sets the name of the deployment daemon that we want to talk with.
If name is not provided is taken default name: 'deployment_daemon'
def client.DeploymentDaemonClient.set_service_discovery_uri | ( | self, | |
service_discovery_uri | |||
) |
Sets the service discovery URI (endpoint).
def client.DeploymentDaemonClient.set_timeouts | ( | self, | |
time_out | |||
) |
Sets the timeouts for both request and reply for the command invocation.
Default is 20s
def client.DeploymentDaemonClient.start_component | ( | self, | |
component_name | |||
) |
Invokes 'StartComponent' command of the deployment daemon.
def client.DeploymentDaemonClient.stop_component | ( | self, | |
component_name | |||
) |
Invokes 'StopComponent' command of the deployment daemon.
def client.DeploymentDaemonClient.undeploy | ( | self | ) |
Invokes 'Undeploy' command of the deployment daemon.
|
static |
|
static |
client.DeploymentDaemonClient.conn_to |
|
static |
client.DeploymentDaemonClient.dd_name |
|
static |
client.DeploymentDaemonClient.reply_to |
|
static |
client.DeploymentDaemonClient.request_reply_str |
|
static |
client.DeploymentDaemonClient.service_discovery_uri |