|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.
| Field Summary | |
static String |
VERSION
The version number associated with this API of Code Generator. |
| Method Summary | |
void |
generateCode(ADag dag)
Generates the code for the concrete workflow in the input format of the workflow executor being used. |
void |
generateCode(ADag dag,
SubInfo job)
Generates the code for a single job in the input format of the workflow executor being used. |
void |
initialize(PegasusProperties properties,
String directory,
PlannerOptions options)
Initializes the Code Generator implementation. |
void |
reset()
Resets the Code Generator implementation. |
boolean |
startMonitoring()
Starts monitoring of the workflow by invoking a workflow monitor daemon. |
| Field Detail |
public static final String VERSION
| Method Detail |
public void initialize(PegasusProperties properties,
String directory,
PlannerOptions options)
throws CodeGeneratorException
properties - the PegasusProperties object containing all
the properties required by Pegasus.directory - the base directory where the generated code should reside.options - the options passed to the planner at runtime.
CodeGeneratorException - in case of any error occuring code generation.
public void generateCode(ADag dag)
throws CodeGeneratorException
dag - the concrete workflow.
CodeGeneratorException - in case of any error occuring code generation.
public void generateCode(ADag dag,
SubInfo job)
throws CodeGeneratorException
dag - the dag of which the job is a part of.job - the SubInfo object holding the information about
that particular job.
CodeGeneratorException - in case of any error occuring code generation.public boolean startMonitoring()
public void reset()
throws CodeGeneratorException
CodeGeneratorException - in case of any error occuring code generation.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||