Class AbstractJobCommand<C extends JobExecutionContext>

All Implemented Interfaces:
Callable<Integer>

public abstract class AbstractJobCommand<C extends JobExecutionContext> extends AbstractCommand<C>
  • Field Details

  • Constructor Details

    • AbstractJobCommand

      public AbstractJobCommand()
  • Method Details

    • executionContext

      protected C executionContext()
      Specified by:
      executionContext in class AbstractCommand<C extends JobExecutionContext>
    • newExecutionContext

      protected abstract C newExecutionContext()
    • execute

      protected void execute(C context)
      Specified by:
      execute in class AbstractCommand<C extends JobExecutionContext>
    • job

      protected org.springframework.batch.core.Job job(C context, Step<?,?>... steps)
    • job

      protected org.springframework.batch.core.Job job(C context, Collection<Step<?,?>> steps)
    • shouldShowProgress

      protected boolean shouldShowProgress()
    • job

      protected abstract org.springframework.batch.core.Job job(C context)
    • getJobName

      public String getJobName()
    • setJobName

      public void setJobName(String name)
    • getJobArgs

      public StepArgs getJobArgs()
    • setJobArgs

      public void setJobArgs(StepArgs args)
    • getJobRepositoryName

      public String getJobRepositoryName()
    • setJobRepositoryName

      public void setJobRepositoryName(String jobRepositoryName)
    • getJobRepository

      public org.springframework.batch.core.repository.JobRepository getJobRepository()
    • setJobRepository

      public void setJobRepository(org.springframework.batch.core.repository.JobRepository jobRepository)
    • getTransactionManager

      public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
    • setTransactionManager

      public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
    • getJobLauncher

      public org.springframework.batch.core.launch.JobLauncher getJobLauncher()
    • setJobLauncher

      public void setJobLauncher(org.springframework.batch.core.launch.JobLauncher jobLauncher)