|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.repository.dao.MapJobExecutionDao
public class MapJobExecutionDao
In-memory implementation of JobExecutionDao.
| Constructor Summary | |
|---|---|
MapJobExecutionDao()
|
|
| Method Summary | |
|---|---|
static void |
clear()
|
java.util.List<JobExecution> |
findJobExecutions(JobInstance jobInstance)
Return all JobExecution for given JobInstance, sorted
backwards by creation order (so the first element is the most recent). |
java.util.Set<JobExecution> |
findRunningJobExecutions(java.lang.String jobName)
|
JobExecution |
getJobExecution(java.lang.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 static void clear()
public void saveJobExecution(JobExecution jobExecution)
JobExecutionDao
saveJobExecution in interface JobExecutionDaopublic java.util.List<JobExecution> findJobExecutions(JobInstance jobInstance)
JobExecutionDaoJobExecution for given JobInstance, sorted
backwards by creation order (so the first element is the most recent).
findJobExecutions in interface JobExecutionDaopublic void updateJobExecution(JobExecution jobExecution)
JobExecutionDao
updateJobExecution in interface JobExecutionDaopublic JobExecution getLastJobExecution(JobInstance jobInstance)
JobExecutionDaoJobExecution to have been created for a given
JobInstance.
getLastJobExecution in interface JobExecutionDaojobInstance - the JobInstance
JobExecution to execute for this instancepublic java.util.Set<JobExecution> findRunningJobExecutions(java.lang.String jobName)
findRunningJobExecutions in interface JobExecutionDaoJobExecution that are still running (or indeterminate
state), i.e. having null end date, for the specified job name.public JobExecution getJobExecution(java.lang.Long executionId)
getJobExecution in interface JobExecutionDaoJobExecution for given identifier.public void synchronizeStatus(JobExecution jobExecution)
JobExecutionDao
synchronizeStatus in interface JobExecutionDaojobExecution - to be updated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||