public class JdbcSearchableJobExecutionDao extends JdbcJobExecutionDao implements SearchableJobExecutionDao
| Modifier and Type | Class and Description |
|---|---|
protected class |
JdbcSearchableJobExecutionDao.JobExecutionRowMapper
Re-usable mapper for
JobExecution instances. |
DEFAULT_EXIT_MESSAGE_LENGTH, DEFAULT_TABLE_PREFIX| Constructor and Description |
|---|
JdbcSearchableJobExecutionDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
int |
countJobExecutions() |
int |
countJobExecutions(String jobName) |
List<JobExecution> |
getJobExecutions(int start,
int count)
Get the
JobExecutions in reverse order of creation
(so normally of execution). |
List<JobExecution> |
getJobExecutions(String jobName,
int start,
int count)
Get the
JobExecutions for a specific job name in
reverse order of creation (so normally of execution). |
Collection<JobExecution> |
getRunningJobExecutions()
Find all the running executions (status less than STOPPING).
|
void |
saveJobExecution(JobExecution jobExecution) |
void |
setDataSource(DataSource dataSource) |
void |
synchronizeStatus(JobExecution jobExecution) |
void |
updateJobExecution(JobExecution jobExecution) |
findJobExecutions, findRunningJobExecutions, getJobExecution, getJobParameters, getLastJobExecution, setExitMessageLength, setJobExecutionIncrementergetClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefixclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindJobExecutions, findRunningJobExecutions, getJobExecution, getLastJobExecutionpublic void setDataSource(DataSource dataSource)
dataSource - the dataSource to setpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class JdbcJobExecutionDaoExceptionJdbcJobExecutionDao.afterPropertiesSet()public int countJobExecutions()
countJobExecutions in interface SearchableJobExecutionDaoJobExecution instancesSearchableJobExecutionDao.countJobExecutions()public int countJobExecutions(String jobName)
countJobExecutions in interface SearchableJobExecutionDaojobName - the name of a jobJobExecutions belonging to
this jobSearchableJobExecutionDao.countJobExecutions(String)public Collection<JobExecution> getRunningJobExecutions()
SearchableJobExecutionDaogetRunningJobExecutions in interface SearchableJobExecutionDaoJobExecution instances that are currently runningSearchableJobExecutionDao.getRunningJobExecutions()public List<JobExecution> getJobExecutions(String jobName, int start, int count)
SearchableJobExecutionDaoJobExecutions for a specific job name in
reverse order of creation (so normally of execution).getJobExecutions in interface SearchableJobExecutionDaojobName - the name of the jobstart - the start index of the instancescount - the maximum number of instances to returnJobExecution instances requestedSearchableJobExecutionDao.getJobExecutions(String, int, int)public List<JobExecution> getJobExecutions(int start, int count)
SearchableJobExecutionDaoJobExecutions in reverse order of creation
(so normally of execution).getJobExecutions in interface SearchableJobExecutionDaostart - the start index of the instancescount - the maximum number of instances to returnJobExecution instances requestedSearchableJobExecutionDao.getJobExecutions(int, int)public void saveJobExecution(JobExecution jobExecution)
saveJobExecution in interface JobExecutionDaosaveJobExecution in class JdbcJobExecutionDaopublic void synchronizeStatus(JobExecution jobExecution)
synchronizeStatus in interface JobExecutionDaosynchronizeStatus in class JdbcJobExecutionDaopublic void updateJobExecution(JobExecution jobExecution)
updateJobExecution in interface JobExecutionDaoupdateJobExecution in class JdbcJobExecutionDaoCopyright © 2015. All rights reserved.