| java.lang.Object org.griphyn.cPlanner.code.generator.Abstract org.griphyn.cPlanner.code.generator.GRMS
GRMS | public class GRMS extends Abstract (Code) | | This generates the submit files in the xml format that can be used to submit
the workflow to a GRMS server.
author: Karan Vahi version: $Revision: 410 $ |
Field Summary | |
final public static String | SCHEMA The workflow schema to which this writer conforms. | final public static String | SCHEMA_LOCATION The "not-so-official" location URL of the GRMS workflow schema definition. | final public static String | SCHEMA_NAMESPACE The "official" namespace URI of the GRMS workflow schema. | final public static String | SCHEMA_VERSION The version to report. | final public static String | STDOUT_PREFIX The prefix that needs to be added to the stdout to make GRMS aware of
a kickstart output. |
Constructor Summary | |
public | GRMS() The default constructor. |
Method Summary | |
protected String | argumentsToXML(SubInfo job) This method returns the xml description of the arguments that are passed
to the transformation that is being invoked.
Parameters: job - the job description. | protected String | envToXML(ENV env) This method returns the xml description of the environment variables
associated with the job.
Parameters: env - the EnvNS object that contains the environmentvariables for the job. | protected String | executableToXML(SubInfo job) This method returns the xml description for the executable that is to be
executed, that includes the arguments with which it is to be invoked,
the path to the executable and location of it's stdout , stdin and stderr.
Parameters: job - the GRMS job. | protected String | executableToXML(String path, String args, String stdin, String stdout, String stderr) This method returns the xml description for the executable that is to be
executed, that includes the arguments with which it is to be invoked,
the path to the executable and location of it's stdout , stdin and stderr.
Parameters: path - the path to the executable. Parameters: args - the arguments to the executable. Parameters: stdin - the url for the stdin of the job. Parameters: stdout - the url for the stdin of the job. Parameters: stderr - the url for the stdin of the job. | public void | generateCode(ADag dag) Generates the code for the concrete workflow in the GRMS input format.
The GRMS input format is xml based. | public void | generateCode(ADag dag, SubInfo job) Generates the code for a single job in the input format of the workflow
executor being used. | public void | initialize(PegasusBag bag) Initializes the Code Generator implementation. | protected String | jobToXML(ADag dag, SubInfo job) It returns the corresponding xml description for a particular job.
Parameters: dag - the dag of which the job is a part of. Parameters: job - object containing job info. | protected String | relationsToXML(ADag dag, SubInfo job) This method returns the xml description of the relations between the jobs.
It refers to the associated ADag object with this class to get hold of the
parents to the job.
Parameters: dag - the dag of which the job is a part of. Parameters: job - the SubInfo object containing the job description. | protected String | stdErrToXML(String url) This method returins the xml description for specifying the stdout.
Parameters: url - the url to the stdout file. | protected String | stdInToXML(String url) This method returns the xml description for specifying the stdout.
Parameters: url - the url to the stdout file. | protected String | stdOutToXML(String url) This method returns the xml description for specifying the stdout.
Parameters: url - the url to the stdout file. | protected String | urlToXML(String lfn, String url, char type) This method returns the xml description of the url. |
SCHEMA | final public static String SCHEMA(Code) | | The workflow schema to which this writer conforms.
|
SCHEMA_LOCATION | final public static String SCHEMA_LOCATION(Code) | | The "not-so-official" location URL of the GRMS workflow schema definition.
|
SCHEMA_NAMESPACE | final public static String SCHEMA_NAMESPACE(Code) | | The "official" namespace URI of the GRMS workflow schema.
|
SCHEMA_VERSION | final public static String SCHEMA_VERSION(Code) | | The version to report.
|
STDOUT_PREFIX | final public static String STDOUT_PREFIX(Code) | | The prefix that needs to be added to the stdout to make GRMS aware of
a kickstart output.
|
GRMS | public GRMS()(Code) | | The default constructor.
|
argumentsToXML | protected String argumentsToXML(SubInfo job)(Code) | | This method returns the xml description of the arguments that are passed
to the transformation that is being invoked.
Parameters: job - the job description. the xml description of the arguments. |
envToXML | protected String envToXML(ENV env)(Code) | | This method returns the xml description of the environment variables
associated with the job.
Parameters: env - the EnvNS object that contains the environmentvariables for the job. the xml element if there are any environment variableselse an empty string. |
executableToXML | protected String executableToXML(SubInfo job)(Code) | | This method returns the xml description for the executable that is to be
executed, that includes the arguments with which it is to be invoked,
the path to the executable and location of it's stdout , stdin and stderr.
Parameters: job - the GRMS job. String |
executableToXML | protected String executableToXML(String path, String args, String stdin, String stdout, String stderr)(Code) | | This method returns the xml description for the executable that is to be
executed, that includes the arguments with which it is to be invoked,
the path to the executable and location of it's stdout , stdin and stderr.
Parameters: path - the path to the executable. Parameters: args - the arguments to the executable. Parameters: stdin - the url for the stdin of the job. Parameters: stdout - the url for the stdin of the job. Parameters: stderr - the url for the stdin of the job. String |
generateCode | public void generateCode(ADag dag) throws CodeGeneratorException(Code) | | Generates the code for the concrete workflow in the GRMS input format.
The GRMS input format is xml based. One XML file is generated per
workflow.
Parameters: dag - the concrete workflow. throws: CodeGeneratorException - in case of any error occuring code generation. |
generateCode | public void generateCode(ADag dag, SubInfo job) throws CodeGeneratorException(Code) | | Generates the code for a single job in the input format of the workflow
executor being used.
Parameters: dag - the dag of which the job is a part of. Parameters: job - the SubInfo object holding the information aboutthat particular job. throws: CodeGeneratorException - in case of any error occuring code generation. |
jobToXML | protected String jobToXML(ADag dag, SubInfo job)(Code) | | It returns the corresponding xml description for a particular job.
Parameters: dag - the dag of which the job is a part of. Parameters: job - object containing job info. the string containing the xml description. |
relationsToXML | protected String relationsToXML(ADag dag, SubInfo job)(Code) | | This method returns the xml description of the relations between the jobs.
It refers to the associated ADag object with this class to get hold of the
parents to the job.
Parameters: dag - the dag of which the job is a part of. Parameters: job - the SubInfo object containing the job description. the xml element if there are any dependencies of the jobelse an empty string. |
stdErrToXML | protected String stdErrToXML(String url)(Code) | | This method returins the xml description for specifying the stdout.
Parameters: url - the url to the stdout file. the xml description. |
stdInToXML | protected String stdInToXML(String url)(Code) | | This method returns the xml description for specifying the stdout.
Parameters: url - the url to the stdout file. the xml description. |
stdOutToXML | protected String stdOutToXML(String url)(Code) | | This method returns the xml description for specifying the stdout.
Parameters: url - the url to the stdout file. the xml description. |
urlToXML | protected String urlToXML(String lfn, String url, char type)(Code) | | This method returns the xml description of the url.
Parameters: lfn - the logical name of the file associated with the url. Parameters: url - the url Parameters: type - i input urlo output url String |
|
|