public interface StepContext
Modifier and Type | Method and Description |
---|---|
BatchStatus |
getBatchStatus()
The getBatchStatus method returns the current batch status of the
current step.
|
java.lang.Exception |
getException()
The getException method returns the last exception thrown from a
step level batch artifact to the batch runtime.
|
java.lang.String |
getExitStatus()
The getExitStatus method simply returns the exit status value stored
into the step context through the setExitStatus method or null.
|
Metric[] |
getMetrics()
The getMetrics method returns an array of step level metrics.
|
java.io.Serializable |
getPersistentUserData()
The getPersistentUserData method returns a persistent data object
belonging to the current step.
|
java.util.Properties |
getProperties()
The getProperties method returns the step level properties
specified in a job definition.
|
long |
getStepExecutionId()
The getStepExecutionId method returns the current step's
execution id.
|
java.lang.String |
getStepName()
Get step name.
|
java.lang.Object |
getTransientUserData()
The getTransientUserData method returns a transient data object
belonging to the current Job XML execution element.
|
void |
setExitStatus(java.lang.String status)
The setExitStatus method assigns the user-specified exit status for
the current step.
|
void |
setPersistentUserData(java.io.Serializable data)
The setPersistentUserData method stores a persistent data object
into the current step.
|
void |
setTransientUserData(java.lang.Object data)
The setTransientUserData method stores a transient data object into
the current batch context.
|
java.lang.String getStepName()
java.lang.Object getTransientUserData()
void setTransientUserData(java.lang.Object data)
data
- is the user-specified typelong getStepExecutionId()
java.util.Properties getProperties()
The getProperties method returns the step level properties specified in a job definition.
A couple notes:java.io.Serializable getPersistentUserData()
void setPersistentUserData(java.io.Serializable data)
data
- is the user-specified typeBatchStatus getBatchStatus()
java.lang.String getExitStatus()
void setExitStatus(java.lang.String status)
status
- stringjava.lang.Exception getException()
Metric[] getMetrics()
for definition of standard
metrics.