| Modifier and Type | Method and Description |
|---|---|
| public BatchStatus | Returns: batch status stringThe getBatchStatus method returns the current batch status of the current step. |
| public Exception | Returns: the last exceptionThe getException method returns the last exception thrown from a step level batch artifact to the batch runtime. |
| public String | Returns: exit status stringThe getExitStatus method simply returns the exit status value stored into the step context through the setExitStatus method or null. |
| public Metric[] | |
| public Serializable | Returns: user-specified typeThe getPersistentUserData method returns a persistent data object belonging to the current step. |
| public Properties | Returns: step level propertiesThe getProperties method returns the step level properties specified in a job definition. |
| public long | Returns: step execution idThe getStepExecutionId method returns the current step's execution id. |
| public String | |
| public Object | Returns: user-specified typeThe getTransientUserData method returns a transient data object belonging to the current Job XML execution element. |
| public void | setExitStatus(String
string status)The setExitStatus method assigns the user-specified exit status for the current step. |
| public void | setPersistentUserData(Serializable
is the user-specified type data)The setPersistentUserData method stores a persistent data object into the current step. |
| public void | setTransientUserData(Object
is the user-specified type data)The setTransientUserData method stores a transient data object into the current batch context. |
| getBatchStatus | back to summary |
|---|---|
| public BatchStatus getBatchStatus() The getBatchStatus method returns the current batch status of the current step. This value is set by the batch runtime and changes as the batch status changes.
| |
| getException | back to summary |
|---|---|
| public Exception getException() The getException method returns the last exception thrown from a step level batch artifact to the batch runtime.
| |
| getExitStatus | back to summary |
|---|---|
| public String getExitStatus() The getExitStatus method simply returns the exit status value stored into the step context through the setExitStatus method or null.
| |
| getMetrics | back to summary |
|---|---|
| public Metric[] getMetrics() The getMetrics method returns an array of step level metrics. These are things like commits, skips, etc.
| |
| getPersistentUserData | back to summary |
|---|---|
| public Serializable getPersistentUserData() The getPersistentUserData method returns a persistent data object belonging to the current step. The user data type must implement java.util.Serializable. This data is saved as part of a step's checkpoint. For a step that does not do checkpoints, it is saved after the step ends. It is available upon restart.
| |
| getProperties | back to summary |
|---|---|
| public Properties getProperties() The getProperties method returns the step level properties specified in a job definition. A couple notes:
| |
| getStepExecutionId | back to summary |
|---|---|
| public long getStepExecutionId() The getStepExecutionId method returns the current step's execution id.
| |
| getStepName | back to summary |
|---|---|
| public String getStepName() Get step name.
| |
| getTransientUserData | back to summary |
|---|---|
| public Object getTransientUserData() The getTransientUserData method returns a transient data object belonging to the current Job XML execution element.
| |
| setExitStatus | back to summary |
|---|---|
| public void setExitStatus(String status) The setExitStatus method assigns the user-specified exit status for the current step. When the step ends, the exit status of the step is the value specified through setExitStatus. If setExitStatus was not called or was called with a null value, then the exit status defaults to the batch status of the step.
| |
| setPersistentUserData | back to summary |
|---|---|
| public void setPersistentUserData(Serializable data) The setPersistentUserData method stores a persistent data object into the current step. The user data type must implement java.util.Serializable. This data is saved as part of a step's checkpoint. For a step that does not do checkpoints, it is saved after the step ends. It is available upon restart.
| |
| setTransientUserData | back to summary |
|---|---|
| public void setTransientUserData(Object data) The setTransientUserData method stores a transient data object into the current batch context.
| |