exiddis::master::AppHandler::AppHandler Class Reference

List of all members.

Public Member Functions

def __init__
def setLinks
def xmlrpc_getSequenceLocation

Public Attributes

 parent
 logger
 sequences
 workers


Detailed Description

Implement XML-RPC functions for handling requests from applications.

Member Function Documentation

def exiddis::master::AppHandler::AppHandler::__init__ (   self,
  parent 
)

Create new instance of AppHandler class.

Keyword parameters:
parent - reference to parent object (e.g. MasterServer class instance)

def exiddis::master::AppHandler::AppHandler::setLinks (   self  ) 

Set useful reference links (shortcuts) to other parts of Master server application.

def exiddis::master::AppHandler::AppHandler::xmlrpc_getSequenceLocation (   self,
  seqName,
  request = None 
)

Handle request for location of given sequence.

Keyword parameters:
seqName - name of the sequence to find

Return:
* map with 'code' value set to 'SEQUENCE_NOT_FOUND' code - if sequence with given name does not exist,
* map with 'code' value set to 'NO_WORKER' code - if no worker is attached to master server,
* map with 'code' value set to 'OK' code and 'host' and 'port' values set to proper worker's host and port respectively - otherwise.


The documentation for this class was generated from the following file:

Generated on Mon Oct 5 18:55:11 2009 for ExIdDis by  doxygen 1.5.8