Package bioMoby :: Package webservice :: Module Dispatcher :: Class Dispatcher
[show private | hide private]
[frames | no frames]

Class Dispatcher

AbstractDispatcher --+
                     |
                    Dispatcher


All Queries in the MobyContent Object are splitted and executed
Method Summary
  __init__(self, mobyContentXML, Invocator, CommandBuilder, formatter, workdir)
The Object needs a MobyContent XML string an Invocator Class and a commandBuilder function The commandBuilder function shall return a command, arguments, and a set of temporary files [queryData]-->("commandName","commandArgs", ["tempfiles"])
  execute(self, timeout)
Execute the queries with a pool of threads, store the results in a mobyContent Object
  _execute(self, queryKey)
Execute a single query, store the result in the answers attribute
  _fetchAnswers(self)
Fetch answers if they exists
  _getSem(self)

Method Details

__init__(self, mobyContentXML, Invocator, CommandBuilder, formatter=None, workdir='/tmp')
(Constructor)

The Object needs a MobyContent XML string an Invocator Class and a commandBuilder function The commandBuilder function shall return a command, arguments, and a set of temporary files [queryData]-->("commandName","commandArgs", ["tempfiles"])
Overrides:
bioMoby.webservice.Dispatcher.AbstractDispatcher.__init__

execute(self, timeout=120)

Execute the queries with a pool of threads, store the results in a mobyContent Object
Overrides:
bioMoby.webservice.Dispatcher.AbstractDispatcher.execute

_execute(self, queryKey)

Execute a single query, store the result in the answers attribute

_fetchAnswers(self)

Fetch answers if they exists

Generated by Epydoc 2.1 on Wed Nov 3 17:06:09 2004 http://epydoc.sf.net