Home | Trees | Indices | Help |
---|
|
object --+ | GPIProxyObject --+ | Adapters.IApplication.IApplication._proxyClass
Base class for all application objects. Derived classes represent logical applications in the GPI and implement configuration handler functionality. The application configuration is the first phase of job submission. General rules for implementing the configure methods: In general the configure() and master_configure() methods are called always in the context of job submission, so in principle you may navigate to the associated job object (including backend information). However it is not advised to use backend or extra sandbox information at this point. Code which depends on the backend should be put in application-specific runtime handler which is the next step of job submission. The input/output dataset information may be used if neccessary. Objects in the job object tree should not be modified. Efficient implementation of splitting: If you want to enable the typical case of splitting based on the dataset (defined at the job level) then it is very simple: configure() should only process the inputdata part of the job configuration and master_configure() should do the rest. In that case the splitter should not mutate the application object in the subjobs, because such changes will not be taken into account (and framework will have inconsistent behaviour). You may also take an extreme approach and move the entire application configuration to configure(). Arbitrary modifications of the application object in the subjobs which are done by the splitter will take effect. But if the application configuration process is time consuming it will be repeated a number of times which is inneficient. Otherwise you should first identify which parts of the application object may be altered by the splitter and process them in configure() method. The master_configure() should perform only the time-consuming part of the configuration which is shared among the subjobs. This means that splitter should not try to modify the application parameters which are used in the common master_configure(). Properties:
|
|||
_impl This is a Ganga.GPI.IApplication implementation class. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
GPI IApplication object constructor: IApplication() : create iapplication with default settings; IApplication(i) : make a copy of i; IApplication(i,x=a,...): make a copy of i and set property 'x' to a, etc..
|
Return an short representation of IApplication object.
|
Set a property of IApplication with consistency and safety checks. Setting a [protected] or a unexisting property raises AttributeError.
|
Return a printable string representing IApplication object as a tree of properties.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Jun 25 10:35:18 2012 | http://epydoc.sourceforge.net |