org.springframework.batch.admin.service
Class JdbcSearchableStepExecutionDao
java.lang.Object
org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
org.springframework.batch.core.repository.dao.JdbcStepExecutionDao
org.springframework.batch.admin.service.JdbcSearchableStepExecutionDao
- All Implemented Interfaces:
- SearchableStepExecutionDao, org.springframework.batch.core.repository.dao.StepExecutionDao, org.springframework.beans.factory.InitializingBean
public class JdbcSearchableStepExecutionDao
- extends org.springframework.batch.core.repository.dao.JdbcStepExecutionDao
- implements SearchableStepExecutionDao
- Author:
- Dave Syer
| Fields inherited from class org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao |
DEFAULT_EXIT_MESSAGE_LENGTH, DEFAULT_TABLE_PREFIX |
|
Method Summary |
void |
afterPropertiesSet()
|
int |
countStepExecutions(java.lang.String jobName,
java.lang.String stepName)
Count all the step executions for a given step name pattern. |
java.util.Collection<org.springframework.batch.core.StepExecution> |
findStepExecutions(java.lang.String jobName,
java.lang.String stepName,
int start,
int count)
Find all the step executions for a given step name, or step name pattern
(with wildcards specified as '*') sorted in descending order of id. |
java.util.Collection<java.lang.String> |
findStepNamesForJobExecution(java.lang.String jobName,
java.lang.String excludesPattern)
Find all the names of steps that have been executed as part of this job. |
void |
setDataSource(javax.sql.DataSource dataSource)
|
| Methods inherited from class org.springframework.batch.core.repository.dao.JdbcStepExecutionDao |
addStepExecutions, getStepExecution, saveStepExecution, setExitMessageLength, setStepExecutionIncrementer, updateStepExecution |
| Methods inherited from class org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao |
getClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefix |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.batch.core.repository.dao.StepExecutionDao |
addStepExecutions, getStepExecution, saveStepExecution, updateStepExecution |
JdbcSearchableStepExecutionDao
public JdbcSearchableStepExecutionDao()
setDataSource
public void setDataSource(javax.sql.DataSource dataSource)
- Parameters:
dataSource - the dataSource to set
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSet in class org.springframework.batch.core.repository.dao.JdbcStepExecutionDao
- Throws:
java.lang.Exception- See Also:
JdbcJobExecutionDao.afterPropertiesSet()
findStepNamesForJobExecution
public java.util.Collection<java.lang.String> findStepNamesForJobExecution(java.lang.String jobName,
java.lang.String excludesPattern)
- Description copied from interface:
SearchableStepExecutionDao
- Find all the names of steps that have been executed as part of this job.
Implementations should remove step names matching the pattern provided.
- Specified by:
findStepNamesForJobExecution in interface SearchableStepExecutionDao
- Parameters:
jobName - the name of the job to search forexcludesPattern - a pattern for step names to exclude
- Returns:
- the names of step executions from job executions in the
repository
findStepExecutions
public java.util.Collection<org.springframework.batch.core.StepExecution> findStepExecutions(java.lang.String jobName,
java.lang.String stepName,
int start,
int count)
- Description copied from interface:
SearchableStepExecutionDao
- Find all the step executions for a given step name, or step name pattern
(with wildcards specified as '*') sorted in descending order of id.
- Specified by:
findStepExecutions in interface SearchableStepExecutionDao
- Parameters:
jobName - the job name or patternstepName - the step name or patternstart - the start index of the step executions to returncount - the maximum number of step executions to return
- Returns:
- a collection of step executions
countStepExecutions
public int countStepExecutions(java.lang.String jobName,
java.lang.String stepName)
- Description copied from interface:
SearchableStepExecutionDao
- Count all the step executions for a given step name pattern.
- Specified by:
countStepExecutions in interface SearchableStepExecutionDao
- Parameters:
jobName - the job name patternstepName - the step name pattern.
- Returns:
- the total number of step executions in the repository matching the pattern
Copyright © 2011. All Rights Reserved.