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 TypeMethodDescriptionintintcountJobExecutions(String jobName) Gets count of job executions.intcountJobExecutions(String jobName, org.springframework.batch.core.BatchStatus status) Gets count of job executions.intcountJobExecutions(org.springframework.batch.core.BatchStatus status) Gets count of job executions.List<org.springframework.batch.core.JobExecution>getJobExecutions(int start, int count) Get theJobExecutionsin reverse order of creation (so normally of execution).List<org.springframework.batch.core.JobExecution>getJobExecutions(String jobName, int start, int count) Get theJobExecutionsfor 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 theJobExecutionsfor 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 theJobExecutionsfor a specific status in reverse order of creation (so normally of execution).getJobExecutionsWithStepCount(int start, int count) Get theJobExecutionsin reverse order of creation (so normally of execution) without StepExecution.getJobExecutionsWithStepCount(String jobName, int start, int count) Get theJobExecutionsfor a specific job name in reverse order of creation (so normally of execution).getJobExecutionsWithStepCount(Date fromDate, Date toDate, int start, int count) Get theJobExecutionsfor a specific date range in reverse order of creation (so normally of execution).getJobExecutionsWithStepCountFilteredByJobInstanceId(int jobInstanceId, int start, int count) Get theJobExecutionsfor a specific job instance id in reverse order of creation (so normally of execution).getJobExecutionsWithStepCountFilteredByTaskExecutionId(int taskExecutionId, int start, int count) Get theJobExecutionsfor 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
JobExecutioninstances
-
getJobExecutions
List<org.springframework.batch.core.JobExecution> getJobExecutions(String jobName, org.springframework.batch.core.BatchStatus status, int start, int count) Get theJobExecutionsfor 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
JobExecutioninstances requested
-
getJobExecutions
List<org.springframework.batch.core.JobExecution> getJobExecutions(String jobName, int start, int count) Get theJobExecutionsfor 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
JobExecutioninstances requested
-
getJobExecutions
List<org.springframework.batch.core.JobExecution> getJobExecutions(org.springframework.batch.core.BatchStatus status, int start, int count) Get theJobExecutionsfor 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
JobExecutioninstances requested
-
getJobExecutionsWithStepCount
Get theJobExecutionsfor 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
JobExecutionWithStepCountinstances requested
-
getJobExecutions
Get theJobExecutionsin 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
JobExecutioninstances requested
-
getJobExecutionsWithStepCount
Get theJobExecutionsin 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
JobExecutionWithStepCountinstances 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
JobExecutionsbelonging to this job
-
getRunningJobExecutions
Collection<org.springframework.batch.core.JobExecution> getRunningJobExecutions()Find all the running executions (status less than STOPPING).- Returns:
- all the
JobExecutioninstances 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
JobExecutionsbelonging to this job
-
countJobExecutions
Gets count of job executions.- Parameters:
jobName- the name of a jobstatus- the job status- Returns:
- the number of
JobExecutionsbelonging to this job
-
getJobExecutionsWithStepCount
List<JobExecutionWithStepCount> getJobExecutionsWithStepCount(Date fromDate, Date toDate, int start, int count) Get theJobExecutionsfor 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
JobExecutionWithStepCountinstances requested
-
getJobExecutionsWithStepCountFilteredByJobInstanceId
List<JobExecutionWithStepCount> getJobExecutionsWithStepCountFilteredByJobInstanceId(int jobInstanceId, int start, int count) Get theJobExecutionsfor 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
JobExecutionWithStepCountinstances requested
-
getJobExecutionsWithStepCountFilteredByTaskExecutionId
List<JobExecutionWithStepCount> getJobExecutionsWithStepCountFilteredByTaskExecutionId(int taskExecutionId, int start, int count) Get theJobExecutionsfor 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
JobExecutionWithStepCountinstances requested
-