public class JobExecutionInfoResource
extends org.springframework.hateoas.ResourceSupport
Modifier and Type | Class and Description |
---|---|
static class |
JobExecutionInfoResource.Page
Dedicated subclass to workaround type erasure.
|
Constructor and Description |
---|
JobExecutionInfoResource() |
JobExecutionInfoResource(org.springframework.batch.core.JobExecution jobExecution,
java.util.TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
java.util.List<JobExecutionInfoResource> |
getChildJobExecutions()
Returns a
List of JobExecutionInfoResource s, if any. |
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 |
isComposedJob()
Is this a composed Job? ?
|
boolean |
isDeleted()
Check if the job definition is deleted/destroyed.
|
boolean |
isDeployed()
Check if the job is deployed.
|
boolean |
isRestartable() |
boolean |
isStoppable() |
void |
setComposedJob(boolean composedJob)
Set if this is a composed Job.
|
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.public boolean isComposedJob()
public void setComposedJob(boolean composedJob)
false
.public java.util.List<JobExecutionInfoResource> getChildJobExecutions()
List
of JobExecutionInfoResource
s, if any.