org.springframework.batch.admin.service
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

Method Summary
 int countJobExecutions()
           
 int countJobExecutions(java.lang.String jobName)
           
 java.util.List<org.springframework.batch.core.JobExecution> getJobExecutions(int start, int count)
          Get the JobExecutions in reverse order of creation (so normally of execution).
 java.util.List<org.springframework.batch.core.JobExecution> getJobExecutions(java.lang.String jobName, int start, int count)
          Get the JobExecutions for a specific job name in reverse order of creation (so normally of execution).
 java.util.Collection<org.springframework.batch.core.JobExecution> getRunningJobExecutions()
          Find all the running executions (status less than STOPPING).
 
Methods inherited from interface org.springframework.batch.core.repository.dao.JobExecutionDao
findJobExecutions, findRunningJobExecutions, getJobExecution, getLastJobExecution, saveJobExecution, synchronizeStatus, updateJobExecution
 

Method Detail

countJobExecutions

int countJobExecutions()
Returns:
the total number of JobExecution instances

getJobExecutions

java.util.List<org.springframework.batch.core.JobExecution> getJobExecutions(java.lang.String jobName,
                                                                             int start,
                                                                             int count)
Get the JobExecutions for a specific job name in reverse order of creation (so normally of execution).

Parameters:
jobName - the name of the job
start - the start index of the instances
count - the maximum number of instances to return
Returns:
the JobExecution instances requested

getJobExecutions

java.util.List<org.springframework.batch.core.JobExecution> getJobExecutions(int start,
                                                                             int count)
Get the JobExecutions in reverse order of creation (so normally of execution).

Parameters:
start - the start index of the instances
count - the maximum number of instances to return
Returns:
the JobExecution instances requested

countJobExecutions

int countJobExecutions(java.lang.String jobName)
Parameters:
jobName - the name of a job
Returns:
the number of JobExecutions belonging to this job

getRunningJobExecutions

java.util.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


Copyright © 2011. All Rights Reserved.