| java.lang.Object org.griphyn.cPlanner.code.gridstart.VDSPOSTScript
All known Subclasses: org.griphyn.cPlanner.code.gridstart.ExitCode, org.griphyn.cPlanner.code.gridstart.ExitPOST,
VDSPOSTScript | abstract public class VDSPOSTScript implements POSTScript(Code) | | An abstract implementation of the interface, that is a superclass for
all the VDS supplied postscripts. These postscripts work can parse
kickstart records.
author: Karan Vahi vahi@isi.edu version: $Revision: 50 $ |
Field Summary | |
final public static String | EXITCODE_OUTPUT_SUFFIX The suffix for the exitcode output file, that is generated at the
submit host. | protected String | mExitParserPath The path to the exitcode client that parses the exit status of
the kickstart. | protected LogManager | mLogger The LogManager object which is used to log all the messages. | protected boolean | mPostScriptDebug A boolean indicating whether to turn the debug on for the postscript or
not. | protected String | mPostScriptProperties The properties that need to be passed to the postscript invocation
on the command line in the java format. | protected PegasusProperties | mProps The object holding all the properties pertaining to Pegasus. | protected String | mSubmitDir The submit directory where the submit files are being generated for
the workflow. |
Constructor Summary | |
public | VDSPOSTScript() The default constructor. |
EXITCODE_OUTPUT_SUFFIX | final public static String EXITCODE_OUTPUT_SUFFIX(Code) | | The suffix for the exitcode output file, that is generated at the
submit host.
|
mExitParserPath | protected String mExitParserPath(Code) | | The path to the exitcode client that parses the exit status of
the kickstart. The client is run as a postscript. It also
includes the option to the command since at present it is same for all.
It is $PEGASUS_HOME/bin/exitcode (no -n)!
|
mLogger | protected LogManager mLogger(Code) | | The LogManager object which is used to log all the messages.
|
mPostScriptDebug | protected boolean mPostScriptDebug(Code) | | A boolean indicating whether to turn the debug on for the postscript or
not.
|
mPostScriptProperties | protected String mPostScriptProperties(Code) | | The properties that need to be passed to the postscript invocation
on the command line in the java format.
|
mSubmitDir | protected String mSubmitDir(Code) | | The submit directory where the submit files are being generated for
the workflow.
|
VDSPOSTScript | public VDSPOSTScript()(Code) | | The default constructor.
|
appendProperty | protected void appendProperty(StringBuffer sb, String key, String value)(Code) | | Appends a property to the StringBuffer, in the java command line format.
Parameters: sb - the StringBuffer to append the property to. Parameters: key - the property. Parameters: value - the property value. |
construct | public boolean construct(SubInfo job, String key)(Code) | | Constructs the postscript that has to be invoked on the submit host
after the job has executed on the remote end. The postscript usually
works on the xml output generated by kickstart. The postscript invoked
is exitcode that is shipped with VDS, and can usually be found at
$PEGASUS_HOME/bin/exitcode.
The postscript is constructed and populated as a profile
in the DAGMAN namespace.
Parameters: job - the SubInfo object containing the job descriptionof the job that has to be enabled on the grid. Parameters: key - the key for the profile that has to be inserted. boolean true if postscript was generated,else false. |
getDefaultExitCodePath | abstract protected String getDefaultExitCodePath()(Code) | | Returns the path to exitcode that is to be used on the kickstart
output.
the path to the exitcode script to be invoked. |
getPostScriptLogFile | protected String getPostScriptLogFile(SubInfo job)(Code) | | Returns the path to the postscript log file for a job.
Parameters: job - the SubInfo containing job description |
getPostScriptProperties | protected String getPostScriptProperties(PegasusProperties properties)(Code) | | Returns the properties that need to be passed to the the postscript
invocation in the java format. It is of the form
"-Dprop1=value1 -Dprop2=value2 .."
Parameters: properties - the properties object the properties list, else empty string. |
initialize | public void initialize(PegasusProperties properties, String path, String submitDir)(Code) | | Initialize the POSTScript implementation.
Parameters: properties - the PegasusProperties object containing allthe properties required by Pegasus. Parameters: path - the path to the POSTScript on the submit host. Parameters: submitDir - the submit directory where the submit file for the jobhas to be generated. |
|
|