| |
|
| org.griphyn.cPlanner.code.CodeGenerator
All known Subclasses: org.griphyn.cPlanner.code.generator.Abstract,
CodeGenerator | public interface CodeGenerator (Code) | | The interface that allows us to plug in various code generators for writing
out the concrete plan. Each of Code Generators are dependant upon the
underlying workflow executors being used. A Code Generator implementation
generates the concrete plan in the input format of the underlying Workflow
Executor.
The appropriate format can be condor submit files, or some XML description.
author: Karan Vahi author: Gaurang Mehta version: $Revision: 410 $ |
Field Summary | |
final public static String | VERSION The version number associated with this API of Code Generator. |
Method Summary | |
public void | generateCode(ADag dag) Generates the code for the concrete workflow in the input format of the
workflow executor being used. | 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. | public void | reset() Resets the Code Generator implementation. | public boolean | startMonitoring() Starts monitoring of the workflow by invoking a workflow monitor daemon. |
VERSION | final public static String VERSION(Code) | | The version number associated with this API of Code Generator.
|
generateCode | public void generateCode(ADag dag) throws CodeGeneratorException(Code) | | Generates the code for the concrete workflow in the input format of the
workflow executor being used.
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. |
startMonitoring | public boolean startMonitoring()(Code) | | Starts monitoring of the workflow by invoking a workflow monitor daemon.
The monitoring should start only after the output files have been generated.
FIXME: It should actually happen after the workflow has been submitted.
Eventually should be a separate monitor interface, and submit writers
should be loaded by an AbstractFactory.
boolean indicating whether could successfully start the monitordaemon or not. |
|
|
|