|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.explore.support.SimpleJobExplorer
public class SimpleJobExplorer
Implementation of JobExplorer using the injected DAOs.
JobExplorer,
JobInstanceDao,
JobExecutionDao,
StepExecutionDao| Constructor Summary | |
|---|---|
SimpleJobExplorer(JobInstanceDao jobInstanceDao,
JobExecutionDao jobExecutionDao,
StepExecutionDao stepExecutionDao,
ExecutionContextDao ecDao)
|
|
| Method Summary | |
|---|---|
java.util.Set<JobExecution> |
findRunningJobExecutions(java.lang.String jobName)
|
JobExecution |
getJobExecution(java.lang.Long executionId)
Retrieve a JobExecution by its id. |
java.util.List<JobExecution> |
getJobExecutions(JobInstance jobInstance)
|
JobInstance |
getJobInstance(java.lang.Long instanceId)
|
java.util.List<JobInstance> |
getJobInstances(java.lang.String jobName,
int start,
int count)
Fetch JobInstance values in descending order of creation (and
therefore usually of first execution). |
StepExecution |
getStepExecution(java.lang.Long jobExecutionId,
java.lang.Long executionId)
Retrieve a StepExecution by its id and parent
JobExecution id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleJobExplorer(JobInstanceDao jobInstanceDao,
JobExecutionDao jobExecutionDao,
StepExecutionDao stepExecutionDao,
ExecutionContextDao ecDao)
| Method Detail |
|---|
public java.util.List<JobExecution> getJobExecutions(JobInstance jobInstance)
getJobExecutions in interface JobExplorerjobInstance - the JobInstance to query
JobInstancepublic java.util.Set<JobExecution> findRunningJobExecutions(java.lang.String jobName)
findRunningJobExecutions in interface JobExplorerjobName - the name of the job
public JobExecution getJobExecution(java.lang.Long executionId)
JobExplorerJobExecution by its id.
getJobExecution in interface JobExplorerexecutionId - the job execution id
JobExecution with this id, or null if not found
public StepExecution getStepExecution(java.lang.Long jobExecutionId,
java.lang.Long executionId)
JobExplorerStepExecution by its id and parent
JobExecution id.
getStepExecution in interface JobExplorerjobExecutionId - the parent job execution idexecutionId - the step execution id
StepExecution with this id, or null if not foundpublic JobInstance getJobInstance(java.lang.Long instanceId)
getJobInstance in interface JobExplorerJobInstance with this id, or null
public java.util.List<JobInstance> getJobInstances(java.lang.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 return
JobInstance values up to a maximum of count values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||