Class PBS
- java.lang.Object
-
- edu.isi.pegasus.planner.code.generator.Abstract
-
- edu.isi.pegasus.planner.code.generator.PBS
-
- All Implemented Interfaces:
CodeGenerator
public class PBS extends Abstract
This code generator generates a PBS submit script for the workflow, that can be submitted directly using qsub.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
mInitializeGridStart
A boolean indicating whether grid start has been initialized or not.-
Fields inherited from class edu.isi.pegasus.planner.code.generator.Abstract
mBag, mLogger, mPOptions, mProps, mSubmitFileDir
-
Fields inherited from interface edu.isi.pegasus.planner.code.CodeGenerator
VERSION
-
-
Constructor Summary
Constructors Constructor Description PBS()
The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.io.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.java.util.Map<java.lang.String,java.lang.String>
getAdditionalBraindumpEntries(ADag workflow)
Returns a Map containing additional braindump entries that are specific to a Code Generatorprotected java.lang.String
getPathtoPBSFile(ADag dag)
Returns the basename for the PBS script file for the dagvoid
initialize(PegasusBag bag)
Initializes the Code Generator implementation.protected java.lang.String
pbsBasename(ADag dag)
Returns the basename for the PBS file for the dag-
Methods inherited from class edu.isi.pegasus.planner.code.generator.Abstract
getDAGFilename, getDAGFilename, getFileBaseName, getWriter, reset, startMonitoring, writeOutBraindump, writeOutDAXReplicaStore, writeOutNotifications, writeOutStampedeEvents
-
-
-
-
Method Detail
-
initialize
public void initialize(PegasusBag bag) throws CodeGeneratorException
Initializes the Code Generator implementation.- Specified by:
initialize
in interfaceCodeGenerator
- Overrides:
initialize
in classAbstract
- Parameters:
bag
- the bag of initialization objects.- Throws:
CodeGeneratorException
- in case of any error occuring code generation.
-
generateCode
public java.util.Collection<java.io.File> generateCode(ADag dag) throws CodeGeneratorException
Generates the code for the concrete workflow in the GRMS input format. The GRMS input format is xml based. One XML file is generated per workflow.- Parameters:
dag
- the concrete workflow.- Returns:
- handle to the GRMS output file.
- Throws:
CodeGeneratorException
- in case of any error occuring code generation.
-
generateCode
public void generateCode(ADag dag, Job job) throws CodeGeneratorException
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.job
- theJob
object holding the information about that particular job.- Throws:
CodeGeneratorException
- in case of any error occuring code generation.
-
getAdditionalBraindumpEntries
public java.util.Map<java.lang.String,java.lang.String> getAdditionalBraindumpEntries(ADag workflow)
Returns a Map containing additional braindump entries that are specific to a Code Generator- Specified by:
getAdditionalBraindumpEntries
in classAbstract
- Parameters:
workflow
- the executable workflow- Returns:
- Map
-
pbsBasename
protected java.lang.String pbsBasename(ADag dag)
Returns the basename for the PBS file for the dag- Parameters:
dag
- the workflow- Returns:
- the basenmae
-
getPathtoPBSFile
protected java.lang.String getPathtoPBSFile(ADag dag)
Returns the basename for the PBS script file for the dag- Parameters:
dag
- the workflow- Returns:
- the basenmae
-
-