public class SimpleJobExplorer extends Object implements JobExplorer
JobExplorer using the injected DAOs.JobExplorer,
JobInstanceDao,
JobExecutionDao,
StepExecutionDao| Constructor and Description |
|---|
SimpleJobExplorer(JobInstanceDao jobInstanceDao,
JobExecutionDao jobExecutionDao,
StepExecutionDao stepExecutionDao,
ExecutionContextDao ecDao) |
| Modifier and Type | Method and Description |
|---|---|
Set<JobExecution> |
findRunningJobExecutions(String jobName)
Retrieve running job executions.
|
JobExecution |
getJobExecution(Long executionId)
Retrieve a
JobExecution by its id. |
List<JobExecution> |
getJobExecutions(JobInstance jobInstance)
Retrieve job executions by their job instance.
|
JobInstance |
getJobInstance(Long instanceId) |
List<JobInstance> |
getJobInstances(String jobName,
int start,
int count)
Fetch
JobInstance values in descending order of creation (and
therefore usually of first execution). |
List<String> |
getJobNames()
Query the repository for all unique
JobInstance names (sorted
alphabetically). |
StepExecution |
getStepExecution(Long jobExecutionId,
Long executionId)
Retrieve a
StepExecution by its id and parent
JobExecution id. |
public SimpleJobExplorer(JobInstanceDao jobInstanceDao, JobExecutionDao jobExecutionDao, StepExecutionDao stepExecutionDao, ExecutionContextDao ecDao)
public List<JobExecution> getJobExecutions(JobInstance jobInstance)
JobExplorerJobExplorer.getStepExecution(Long, Long) to hydrate them in that case.getJobExecutions in interface JobExplorerjobInstance - the JobInstance to queryJobInstancepublic Set<JobExecution> findRunningJobExecutions(String jobName)
JobExplorerJobExplorer.getStepExecution(Long, Long) to hydrate them in that case.findRunningJobExecutions in interface JobExplorerjobName - the name of the jobpublic JobExecution getJobExecution(Long executionId)
JobExplorerJobExecution by its id. The complete object graph for
this execution should be returned (unless otherwise indicated) including
the parent JobInstance and associated ExecutionContext
and StepExecution instances (also including their execution
contexts).getJobExecution in interface JobExplorerexecutionId - the job execution idJobExecution with this id, or null if not foundpublic StepExecution getStepExecution(Long jobExecutionId, Long executionId)
JobExplorerStepExecution by its id and parent
JobExecution id. The execution context for the step should be
available in the result, and the parent job execution should have its
primitive properties, but may not contain the job instance information.getStepExecution in interface JobExplorerjobExecutionId - the parent job execution idexecutionId - the step execution idStepExecution with this id, or null if not foundJobExplorer.getJobExecution(Long)public JobInstance getJobInstance(Long instanceId)
getJobInstance in interface JobExplorerJobInstance with this id, or nullpublic List<JobInstance> getJobInstances(String jobName, int start, int count)
JobExplorerJobInstance values in descending order of creation (and
therefore usually of first execution).getJobInstances in interface JobExplorerjobName - the name of the job to querystart - the start index of the instances to returncount - the maximum number of instances to returnJobInstance values up to a maximum of count valuespublic List<String> getJobNames()
JobExplorerJobInstance names (sorted
alphabetically).getJobNames in interface JobExplorerCopyright © 2013. All Rights Reserved.