public abstract class VDSPOSTScript extends Object implements POSTScript
Modifier and Type | Field and Description |
---|---|
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.
|
VERSION
Constructor and Description |
---|
VDSPOSTScript()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shortDescribe
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
protected abstract String getDefaultExitCodePath()
public void initialize(PegasusProperties properties, String path, String submitDir)
initialize
in interface POSTScript
properties
- 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 POSTScript
job
- 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 objectprotected void appendProperty(StringBuffer sb, String key, String value)
sb
- the StringBuffer to append the property to.key
- the property.value
- the property value.Copyright © 2011 The University of Southern California. All Rights Reserved.