public class PegasusExitCode extends java.lang.Object implements POSTScript
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERR_SUCCESS_MSG_DELIMITER
The delimiter used for delimited error and success message internally
|
protected java.lang.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 java.lang.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 java.lang.String |
mSubmitDir
The submit directory where the submit files are being generated for
the workflow.
|
static java.lang.String |
POSTSCRIPT_ARGUMENTS_FOR_ONLY_ROTATING_LOG_FILE
The arguments for pegasus-exitcode when you only want the log files to be rotated.
|
static java.lang.String |
SHORT_NAME
The SHORTNAME for this implementation.
|
VERSION
Constructor and Description |
---|
PegasusExitCode()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendProperty(java.lang.StringBuffer sb,
java.lang.String key,
java.lang.String value)
Appends a property to the StringBuffer, in the java command line format.
|
boolean |
construct(Job job,
java.lang.String key)
Constructs the postscript that has to be invoked on the submit host
after the job has executed on the remote end.
|
java.lang.String |
getDefaultExitCodePath()
Returns the path to exitcode that is to be used on the kickstart
output.
|
protected java.lang.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,
java.lang.String path,
java.lang.String submitDir)
Initialize the POSTScript implementation.
|
java.lang.String |
shortDescribe()
Returns a short textual description of the implementing class.
|
public static final java.lang.String POSTSCRIPT_ARGUMENTS_FOR_ONLY_ROTATING_LOG_FILE
public static final java.lang.String SHORT_NAME
public static final java.lang.String ERR_SUCCESS_MSG_DELIMITER
protected LogManager mLogger
protected PegasusProperties mProps
protected java.lang.String mExitParserPath
protected java.lang.String mPostScriptProperties
protected java.lang.String mSubmitDir
public void initialize(PegasusProperties properties, java.lang.String path, java.lang.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, java.lang.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 java.lang.String getPostScriptProperties(PegasusProperties properties)
properties
- the properties objectprotected void appendProperty(java.lang.StringBuffer sb, java.lang.String key, java.lang.String value)
sb
- the StringBuffer to append the property to.key
- the property.value
- the property value.public java.lang.String shortDescribe()
shortDescribe
in interface POSTScript
public java.lang.String getDefaultExitCodePath()