public interface JobContext
Modifier and Type | Method and Description |
---|---|
BatchStatus |
getBatchStatus()
The getBatchStatus method simply returns the batch status value
set by the batch runtime into the job context.
|
long |
getExecutionId()
The getExecutionId method returns the current job's current
execution id.
|
java.lang.String |
getExitStatus()
The getExitStatus method simply returns the exit status value stored
into the job context through the setExitStatus method or null.
|
long |
getInstanceId()
The getInstanceId method returns the current job's instance
id.
|
java.lang.String |
getJobName()
Get job name
|
java.util.Properties |
getProperties()
The getProperties method returns the job level properties
specified in a job definition.
|
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 job.
|
void |
setTransientUserData(java.lang.Object data)
The setTransientUserData method stores a transient data object into
the current batch context.
|
java.lang.String getJobName()
java.lang.Object getTransientUserData()
void setTransientUserData(java.lang.Object data)
data
- is the user-specified typelong getInstanceId()
long getExecutionId()
java.util.Properties getProperties()
The getProperties method returns the job level properties specified in a job definition.
A couple of notes:BatchStatus getBatchStatus()
java.lang.String getExitStatus()
void setExitStatus(java.lang.String status)
status
- exit status string