|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.code.generator.Abstract
edu.isi.pegasus.planner.code.generator.Stork
public class Stork
This implementation generates files that can be understood by Stork.
| Field Summary | |
|---|---|
static String |
mEndSeparator
The nice end separator, define once, use often. |
private LogManager |
mLogger
The LogManager object which is used to log all the messages. |
static String |
mStartSeparator
The nice start separator, define once, use often. |
| Fields inherited from class edu.isi.pegasus.planner.code.generator.Abstract |
|---|
mBag, mPOptions, mProps, mSubmitFileDir |
| Fields inherited from interface edu.isi.pegasus.planner.code.CodeGenerator |
|---|
VERSION |
| Constructor Summary | |
|---|---|
Stork()
The default constructor. |
|
| Method Summary | |
|---|---|
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 Stork format. |
Map<String,String> |
getAdditionalBraindumpEntries(ADag workflow)
Returns an empty map |
String |
getFileBaseName(Job job)
Returns the basename of the file to which the job is written to. |
void |
initialize(PegasusBag bag)
Initializes the Code Generator implementation. |
| Methods inherited from class edu.isi.pegasus.planner.code.generator.Abstract |
|---|
getDAGFilename, getDAGFilename, getWriter, reset, startMonitoring, writeOutBraindump, writeOutDAXReplicaStore, writeOutNotifications, writeOutStampedeEvents, writeOutWorkflowMetrics |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String mStartSeparator
public static final String mEndSeparator
private LogManager mLogger
| Constructor Detail |
|---|
public Stork()
| Method Detail |
|---|
public void initialize(PegasusBag bag)
throws CodeGeneratorException
initialize in interface CodeGeneratorinitialize in class Abstractbag - 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 String getFileBaseName(Job job)
getFileBaseName in class Abstractjob - the job whose job information needs to be written.
public Map<String,String> getAdditionalBraindumpEntries(ADag workflow)
getAdditionalBraindumpEntries in class Abstractworkflow - the workflow.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||