Package io.spring
Class JobConfiguration
java.lang.Object
io.spring.JobConfiguration
- Author:
- Michael Minella
- 
Field SummaryFieldsModifier and TypeFieldDescriptionorg.springframework.batch.core.configuration.annotation.JobBuilderFactoryorg.springframework.batch.core.repository.JobRepositoryorg.springframework.batch.core.configuration.annotation.StepBuilderFactory
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.springframework.batch.core.JobpartitionedJob(org.springframework.batch.core.partition.PartitionHandler partitionHandler) org.springframework.batch.core.partition.support.Partitionerorg.springframework.batch.core.partition.PartitionHandlerpartitionHandler(org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher, org.springframework.batch.core.explore.JobExplorer jobExplorer, TaskRepository taskRepository) org.springframework.batch.core.Stepstep1(org.springframework.batch.core.partition.PartitionHandler partitionHandler) stepExecutionHandler(org.springframework.batch.core.explore.JobExplorer jobExplorer) org.springframework.batch.core.Steporg.springframework.batch.core.step.tasklet.TaskletworkerTasklet(Integer partitionNumber) 
- 
Field Details- 
jobBuilderFactory@Autowired public org.springframework.batch.core.configuration.annotation.JobBuilderFactory jobBuilderFactory
- 
stepBuilderFactory@Autowired public org.springframework.batch.core.configuration.annotation.StepBuilderFactory stepBuilderFactory
- 
dataSource
- 
jobRepository@Autowired public org.springframework.batch.core.repository.JobRepository jobRepository
 
- 
- 
Constructor Details- 
JobConfigurationpublic JobConfiguration()
 
- 
- 
Method Details- 
partitionHandler@Bean public org.springframework.batch.core.partition.PartitionHandler partitionHandler(org.springframework.cloud.deployer.spi.task.TaskLauncher taskLauncher, org.springframework.batch.core.explore.JobExplorer jobExplorer, TaskRepository taskRepository) throws Exception - Throws:
- Exception
 
- 
partitioner@Bean public org.springframework.batch.core.partition.support.Partitioner partitioner()
- 
stepExecutionHandler@Bean @Profile("worker") public DeployerStepExecutionHandler stepExecutionHandler(org.springframework.batch.core.explore.JobExplorer jobExplorer) 
- 
workerTasklet@Bean @StepScope public org.springframework.batch.core.step.tasklet.Tasklet workerTasklet(@Value("#{stepExecutionContext[\'partitionNumber\']}") Integer partitionNumber) 
- 
step1@Bean public org.springframework.batch.core.Step step1(org.springframework.batch.core.partition.PartitionHandler partitionHandler) throws Exception - Throws:
- Exception
 
- 
workerStep@Bean public org.springframework.batch.core.Step workerStep()
- 
partitionedJob@Bean @Profile("!worker") public org.springframework.batch.core.Job partitionedJob(org.springframework.batch.core.partition.PartitionHandler partitionHandler) throws Exception - Throws:
- Exception
 
 
-