public class JsrJobContext
extends java.lang.Object
implements javax.batch.runtime.context.JobContext
JobContext
functionality
as specified in JSR-352. Wrapper delegates to the underlying JobExecution
to
obtain the related contextual information.Constructor and Description |
---|
JsrJobContext() |
Modifier and Type | Method and Description |
---|---|
javax.batch.runtime.BatchStatus |
getBatchStatus() |
long |
getExecutionId() |
java.lang.String |
getExitStatus() |
long |
getInstanceId() |
java.lang.String |
getJobName() |
java.util.Properties |
getProperties() |
java.lang.Object |
getTransientUserData() |
void |
setExitStatus(java.lang.String status) |
void |
setJobExecution(JobExecution jobExecution) |
void |
setProperties(java.util.Properties properties) |
void |
setTransientUserData(java.lang.Object data) |
public void setJobExecution(JobExecution jobExecution)
public void setProperties(@Nullable java.util.Properties properties)
public java.lang.String getJobName()
getJobName
in interface javax.batch.runtime.context.JobContext
public java.lang.Object getTransientUserData()
getTransientUserData
in interface javax.batch.runtime.context.JobContext
public void setTransientUserData(java.lang.Object data)
setTransientUserData
in interface javax.batch.runtime.context.JobContext
public long getInstanceId()
getInstanceId
in interface javax.batch.runtime.context.JobContext
public long getExecutionId()
getExecutionId
in interface javax.batch.runtime.context.JobContext
public java.util.Properties getProperties()
getProperties
in interface javax.batch.runtime.context.JobContext
public javax.batch.runtime.BatchStatus getBatchStatus()
getBatchStatus
in interface javax.batch.runtime.context.JobContext
@Nullable public java.lang.String getExitStatus()
getExitStatus
in interface javax.batch.runtime.context.JobContext
public void setExitStatus(java.lang.String status)
setExitStatus
in interface javax.batch.runtime.context.JobContext