public class DistributedJobService
extends org.springframework.batch.admin.service.SimpleJobService
Constructor and Description |
---|
DistributedJobService(org.springframework.batch.admin.service.SearchableJobInstanceDao jobInstanceDao,
XdJdbcSearchableJobExecutionDao xdJdbcSearchableJobExecutionDao,
org.springframework.batch.admin.service.SearchableStepExecutionDao stepExecutionDao,
org.springframework.batch.core.repository.JobRepository jobRepository,
org.springframework.batch.core.launch.JobLauncher jobLauncher,
DistributedJobLocator batchJobLocator,
org.springframework.batch.core.repository.dao.ExecutionContextDao executionContextDao) |
Modifier and Type | Method and Description |
---|---|
org.springframework.batch.core.JobExecution |
abandon(java.lang.Long jobExecutionId) |
int |
countTopLevelJobExecutions() |
java.util.Collection<org.springframework.batch.core.JobExecution> |
getChildJobExecutions(long jobExecutionId)
Get a list of all
JobExecution s that are direct children to the
provided JobExecution ID. |
org.springframework.batch.core.Job |
getJob(java.lang.String jobName) |
java.util.Collection<org.springframework.batch.core.JobExecution> |
getTopLevelJobExecutions(int start,
int count)
Get a list of all
JobExecution s that do not have any parent JobExecution s. |
boolean |
isComposedJobExecution(long jobExecutionId)
Determines, if the Job Execution represents a composed job.
|
boolean |
isIncrementable(java.lang.String jobName) |
org.springframework.batch.core.JobExecution |
launch(java.lang.String jobName,
org.springframework.batch.core.JobParameters params) |
org.springframework.batch.core.JobExecution |
restart(java.lang.Long jobExecutionId) |
countJobExecutions, countJobExecutionsForJob, countJobInstances, countJobs, countStepExecutionsForStep, destroy, getJobExecution, getJobExecutionsForJobInstance, getJobInstance, getLastJobParameters, getStepExecution, getStepExecutions, getStepNamesForJob, isLaunchable, listJobExecutions, listJobExecutionsForJob, listJobInstances, listJobs, listStepExecutionsForStep, removeInactiveExecutions, setShutdownTimeout, stop, stopAll
public DistributedJobService(org.springframework.batch.admin.service.SearchableJobInstanceDao jobInstanceDao, XdJdbcSearchableJobExecutionDao xdJdbcSearchableJobExecutionDao, org.springframework.batch.admin.service.SearchableStepExecutionDao stepExecutionDao, org.springframework.batch.core.repository.JobRepository jobRepository, org.springframework.batch.core.launch.JobLauncher jobLauncher, DistributedJobLocator batchJobLocator, org.springframework.batch.core.repository.dao.ExecutionContextDao executionContextDao)
public org.springframework.batch.core.JobExecution launch(java.lang.String jobName, org.springframework.batch.core.JobParameters params) throws org.springframework.batch.core.launch.NoSuchJobException, org.springframework.batch.core.repository.JobExecutionAlreadyRunningException, org.springframework.batch.core.repository.JobRestartException, org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException, org.springframework.batch.core.JobParametersInvalidException
launch
in interface org.springframework.batch.admin.service.JobService
launch
in class org.springframework.batch.admin.service.SimpleJobService
org.springframework.batch.core.launch.NoSuchJobException
org.springframework.batch.core.repository.JobExecutionAlreadyRunningException
org.springframework.batch.core.repository.JobRestartException
org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException
org.springframework.batch.core.JobParametersInvalidException
public org.springframework.batch.core.JobExecution restart(java.lang.Long jobExecutionId) throws org.springframework.batch.core.launch.NoSuchJobExecutionException, org.springframework.batch.core.repository.JobExecutionAlreadyRunningException, org.springframework.batch.core.repository.JobRestartException, org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException, org.springframework.batch.core.launch.NoSuchJobException, org.springframework.batch.core.JobParametersInvalidException
restart
in interface org.springframework.batch.admin.service.JobService
restart
in class org.springframework.batch.admin.service.SimpleJobService
org.springframework.batch.core.launch.NoSuchJobExecutionException
org.springframework.batch.core.repository.JobExecutionAlreadyRunningException
org.springframework.batch.core.repository.JobRestartException
org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException
org.springframework.batch.core.launch.NoSuchJobException
org.springframework.batch.core.JobParametersInvalidException
public org.springframework.batch.core.JobExecution abandon(java.lang.Long jobExecutionId) throws org.springframework.batch.core.launch.NoSuchJobExecutionException, org.springframework.batch.core.repository.JobExecutionAlreadyRunningException
abandon
in interface org.springframework.batch.admin.service.JobService
abandon
in class org.springframework.batch.admin.service.SimpleJobService
org.springframework.batch.core.launch.NoSuchJobExecutionException
org.springframework.batch.core.repository.JobExecutionAlreadyRunningException
public boolean isIncrementable(java.lang.String jobName)
isIncrementable
in interface org.springframework.batch.admin.service.JobService
isIncrementable
in class org.springframework.batch.admin.service.SimpleJobService
public org.springframework.batch.core.Job getJob(java.lang.String jobName) throws org.springframework.batch.core.launch.NoSuchJobException
org.springframework.batch.core.launch.NoSuchJobException
public java.util.Collection<org.springframework.batch.core.JobExecution> getTopLevelJobExecutions(int start, int count)
JobExecution
s that do not have any parent JobExecution
s.start
- count
- List
of JobExecution
s. Will never return null.public int countTopLevelJobExecutions()
public java.util.Collection<org.springframework.batch.core.JobExecution> getChildJobExecutions(long jobExecutionId)
JobExecution
s that are direct children to the
provided JobExecution
ID.jobExecutionId
- List
of JobExecution
s. Will never return null.public boolean isComposedJobExecution(long jobExecutionId)
jobExecutionId
- true
if the Job Execution represents a composed job.