Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/347.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用spring批处理并行执行作业_Java_Spring_Spring Batch - Fatal编程技术网

Java 使用spring批处理并行执行作业

Java 使用spring批处理并行执行作业,java,spring,spring-batch,Java,Spring,Spring Batch,我有一个用例,如下所示: 1)There is a Parentjob which has multiple child jobs. 2)All child jobs should be executed in parallel. 3)The parent job should wait until all child jobs are done. 4)One child jobs are done control returns to master 5)Master job is comple

我有一个用例,如下所示:

1)There is a Parentjob which has multiple child jobs.
2)All child jobs should be executed in parallel.
3)The parent job should wait until all child jobs are done.
4)One child jobs are done control returns to master
5)Master job is completed.
6)In case any of the child job throws exception then also control should return to master job
使用spring批处理是否可以实现这一点


编辑:我不希望并行执行作业的多个步骤。但是并行执行同一父级的多个子作业

可能是类似的吗

  • 创造就业机会
  • 将区块tasklet添加到此作业。
  • 读者找到新工作
  • 处理器启动它
  • 使用任务执行器运行此区块,并使用10个线程运行线程池
  • 利润!:)