|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.cPlanner.code.generator.Abstract
public abstract class Abstract
An Abstract Base class implementing the CodeGenerator interface. Introduces helper methods for determining basenames of files, that contain concrete job descriptions.
| Field Summary | |
|---|---|
protected PegasusBag |
mBag
The bag of initialization objects. |
protected PlannerOptions |
mPOptions
The object containing the command line options specified to the planner at runtime. |
protected PegasusProperties |
mProps
The object holding all the properties pertaining to Pegasus. |
protected String |
mSubmitFileDir
The directory where all the submit files are to be generated. |
| Fields inherited from interface org.griphyn.cPlanner.code.CodeGenerator |
|---|
VERSION |
| Constructor Summary | |
|---|---|
Abstract()
|
|
| Method Summary | |
|---|---|
String |
getFileBaseName(SubInfo job)
Returns the basename of the file to which the job is written to. |
PrintWriter |
getWriter(SubInfo job)
Returns an open stream to the file that is used for writing out the job information for the job. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.griphyn.cPlanner.code.CodeGenerator |
|---|
generateCode, generateCode |
| Field Detail |
|---|
protected PegasusBag mBag
protected String mSubmitFileDir
protected PegasusProperties mProps
protected PlannerOptions mPOptions
| Constructor Detail |
|---|
public Abstract()
| Method Detail |
|---|
public void initialize(PegasusBag bag)
throws CodeGeneratorException
initialize in interface CodeGeneratorbag - the bag of initialization objects.
CodeGeneratorException - in case of any error occuring code generation.public boolean startMonitoring()
startMonitoring in interface CodeGenerator
public void reset()
throws CodeGeneratorException
reset in interface CodeGeneratorCodeGeneratorException - in case of any error occuring code generation.
public PrintWriter getWriter(SubInfo job)
throws IOException
job - the job whose job information needs to be written.
IOException - if unable to open a write handle to the file.public String getFileBaseName(SubInfo job)
job - the job whose job information needs to be written.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||