public class UserPOSTScript extends Object implements POSTScript
Modifier and Type | Field and Description |
---|---|
protected LogManager |
mLogger
The LogManager object which is used to log all the messages.
|
protected String |
mPOSTScriptPath
The path to the user postscript on the submit host.
|
protected PegasusProperties |
mProps
The object holding all the properties pertaining to Pegasus.
|
static String |
SHORT_NAME
The SHORTNAME for this implementation.
|
VERSION
Constructor and Description |
---|
UserPOSTScript()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
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 |
getExitCodePath()
Returns the path to exitcode that is to be used on the kickstart
output.
|
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 SHORT_NAME
protected LogManager mLogger
protected PegasusProperties mProps
protected String mPOSTScriptPath
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.RuntimeException
- in case of path being null.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 DAGMan
profile key that has to be inserted.public String shortDescribe()
shortDescribe
in interface POSTScript
public String getExitCodePath()