public class PegasusExitCode extends Object implements POSTScript
Modifier and Type | Field and Description |
---|---|
static String |
ERR_SUCCESS_MSG_DELIMITER
The delimiter used for delimited error and success message internally
|
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 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.
|
static String |
POSTSCRIPT_ARGUMENTS_FOR_ONLY_ROTATING_LOG_FILE
The arguments for pegasus-exitcode when you only want the log files to be rotated.
|
static 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(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.
|
String |
getDefaultExitCodePath()
Returns the path to exitcode that is to be used on the kickstart
output.
|
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.
|
String |
shortDescribe()
Returns a short textual description of the implementing class.
|
public static final String POSTSCRIPT_ARGUMENTS_FOR_ONLY_ROTATING_LOG_FILE
public static final String SHORT_NAME
public static final String ERR_SUCCESS_MSG_DELIMITER
protected LogManager mLogger
protected PegasusProperties mProps
protected String mExitParserPath
protected String mPostScriptProperties
protected String mSubmitDir
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 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.public String shortDescribe()
shortDescribe
in interface POSTScript
public String getDefaultExitCodePath()