public interface StepContext
Modifier and Type | Method and Description |
---|---|
BatchStatus |
getBatchStatus()
The getBatchStatus method returns the current batch status of the
current step.
|
Exception |
getException()
The getException method returns the last exception thrown from a
step level batch artifact to the batch runtime.
|
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.
|
Serializable |
getPersistentUserData()
The getPersistentUserData method returns a persistent data object
belonging to the current step.
|
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.
|
String |
getStepName()
Get step name
|
Object |
getTransientUserData()
The getTransientUserData method returns a transient data object
belonging to the current Job XML execution element.
|
void |
setExitStatus(String status)
The setExitStatus method assigns the user-specified exit status for
the current step.
|
void |
setPersistentUserData(Serializable data)
The setPersistentUserData method stores a persistent data object
into the current step.
|
void |
setTransientUserData(Object data)
The setTransientUserData method stores a transient data object into
the current batch context.
|
String getStepName()
Object getTransientUserData()
void setTransientUserData(Object data)
data
- is the user-specified typelong getStepExecutionId()
Properties getProperties()
Serializable getPersistentUserData()
void setPersistentUserData(Serializable data)
data
- is the user-specified typeBatchStatus getBatchStatus()
String getExitStatus()
void setExitStatus(String status)
status
- stringException getException()
Metric[] getMetrics()
for definition of standard
metrics.
Copyright © 2016 JBoss by Red Hat. All rights reserved.