edu.isi.pegasus.planner.code.generator
public class PMC extends Abstract
Modifier and Type | Field and Description |
---|---|
protected GridStartFactory |
mGridStartFactory
The handle to the GridStart Factory.
|
protected boolean |
mInitializeGridStart
A boolean indicating whether grid start has been initialized or not.
|
private PBS |
mPBS
Handle to the PBS Code generator.
|
mBag, mLogger, mPOptions, mProps, mSubmitFileDir
VERSION
Constructor and Description |
---|
PMC()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<File> |
generateCode(ADag dag)
Generates the code for the concrete workflow in the GRMS input format.
|
void |
generateCode(ADag dag,
Job job)
Generates the code for a single job in the input format of the workflow
executor being used.
|
Map<String,String> |
getAdditionalBraindumpEntries(ADag workflow)
Returns a Map containing additional braindump entries that are specific
to a Code Generator.
|
protected String |
getPathtoPMCFile(ADag dag)
Returns the basename for the pmc file for the dag
|
void |
initialize(PegasusBag bag)
Initializes the Code Generator implementation.
|
protected String |
pmcBasename(ADag dag)
Returns the basename for the pmc file for the dag
|
getDAGFilename, getDAGFilename, getFileBaseName, getWriter, reset, startMonitoring, writeOutBraindump, writeOutDAXReplicaStore, writeOutNotifications, writeOutStampedeEvents
protected GridStartFactory mGridStartFactory
protected boolean mInitializeGridStart
private final PBS mPBS
public void initialize(PegasusBag bag) throws CodeGeneratorException
initialize
in interface CodeGenerator
initialize
in class Abstract
bag
- the bag of initialization objects.CodeGeneratorException
- in case of any error occuring code generation.public Collection<File> generateCode(ADag dag) throws CodeGeneratorException
dag
- the concrete workflow.CodeGeneratorException
- in case of any error occuring code generation.public 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.public Map<String,String> getAdditionalBraindumpEntries(ADag workflow)
getAdditionalBraindumpEntries
in class Abstract
workflow
- the executable workflowprotected String pmcBasename(ADag dag)
dag
- the workflow