Class JobLauncherWithAdditionalRestartCapabilities
- java.lang.Object
-
- org.springframework.batch.core.launch.support.SimpleJobLauncher
-
- com.devonfw.module.batch.common.impl.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 springsRunIdIncrementer
is sufficient for most use cases.JobLauncher
that extends the functionality provided by the standardSimpleJobLauncher
: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 Summary
Constructors Constructor Description JobLauncherWithAdditionalRestartCapabilities()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.springframework.batch.core.JobExecution
run(org.springframework.batch.core.Job job, org.springframework.batch.core.JobParameters jobParameters)
Deprecated.void
setJobRepository(org.springframework.batch.core.repository.JobRepository jobRepository)
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 interfaceorg.springframework.batch.core.launch.JobLauncher
- Overrides:
run
in classorg.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 classorg.springframework.batch.core.launch.support.SimpleJobLauncher
-
-