Class JobLauncherWithAdditionalRestartCapabilities

  • All Implemented Interfaces:
    org.springframework.batch.core.launch.JobLauncher, org.springframework.beans.factory.InitializingBean

    @Deprecated
    public class JobLauncherWithAdditionalRestartCapabilities
    extends org.springframework.batch.core.launch.support.SimpleJobLauncher
    Deprecated.
    Using springs RunIdIncrementer is sufficient for most use cases.
    JobLauncher that extends the functionality provided by the standard SimpleJobLauncher:

    For batches, which always restart from scratch (i.e. those marked with restartable="false"), the parameter's are 'incremented' automatically using the JobParametersIncrementer from the job (usually by adding or modifying the 'run.id' parameter). It is actually just a convenience functionality so that the one starting batches does not have to change the parameters manually.

    • Constructor Detail

      • JobLauncherWithAdditionalRestartCapabilities

        public JobLauncherWithAdditionalRestartCapabilities()
        Deprecated.
    • Method Detail

      • run

        public org.springframework.batch.core.JobExecution run​(org.springframework.batch.core.Job job,
                                                               org.springframework.batch.core.JobParameters jobParameters)
                                                        throws org.springframework.batch.core.repository.JobExecutionAlreadyRunningException,
                                                               org.springframework.batch.core.repository.JobRestartException,
                                                               org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException,
                                                               org.springframework.batch.core.JobParametersInvalidException
        Deprecated.
        Specified by:
        run in interface org.springframework.batch.core.launch.JobLauncher
        Overrides:
        run in class org.springframework.batch.core.launch.support.SimpleJobLauncher
        Throws:
        org.springframework.batch.core.repository.JobExecutionAlreadyRunningException
        org.springframework.batch.core.repository.JobRestartException
        org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException
        org.springframework.batch.core.JobParametersInvalidException
      • setJobRepository

        public void setJobRepository​(org.springframework.batch.core.repository.JobRepository jobRepository)
        Deprecated.
        Overrides:
        setJobRepository in class org.springframework.batch.core.launch.support.SimpleJobLauncher