Package g4ds :: Module runtimecontroller :: Class JobDispatcher
[show private | hide private]
[frames | no frames]

Class JobDispatcher


Handles a list of jobs and locks as well as resumes there processing.
Method Summary
  __init__(self)
Local dictionary for jobs is initialised.
  addJob(self, id, job, locknow)
Adds a job to the local dictionary.
  getMessage(self, id, deleteMessage)
Gets a message from the queue for this paticular message id.
  resumeJob(self, id, message, args, deleteFromDictionary)
Unlocks the Thread; the calling function should resume.

Method Details

__init__(self)
(Constructor)

Local dictionary for jobs is initialised.

addJob(self, id, job, locknow=1)

Adds a job to the local dictionary.

Any job added here is delayed until an incoming message for this job is received.

getMessage(self, id, deleteMessage=1)

Gets a message from the queue for this paticular message id.

resumeJob(self, id, message=None, args=None, deleteFromDictionary=1)

Unlocks the Thread; the calling function should resume.

Generated by Epydoc 2.0 on Sat Oct 22 22:52:47 2005 http://epydoc.sf.net