Package Ganga :: Package GPIDev :: Package Adapters :: Module IRuntimeHandler :: Class IRuntimeHandler
[hide private]
[frames] | no frames]

Class IRuntimeHandler

source code

Known Subclasses:

The RuntimeHandler is a connector between the application and the backend.

Application configure methods produce appconfig objects. Backend submit method consumes the jobconfig object. RuntimeHandler translates the appconfig objects into the jobconfig objects. The translation is a part of the job submission. It is implemented by the prepare methods.

Instance Methods [hide private]
 
master_prepare(self, app, appmasterconfig)
Prepare the shared/master aspect of the job submission.
source code
 
prepare(self, app, appsubconfig, appmasterconfig, jobmasterconfig)
Prepare the specific/subjob aspect of the job submission.
source code
Method Details [hide private]

master_prepare(self, app, appmasterconfig)

source code 

Prepare the shared/master aspect of the job submission. Called once per job (both split and not-split). If the preparation contains some expensive actions it may be factored out in this method.

Return value:

  • jobmasterconfig object understood by backend

Arguments:

  • app : original application object
  • appmaster config : result of app.master_configure()

prepare(self, app, appsubconfig, appmasterconfig, jobmasterconfig)

source code 

Prepare the specific/subjob aspect of the job submission. Called once per subjob if splitting enabled. If splitting disabled called exactly once (the master and specific aspect configured on the same job).

Return value:

  • subjobconfig list of objects understood by backends

Arguments:

  • app : original application object
  • appmaster config : result of app.master_configure()
  • appsubconfig : a list of results of app.configure() for each subjob (or a master job if no splitting)
  • jobmasterconfig : a result of self.master_prepare()