public class JdbcSearchableJobExecutionDao extends org.springframework.batch.core.repository.dao.JdbcJobExecutionDao implements SearchableJobExecutionDao
Modifier and Type | Class and Description |
---|---|
protected class |
JdbcSearchableJobExecutionDao.JobExecutionRowMapper
Re-usable mapper for
JobExecution instances. |
protected class |
JdbcSearchableJobExecutionDao.JobExecutionStepCountRowMapper
Re-usable mapper for
JobExecutionWithStepCount instances. |
Constructor and Description |
---|
JdbcSearchableJobExecutionDao() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
int |
countJobExecutions() |
int |
countJobExecutions(org.springframework.batch.core.BatchStatus status)
Gets count of job executions.
|
int |
countJobExecutions(String jobName)
Gets count of job executions.
|
int |
countJobExecutions(String jobName,
org.springframework.batch.core.BatchStatus status)
Gets count of job executions.
|
List<org.springframework.batch.core.JobExecution> |
getJobExecutions(org.springframework.batch.core.BatchStatus status,
int start,
int count)
Get the
JobExecutions for a specific status in
reverse order of creation (so normally of execution). |
List<org.springframework.batch.core.JobExecution> |
getJobExecutions(int start,
int count)
Get the
JobExecutions in reverse order of creation
(so normally of execution). |
List<org.springframework.batch.core.JobExecution> |
getJobExecutions(String jobName,
org.springframework.batch.core.BatchStatus status,
int start,
int count)
Get the
JobExecutions for a specific job name in
reverse order of creation (so normally of execution). |
List<org.springframework.batch.core.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). |
List<JobExecutionWithStepCount> |
getJobExecutionsWithStepCount(Date fromDate,
Date toDate,
int start,
int count)
Get the
JobExecutions for a specific date range in
reverse order of creation (so normally of execution). |
List<JobExecutionWithStepCount> |
getJobExecutionsWithStepCount(int start,
int count)
Get the
JobExecutions in reverse order of creation
(so normally of execution) without StepExecution. |
List<JobExecutionWithStepCount> |
getJobExecutionsWithStepCount(String jobName,
int start,
int count)
Get the
JobExecutions for a specific job name in
reverse order of creation (so normally of execution). |
List<JobExecutionWithStepCount> |
getJobExecutionsWithStepCountFilteredByJobInstanceId(int jobInstanceId,
int start,
int count)
Get the
JobExecutions for a specific job instance id in
reverse order of creation (so normally of execution). |
List<JobExecutionWithStepCount> |
getJobExecutionsWithStepCountFilteredByTaskExecutionId(int taskExecutionId,
int start,
int count)
Get the
JobExecutions for a specific task execution id in
reverse order of creation (so normally of execution). |
Collection<org.springframework.batch.core.JobExecution> |
getRunningJobExecutions()
Find all the running executions (status less than STOPPING).
|
void |
saveJobExecution(org.springframework.batch.core.JobExecution jobExecution) |
void |
setDataSource(DataSource dataSource) |
void |
synchronizeStatus(org.springframework.batch.core.JobExecution jobExecution) |
void |
updateJobExecution(org.springframework.batch.core.JobExecution jobExecution) |
findJobExecutions, findRunningJobExecutions, getJobExecution, getJobParameters, getLastJobExecution, setExitMessageLength, setJobExecutionIncrementer
getClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefix
public void setDataSource(DataSource dataSource)
dataSource
- the dataSource to setpublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class org.springframework.batch.core.repository.dao.JdbcJobExecutionDao
Exception
JdbcJobExecutionDao.afterPropertiesSet()
public int countJobExecutions()
countJobExecutions
in interface SearchableJobExecutionDao
JobExecution
instancesSearchableJobExecutionDao.countJobExecutions()
public int countJobExecutions(String jobName)
SearchableJobExecutionDao
countJobExecutions
in interface SearchableJobExecutionDao
jobName
- the name of a jobJobExecutions
belonging to
this jobSearchableJobExecutionDao.countJobExecutions(String)
public int countJobExecutions(org.springframework.batch.core.BatchStatus status)
SearchableJobExecutionDao
countJobExecutions
in interface SearchableJobExecutionDao
status
- the job statusJobExecutions
belonging to
this jobSearchableJobExecutionDao.countJobExecutions(BatchStatus)
public int countJobExecutions(String jobName, org.springframework.batch.core.BatchStatus status)
SearchableJobExecutionDao
countJobExecutions
in interface SearchableJobExecutionDao
jobName
- the name of a jobstatus
- the job statusJobExecutions
belonging to
this jobSearchableJobExecutionDao.countJobExecutions(String, BatchStatus)
public List<JobExecutionWithStepCount> getJobExecutionsWithStepCount(Date fromDate, Date toDate, int start, int count)
SearchableJobExecutionDao
JobExecutions
for a specific date range in
reverse order of creation (so normally of execution).getJobExecutionsWithStepCount
in interface SearchableJobExecutionDao
fromDate
- the date which start date must be greater than.toDate
- the date which start date must be less than.start
- the start index of the instancescount
- the maximum number of instances to returnJobExecutionWithStepCount
instances requestedSearchableJobExecutionDao.getJobExecutionsWithStepCount(Date, Date, int, int)
public List<JobExecutionWithStepCount> getJobExecutionsWithStepCountFilteredByJobInstanceId(int jobInstanceId, int start, int count)
SearchableJobExecutionDao
JobExecutions
for a specific job instance id in
reverse order of creation (so normally of execution).getJobExecutionsWithStepCountFilteredByJobInstanceId
in interface SearchableJobExecutionDao
jobInstanceId
- the job instance id associated with the execution.start
- the start index of the instancescount
- the maximum number of instances to returnJobExecutionWithStepCount
instances requestedpublic List<JobExecutionWithStepCount> getJobExecutionsWithStepCountFilteredByTaskExecutionId(int taskExecutionId, int start, int count)
SearchableJobExecutionDao
JobExecutions
for a specific task execution id in
reverse order of creation (so normally of execution).getJobExecutionsWithStepCountFilteredByTaskExecutionId
in interface SearchableJobExecutionDao
taskExecutionId
- the task execution id associated with the execution.start
- the start index of the instancescount
- the maximum number of instances to returnJobExecutionWithStepCount
instances requestedpublic Collection<org.springframework.batch.core.JobExecution> getRunningJobExecutions()
SearchableJobExecutionDao
getRunningJobExecutions
in interface SearchableJobExecutionDao
JobExecution
instances that are currently runningSearchableJobExecutionDao.getRunningJobExecutions()
public List<org.springframework.batch.core.JobExecution> getJobExecutions(String jobName, org.springframework.batch.core.BatchStatus status, int start, int count)
SearchableJobExecutionDao
JobExecutions
for a specific job name in
reverse order of creation (so normally of execution).getJobExecutions
in interface SearchableJobExecutionDao
jobName
- the name of the jobstatus
- the status of the jobstart
- the start index of the instancescount
- the maximum number of instances to returnJobExecution
instances requestedSearchableJobExecutionDao.getJobExecutions(String, BatchStatus, int, int)
public List<org.springframework.batch.core.JobExecution> getJobExecutions(String jobName, int start, int count)
SearchableJobExecutionDao
JobExecutions
for a specific job name in
reverse order of creation (so normally of execution).getJobExecutions
in interface SearchableJobExecutionDao
jobName
- 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<org.springframework.batch.core.JobExecution> getJobExecutions(org.springframework.batch.core.BatchStatus status, int start, int count)
SearchableJobExecutionDao
JobExecutions
for a specific status in
reverse order of creation (so normally of execution).getJobExecutions
in interface SearchableJobExecutionDao
status
- the status of the jobstart
- the start index of the instancescount
- the maximum number of instances to returnJobExecution
instances requestedpublic List<JobExecutionWithStepCount> getJobExecutionsWithStepCount(String jobName, int start, int count)
SearchableJobExecutionDao
JobExecutions
for a specific job name in
reverse order of creation (so normally of execution).getJobExecutionsWithStepCount
in interface SearchableJobExecutionDao
jobName
- the name of the jobstart
- the start index of the instancescount
- the maximum number of instances to returnJobExecutionWithStepCount
instances requestedSearchableJobExecutionDao.getJobExecutionsWithStepCount(String, int, int)
public List<org.springframework.batch.core.JobExecution> getJobExecutions(int start, int count)
SearchableJobExecutionDao
JobExecutions
in reverse order of creation
(so normally of execution).getJobExecutions
in interface SearchableJobExecutionDao
start
- the start index of the instancescount
- the maximum number of instances to returnJobExecution
instances requestedSearchableJobExecutionDao.getJobExecutions(int, int)
public List<JobExecutionWithStepCount> getJobExecutionsWithStepCount(int start, int count)
SearchableJobExecutionDao
JobExecutions
in reverse order of creation
(so normally of execution) without StepExecution.getJobExecutionsWithStepCount
in interface SearchableJobExecutionDao
start
- the start index of the instancescount
- the maximum number of instances to returnJobExecutionWithStepCount
instances requestedpublic void saveJobExecution(org.springframework.batch.core.JobExecution jobExecution)
saveJobExecution
in interface org.springframework.batch.core.repository.dao.JobExecutionDao
saveJobExecution
in class org.springframework.batch.core.repository.dao.JdbcJobExecutionDao
public void synchronizeStatus(org.springframework.batch.core.JobExecution jobExecution)
synchronizeStatus
in interface org.springframework.batch.core.repository.dao.JobExecutionDao
synchronizeStatus
in class org.springframework.batch.core.repository.dao.JdbcJobExecutionDao
public void updateJobExecution(org.springframework.batch.core.JobExecution jobExecution)
updateJobExecution
in interface org.springframework.batch.core.repository.dao.JobExecutionDao
updateJobExecution
in class org.springframework.batch.core.repository.dao.JdbcJobExecutionDao
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.