Package node_manager_fkie :: Module launch_server_handler :: Class LaunchServerHandler
[frames] | no frames]

Class LaunchServerHandler

source code

python_qt_binding.QtCore.QObject --+
                                   |
                                  LaunchServerHandler

A class to retrieve the state of launch servers. To retrieve the state a new thread will be created.

Instance Methods
 
__init__(self) source code
 
stop(self) source code
 
updateLaunchServerInfo(self, serveruri, delayed_exec=0.0)
This method starts a thread to get the informations about the launch server by the given RCP uri of the launch server.
source code
Instance Variables
  launch_server_signal = Signal(str, int, list)
launch_server_signal is a signal (serveruri, pid, nodes), which is emitted, if a info from launch server was successful retrieved.
  error_signal = Signal(str, str)
error_signal is a signal (serveruri, error message), which is emitted, if an error while retrieving a launch server info was occurred.
Method Details

updateLaunchServerInfo(self, serveruri, delayed_exec=0.0)

source code 

This method starts a thread to get the informations about the launch server by the given RCP uri of the launch server. If all informations are retrieved, a launch_server_signal of this class will be emitted. If for given serveruri a thread is already running, it will be inserted to the requested updates. For the same serveruri only one requested update can be stored. On update error the requested update will be ignored. This method is thread safe.

Parameters:
  • serveruri (str) - the URI of the remote launch server
  • delayed_exec (float) - Delay the execution of the request for given seconds.