Class JobExecutionService


  • @Service
    public class JobExecutionService
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      JobExecutionService​(org.springframework.batch.core.explore.JobExplorer jobExplorer, com.github.chrisgleissner.springbatchrest.util.adhoc.AdHocStarter adHocStarter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Job job​(java.lang.String jobName)  
      JobExecution jobExecution​(long executionId)  
      java.util.Collection<JobExecution> jobExecutions​(java.util.Optional<java.lang.String> jobNameRegexp, java.util.Optional<org.springframework.batch.core.ExitStatus> exitStatus, java.util.Optional<java.lang.Integer> maxNumberOfJobInstances, java.util.Optional<java.lang.Integer> maxNumberOfJobExecutionsPerInstance)  
      JobExecution launch​(com.github.chrisgleissner.springbatchrest.util.adhoc.JobConfig jobConfig)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JobExecutionService

        @Autowired
        public JobExecutionService​(org.springframework.batch.core.explore.JobExplorer jobExplorer,
                                   com.github.chrisgleissner.springbatchrest.util.adhoc.AdHocStarter adHocStarter)
    • Method Detail

      • jobExecution

        public JobExecution jobExecution​(long executionId)
      • jobExecutions

        public java.util.Collection<JobExecution> jobExecutions​(java.util.Optional<java.lang.String> jobNameRegexp,
                                                                java.util.Optional<org.springframework.batch.core.ExitStatus> exitStatus,
                                                                java.util.Optional<java.lang.Integer> maxNumberOfJobInstances,
                                                                java.util.Optional<java.lang.Integer> maxNumberOfJobExecutionsPerInstance)
      • launch

        public JobExecution launch​(com.github.chrisgleissner.springbatchrest.util.adhoc.JobConfig jobConfig)
      • job

        public Job job​(java.lang.String jobName)