|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.code.gridstart.VDSPOSTScript
public abstract class VDSPOSTScript
An abstract implementation of the interface, that is a superclass for all the VDS supplied postscripts. These postscripts work can parse kickstart records.
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface edu.isi.pegasus.planner.code.POSTScript |
|---|
VERSION |
| Constructor Summary | |
|---|---|
VDSPOSTScript()
The default constructor. |
|
| Method Summary | |
|---|---|
protected void |
appendProperty(StringBuffer sb,
String key,
String value)
Appends a property to the StringBuffer, in the java command line format. |
boolean |
construct(Job job,
String key)
Constructs the postscript that has to be invoked on the submit host after the job has executed on the remote end. |
protected abstract String |
getDefaultExitCodePath()
Returns the path to exitcode that is to be used on the kickstart output. |
protected String |
getPostScriptLogFile(Job job)
Returns the path to the postscript log file for a job. |
protected String |
getPostScriptProperties(PegasusProperties properties)
Returns the properties that need to be passed to the the postscript invocation in the java format. |
void |
initialize(PegasusProperties properties,
String path,
String submitDir)
Initialize the POSTScript implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.isi.pegasus.planner.code.POSTScript |
|---|
shortDescribe |
| Field Detail |
|---|
public static final String EXITCODE_OUTPUT_SUFFIX
protected LogManager mLogger
protected PegasusProperties mProps
protected String mExitParserPath
protected boolean mPostScriptDebug
protected String mPostScriptProperties
protected String mSubmitDir
| Constructor Detail |
|---|
public VDSPOSTScript()
| Method Detail |
|---|
protected abstract String getDefaultExitCodePath()
public void initialize(PegasusProperties properties,
String path,
String submitDir)
initialize in interface POSTScriptproperties - the PegasusProperties object containing all
the properties required by Pegasus.path - the path to the POSTScript on the submit host.submitDir - the submit directory where the submit file for the job
has to be generated.
public boolean construct(Job job,
String key)
The postscript is constructed and populated as a profile in the DAGMAN namespace.
construct in interface POSTScriptjob - the Job object containing the job description
of the job that has to be enabled on the grid.key - the key for the profile that has to be inserted.
protected String getPostScriptLogFile(Job job)
job - the Job containing job descriptionprotected String getPostScriptProperties(PegasusProperties properties)
properties - the properties object
protected void appendProperty(StringBuffer sb,
String key,
String value)
sb - the StringBuffer to append the property to.key - the property.value - the property value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||