|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.repository.dao.MapJobExecutionDao
public class MapJobExecutionDao
In-memory implementation of JobExecutionDao
.
Constructor Summary | |
---|---|
MapJobExecutionDao()
|
Method Summary | |
---|---|
void |
clear()
|
List<JobExecution> |
findJobExecutions(JobInstance jobInstance)
Return all JobExecution for given JobInstance , sorted
backwards by creation order (so the first element is the most recent). |
Set<JobExecution> |
findRunningJobExecutions(String jobName)
|
JobExecution |
getJobExecution(Long executionId)
|
JobExecution |
getLastJobExecution(JobInstance jobInstance)
Find the last JobExecution to have been created for a given
JobInstance . |
void |
saveJobExecution(JobExecution jobExecution)
Save a new JobExecution. |
void |
synchronizeStatus(JobExecution jobExecution)
Because it may be possible that the status of a JobExecution is updated while running, the following method will synchronize only the status and version fields. |
void |
updateJobExecution(JobExecution jobExecution)
Update and existing JobExecution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapJobExecutionDao()
Method Detail |
---|
public void clear()
public void saveJobExecution(JobExecution jobExecution)
JobExecutionDao
saveJobExecution
in interface JobExecutionDao
public List<JobExecution> findJobExecutions(JobInstance jobInstance)
JobExecutionDao
JobExecution
for given JobInstance
, sorted
backwards by creation order (so the first element is the most recent).
findJobExecutions
in interface JobExecutionDao
public void updateJobExecution(JobExecution jobExecution)
JobExecutionDao
updateJobExecution
in interface JobExecutionDao
public JobExecution getLastJobExecution(JobInstance jobInstance)
JobExecutionDao
JobExecution
to have been created for a given
JobInstance
.
getLastJobExecution
in interface JobExecutionDao
jobInstance
- the JobInstance
JobExecution
to execute for this instancepublic Set<JobExecution> findRunningJobExecutions(String jobName)
findRunningJobExecutions
in interface JobExecutionDao
JobExecution
that are still running (or indeterminate
state), i.e. having null end date, for the specified job name.public JobExecution getJobExecution(Long executionId)
getJobExecution
in interface JobExecutionDao
JobExecution
for given identifier.public void synchronizeStatus(JobExecution jobExecution)
JobExecutionDao
synchronizeStatus
in interface JobExecutionDao
jobExecution
- to be updated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |