public class JdbcSearchableStepExecutionDao extends org.springframework.batch.core.repository.dao.JdbcStepExecutionDao implements SearchableStepExecutionDao
Constructor and Description |
---|
JdbcSearchableStepExecutionDao() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
int |
countStepExecutions(String jobName,
String stepName)
Count all the step executions for a given step name pattern.
|
int |
countStepExecutionsForJobExecution(long jobExecutionId)
Count all the step executions for a given job execution.
|
Collection<org.springframework.batch.core.StepExecution> |
findStepExecutions(String jobName,
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.
|
Collection<String> |
findStepNamesForJobExecution(String jobName,
String excludesPattern)
Find all the names of steps that have been executed as part of this job.
|
void |
setDataSource(DataSource dataSource) |
addStepExecutions, countStepExecutions, getLastStepExecution, getStepExecution, saveStepExecution, saveStepExecutions, setExitMessageLength, setStepExecutionIncrementer, updateStepExecution
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.JdbcStepExecutionDao
Exception
JdbcJobExecutionDao.afterPropertiesSet()
public Collection<String> findStepNamesForJobExecution(String jobName, String excludesPattern)
SearchableStepExecutionDao
findStepNamesForJobExecution
in interface SearchableStepExecutionDao
jobName
- the name of the job to search forexcludesPattern
- a pattern for step names to excludepublic Collection<org.springframework.batch.core.StepExecution> findStepExecutions(String jobName, String stepName, int start, int count)
SearchableStepExecutionDao
findStepExecutions
in interface SearchableStepExecutionDao
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 returnpublic int countStepExecutions(String jobName, String stepName)
SearchableStepExecutionDao
countStepExecutions
in interface SearchableStepExecutionDao
jobName
- the job name patternstepName
- the step name pattern.public int countStepExecutionsForJobExecution(long jobExecutionId)
SearchableStepExecutionDao
countStepExecutionsForJobExecution
in interface SearchableStepExecutionDao
jobExecutionId
- the job execution to retrieve count from.Copyright © 2024 Pivotal Software, Inc.. All rights reserved.