edu.isi.pegasus.planner.code
public interface CodeGenerator
Modifier and Type | Field and Description |
---|---|
static String |
VERSION
The version number associated with this API of Code Generator.
|
Modifier and Type | Method and Description |
---|---|
Collection<File> |
generateCode(ADag dag)
Generates the code for the concrete workflow in the input format of the
workflow executor being used.
|
void |
generateCode(ADag dag,
Job job)
Generates the code for a single job in the input format of the workflow
executor being used.
|
void |
initialize(PegasusBag bag)
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.
|
static final String VERSION
void initialize(PegasusBag bag) throws CodeGeneratorException
bag
- the bag of initialization objects.CodeGeneratorException
- in case of any error occuring code generation.Collection<File> generateCode(ADag dag) throws CodeGeneratorException
dag
- the concrete workflow.File
objects for the files written
out.CodeGeneratorException
- in case of any error occuring code generation.void generateCode(ADag dag, Job job) throws CodeGeneratorException
dag
- the dag of which the job is a part of.job
- the Job
object holding the information about
that particular job.CodeGeneratorException
- in case of any error occuring code generation.boolean startMonitoring()
void reset() throws CodeGeneratorException
CodeGeneratorException
- in case of any error occuring code generation.