public class JobExecutionInfoResource
extends org.springframework.hateoas.ResourceSupport
Constructor and Description |
---|
JobExecutionInfoResource() |
JobExecutionInfoResource(org.springframework.batch.core.JobExecution jobExecution,
java.util.TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDuration() |
java.lang.Long |
getExecutionId() |
org.springframework.batch.core.JobExecution |
getJobExecution() |
java.lang.Long |
getJobId() |
java.util.Properties |
getJobParameters() |
java.lang.String |
getJobParametersString() |
java.lang.String |
getName() |
java.lang.String |
getStartDate() |
java.lang.String |
getStartTime() |
int |
getStepExecutionCount() |
java.util.TimeZone |
getTimeZone() |
boolean |
isAbandonable() |
boolean |
isDeleted()
Check if the job definition is deleted/destroyed.
|
boolean |
isDeployed()
Check if the job is deployed.
|
boolean |
isRestartable() |
boolean |
isStoppable() |
void |
setDeleted(boolean deleted)
Set deleted flag explicitly if the job doesn't exist in job definition
|
void |
setDeployed(boolean deployed)
Set deployed flag
|
void |
setRestartable(boolean restartable)
Set restartable flag explicitly based on the job executions status of the same job instance.
|
public JobExecutionInfoResource()
public JobExecutionInfoResource(org.springframework.batch.core.JobExecution jobExecution, java.util.TimeZone timeZone)
public java.util.TimeZone getTimeZone()
public java.lang.String getName()
public java.lang.Long getExecutionId()
public int getStepExecutionCount()
public java.lang.Long getJobId()
public java.lang.String getStartDate()
public java.lang.String getStartTime()
public java.lang.String getDuration()
public org.springframework.batch.core.JobExecution getJobExecution()
public boolean isRestartable()
public boolean isAbandonable()
public boolean isStoppable()
public boolean isDeployed()
public boolean isDeleted()
public java.lang.String getJobParametersString()
public java.util.Properties getJobParameters()
public void setRestartable(boolean restartable)
restartable
- flag to identify if the job execution can be restartedpublic void setDeployed(boolean deployed)
deployed
- flag to identify if the job for the given job execution is deployed.public void setDeleted(boolean deleted)
deleted
- flag to identify if the job for the given job execution is deleted.