public class NetloggerPostScript extends java.lang.Object implements POSTScript
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
LOG4J_CONF_PROPERTY
The LOG4j system configuration property.
|
private java.lang.String |
mLog4jConf
The log4j system property
|
protected LogManager |
mLogger
The LogManager object which is used to log all the messages.
|
protected java.lang.String |
mPOSTScriptPath
The path to the user postscript on the submit host.
|
private java.lang.String |
mPostScriptProperties
The path to the properties file created in submit directory.
|
protected PegasusProperties |
mProps
The object holding all the properties pertaining to Pegasus.
|
private java.lang.String |
mWorkflowID
the workflow id used.
|
static java.lang.String |
SHORT_NAME
The SHORTNAME for this implementation.
|
static java.lang.String |
WORKFLOW_ID_PROPERTY
The property to be set for postscript to pick up workflow id
|
VERSION
Constructor and Description |
---|
NetloggerPostScript()
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 |
getNetloggerExitCodePath()
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 SHORT_NAME
public static final java.lang.String WORKFLOW_ID_PROPERTY
private static java.lang.String LOG4J_CONF_PROPERTY
protected LogManager mLogger
protected PegasusProperties mProps
protected java.lang.String mPOSTScriptPath
private java.lang.String mPostScriptProperties
private java.lang.String mWorkflowID
private java.lang.String mLog4jConf
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.java.lang.RuntimeException
- in case of path being null.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 DAGMan
profile key that has to be inserted.public java.lang.String shortDescribe()
shortDescribe
in interface POSTScript
public java.lang.String getNetloggerExitCodePath()
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.