| |
|
| java.lang.Object org.griphyn.cPlanner.code.generator.Abstract
All known Subclasses: org.griphyn.cPlanner.code.generator.Stork, org.griphyn.cPlanner.code.generator.condor.CondorGenerator, org.griphyn.cPlanner.code.generator.GRMS,
Abstract | abstract public class Abstract implements CodeGenerator(Code) | | An Abstract Base class implementing the CodeGenerator interface. Introduces
helper methods for determining basenames of files, that contain concrete
job descriptions.
author: Karan Vahi author: Gaurang Mehta version: $Revision: 410 $ |
Method Summary | |
public String | getFileBaseName(SubInfo job) Returns the basename of the file to which the job is written to.
Parameters: job - the job whose job information needs to be written. | public PrintWriter | getWriter(SubInfo job) Returns an open stream to the file that is used for writing out the
job information for the job.
Parameters: job - the job whose job information needs to be written. | public void | initialize(PegasusBag bag) Initializes the Code Generator implementation. | public void | reset() Resets the Code Generator implementation. | public boolean | startMonitoring() Starts monitoring of the workflow by invoking a workflow monitor daemon. |
mPOptions | protected PlannerOptions mPOptions(Code) | | The object containing the command line options specified to the planner
at runtime.
|
mSubmitFileDir | protected String mSubmitFileDir(Code) | | The directory where all the submit files are to be generated.
|
getFileBaseName | public String getFileBaseName(SubInfo job)(Code) | | Returns the basename of the file to which the job is written to.
Parameters: job - the job whose job information needs to be written. the basename of the file. |
getWriter | public PrintWriter getWriter(SubInfo job) throws IOException(Code) | | Returns an open stream to the file that is used for writing out the
job information for the job.
Parameters: job - the job whose job information needs to be written. the writer to the open file. exception: IOException - if unable to open a write handle to the file. |
startMonitoring | public boolean startMonitoring()(Code) | | Starts monitoring of the workflow by invoking a workflow monitor daemon.
The monitoring should start only after the output files have been generated.
FIXME: It should actually happen after the workflow has been submitted.
Eventually should be a separate monitor interface, and submit writers
should be loaded by an AbstractFactory.
boolean indicating whether could successfully start the monitordaemon or not. |
|
|
|