Package Biskit :: Package PVM :: Module ExampleMaster :: Class Master
[hide private]
[frames] | no frames]

Class Master

source code


Instance Methods [hide private]
  __init__(self, verbose=1, *args, **kw)
Parameters nedded by master and/or slave.
{param:value} getInitParameters(self, slave_tid)
Hand over parameters to slave once.
  cleanup(self)
Tidy up tasks.
  done(self)
Called when master is done.

Inherited from TrackingJobMaster.TrackingJobMaster: calculateResult, finish, getResult, getRst, hostnameFromTID, is_valid_slave, job_done, mark_slow_slaves, notifyAll, reportProgress, saveRst, setCallback, setRst, start_job

Inherited from dispatcher.JobMaster: bindMessages, get_slave_chunk, initializationDone, spawn, spawnAll, start

Inherited from PVMThread.PVMMasterSlave: exit, initialize, messageLoopIsUp, startMessageLoop

Inherited from PVMThread.PVMThread: bind, getBindings, getMessageLoopDelay, getParent, getPingTimeout, getTID, getTasks, isStopped, log, messageLoopIsStopped, nicknameFromTID, ping, post, post_execute_method, post_message_received, post_message_sent, rm_log, run, send, sendToAll, send_primitive, setMessageLoopDelay, setPingTimeout, stop, stopMessageLoop, unbind

Inherited from PVMThread.PVMThread (private): _ping

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, join, setDaemon, setName

Inherited from threading.Thread (private): _set_daemon

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__


Class Variables [hide private]
  slave_script = projectRoot()+ '/Biskit/PVM/ExampleSlave.py'

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, verbose=1, *args, **kw)
(Constructor)

source code 

Parameters nedded by master and/or slave.
Overrides: TrackingJobMaster.TrackingJobMaster.__init__

getInitParameters(self, slave_tid)

source code 

Hand over parameters to slave once.
Parameters:
  • slave_tid (int) - slave task id
Returns: {param:value}
dictionary with init parameters
Overrides: dispatcher.JobMaster.getInitParameters

cleanup(self)

source code 

Tidy up tasks.
Overrides: TrackingJobMaster.TrackingJobMaster.cleanup

done(self)

source code 

Called when master is done.
Overrides: TrackingJobMaster.TrackingJobMaster.done

Class Variable Details [hide private]

slave_script

Value:
projectRoot()+ '/Biskit/PVM/ExampleSlave.py'