A master process in a program is implemented by subclassing this class
and overriding the method "run", which calls the methods
"requestTask" and "retrieveResult". The process is
then launched by calling the method "start".
|
__init__(self,
label,
use_name_server=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
|
deleteGlobalState(self,
state_id) |
|
|
|
launchSlaveJobs(self,
n=1)
Launch n slave jobs on the machine that also runs the master job. |
|
|
str
|
requestTask(self,
tag,
*parameters)
Launches a task request. |
|
|
tuple
|
retrieveResult(self,
tag=None)
Returns:
a tuple containing three values: the task id to which the result
corresponds, the tag of the computational task, and the result
returned by the slave method that handled the task |
|
|
|
run(self)
The main routine of the master process. |
|
|
|
setGlobalState(self,
**kw) |
|
|
|
|
|
start(self)
Starts the master process. |
|
|
|
taskManagerThread(self)
This method represents the code that is executed in a background
thread for remote access to the task manager. |
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|