Interface SearchableJobExecutionDao
- All Superinterfaces:
org.springframework.batch.core.repository.dao.JobExecutionDao
- All Known Implementing Classes:
JdbcSearchableJobExecutionDao
public interface SearchableJobExecutionDao
extends org.springframework.batch.core.repository.dao.JobExecutionDao
- Author:
- Dave Syer, Corneil du Plessis
-
Method Summary
Modifier and TypeMethodDescriptionint
int
countJobExecutions
(String jobName) Gets count of job executions.int
countJobExecutions
(String jobName, org.springframework.batch.core.BatchStatus status) Gets count of job executions.int
countJobExecutions
(org.springframework.batch.core.BatchStatus status) Gets count of job executions.List<org.springframework.batch.core.JobExecution>
getJobExecutions
(int start, int count) Get theJobExecutions
in reverse order of creation (so normally of execution).List<org.springframework.batch.core.JobExecution>
getJobExecutions
(String jobName, int start, int count) Get theJobExecutions
for a specific job name 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 theJobExecutions
for a specific job name in reverse order of creation (so normally of execution).List<org.springframework.batch.core.JobExecution>
getJobExecutions
(org.springframework.batch.core.BatchStatus status, int start, int count) Get theJobExecutions
for a specific status in reverse order of creation (so normally of execution).getJobExecutionsWithStepCount
(int start, int count) Get theJobExecutions
in reverse order of creation (so normally of execution) without StepExecution.getJobExecutionsWithStepCount
(String jobName, int start, int count) Get theJobExecutions
for a specific job name in reverse order of creation (so normally of execution).getJobExecutionsWithStepCount
(Date fromDate, Date toDate, int start, int count) Get theJobExecutions
for a specific date range in reverse order of creation (so normally of execution).getJobExecutionsWithStepCountFilteredByJobInstanceId
(int jobInstanceId, int start, int count) Get theJobExecutions
for a specific job instance id in reverse order of creation (so normally of execution).getJobExecutionsWithStepCountFilteredByTaskExecutionId
(int taskExecutionId, int start, int count) Get theJobExecutions
for a specific task execution id in reverse order of creation (so normally of execution).Collection<org.springframework.batch.core.JobExecution>
Find all the running executions (status less than STOPPING).Methods inherited from interface org.springframework.batch.core.repository.dao.JobExecutionDao
deleteJobExecution, deleteJobExecutionParameters, findJobExecutions, findRunningJobExecutions, getJobExecution, getLastJobExecution, saveJobExecution, synchronizeStatus, updateJobExecution
-
Method Details
-
countJobExecutions
int countJobExecutions()- Returns:
- the total number of
JobExecution
instances
-
getJobExecutions
List<org.springframework.batch.core.JobExecution> getJobExecutions(String jobName, org.springframework.batch.core.BatchStatus status, int start, int count) Get theJobExecutions
for a specific job name in reverse order of creation (so normally of execution).- Parameters:
jobName
- the name of the jobstatus
- the status of the jobstart
- the start index of the instancescount
- the maximum number of instances to return- Returns:
- the
JobExecution
instances requested
-
getJobExecutions
List<org.springframework.batch.core.JobExecution> getJobExecutions(String jobName, int start, int count) Get theJobExecutions
for a specific job name in reverse order of creation (so normally of execution).- Parameters:
jobName
- the name of the jobstart
- the start index of the instancescount
- the maximum number of instances to return- Returns:
- the
JobExecution
instances requested
-
getJobExecutions
List<org.springframework.batch.core.JobExecution> getJobExecutions(org.springframework.batch.core.BatchStatus status, int start, int count) Get theJobExecutions
for a specific status in reverse order of creation (so normally of execution).- Parameters:
start
- the start index of the instancesstatus
- the status of the jobcount
- the maximum number of instances to return- Returns:
- the
JobExecution
instances requested
-
getJobExecutionsWithStepCount
Get theJobExecutions
for a specific job name in reverse order of creation (so normally of execution).- Parameters:
jobName
- the name of the jobstart
- the start index of the instancescount
- the maximum number of instances to return- Returns:
- the
JobExecutionWithStepCount
instances requested
-
getJobExecutions
Get theJobExecutions
in reverse order of creation (so normally of execution).- Parameters:
start
- the start index of the instancescount
- the maximum number of instances to return- Returns:
- the
JobExecution
instances requested
-
getJobExecutionsWithStepCount
Get theJobExecutions
in reverse order of creation (so normally of execution) without StepExecution.- Parameters:
start
- the start index of the instancescount
- the maximum number of instances to return- Returns:
- the
JobExecutionWithStepCount
instances requested
-
getJobExecutionsByTaskIds
- Parameters:
ids
- the set of task execution ids.- Returns:
- Map with the TaskExecution id as the key and the set of job execution ids as values.
-
countJobExecutions
Gets count of job executions.- Parameters:
jobName
- the name of a job- Returns:
- the number of
JobExecutions
belonging to this job
-
getRunningJobExecutions
Collection<org.springframework.batch.core.JobExecution> getRunningJobExecutions()Find all the running executions (status less than STOPPING).- Returns:
- all the
JobExecution
instances that are currently running
-
countJobExecutions
int countJobExecutions(org.springframework.batch.core.BatchStatus status) Gets count of job executions.- Parameters:
status
- the job status- Returns:
- the number of
JobExecutions
belonging to this job
-
countJobExecutions
Gets count of job executions.- Parameters:
jobName
- the name of a jobstatus
- the job status- Returns:
- the number of
JobExecutions
belonging to this job
-
getJobExecutionsWithStepCount
List<JobExecutionWithStepCount> getJobExecutionsWithStepCount(Date fromDate, Date toDate, int start, int count) Get theJobExecutions
for a specific date range in reverse order of creation (so normally of execution).- Parameters:
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 return- Returns:
- the
JobExecutionWithStepCount
instances requested
-
getJobExecutionsWithStepCountFilteredByJobInstanceId
List<JobExecutionWithStepCount> getJobExecutionsWithStepCountFilteredByJobInstanceId(int jobInstanceId, int start, int count) Get theJobExecutions
for a specific job instance id in reverse order of creation (so normally of execution).- Parameters:
jobInstanceId
- the job instance id associated with the execution.start
- the start index of the instancescount
- the maximum number of instances to return- Returns:
- the
JobExecutionWithStepCount
instances requested
-
getJobExecutionsWithStepCountFilteredByTaskExecutionId
List<JobExecutionWithStepCount> getJobExecutionsWithStepCountFilteredByTaskExecutionId(int taskExecutionId, int start, int count) Get theJobExecutions
for a specific task execution id in reverse order of creation (so normally of execution).- Parameters:
taskExecutionId
- the task execution id associated with the execution.start
- the start index of the instancescount
- the maximum number of instances to return- Returns:
- the
JobExecutionWithStepCount
instances requested
-