File tree Expand file tree Collapse file tree 24 files changed +54
-39
lines changed
java/org/springframework/batch/core
resources/org/springframework/batch/core/configuration/xml
java/org/springframework/batch/core
resources/org/springframework/batch/core/partition
spring-batch-integration/src
main/java/org/springframework/batch/integration/partition
test/java/org/springframework/batch/integration/partition
spring-batch-samples/src/main/java/org/springframework/batch/samples Expand file tree Collapse file tree 24 files changed +54
-39
lines changed Original file line number Diff line number Diff line change 35
35
import org .springframework .batch .core .job .flow .Flow ;
36
36
import org .springframework .batch .core .launch .JobLauncher ;
37
37
import org .springframework .batch .core .partition .PartitionHandler ;
38
- import org .springframework .batch .core .partition .support . Partitioner ;
39
- import org .springframework .batch .core .partition .support . StepExecutionAggregator ;
38
+ import org .springframework .batch .core .partition .Partitioner ;
39
+ import org .springframework .batch .core .partition .StepExecutionAggregator ;
40
40
import org .springframework .batch .core .repository .JobRepository ;
41
41
import org .springframework .batch .core .step .AbstractStep ;
42
42
import org .springframework .batch .core .step .builder .AbstractTaskletStepBuilder ;
61
61
import org .springframework .batch .item .ItemWriter ;
62
62
import org .springframework .batch .repeat .CompletionPolicy ;
63
63
import org .springframework .batch .repeat .policy .SimpleCompletionPolicy ;
64
- import org .springframework .batch .repeat .support .TaskExecutorRepeatTemplate ;
65
64
import org .springframework .beans .factory .BeanNameAware ;
66
65
import org .springframework .beans .factory .FactoryBean ;
67
66
import org .springframework .classify .BinaryExceptionClassifier ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2006-2009 the original author or authors.
2
+ * Copyright 2006-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
14
14
* limitations under the License.
15
15
*/
16
16
17
- package org .springframework .batch .core .partition .support ;
17
+ package org .springframework .batch .core .partition ;
18
+
19
+ import org .springframework .batch .core .partition .support .SimplePartitioner ;
18
20
19
21
import java .util .Collection ;
20
22
33
35
* </p>
34
36
*
35
37
* @author Dave Syer
38
+ * @author Mahmoud Ben Hassine
36
39
* @since 2.1.3
37
40
*
38
41
*/
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2006-2022 the original author or authors.
2
+ * Copyright 2006-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
14
14
* limitations under the License.
15
15
*/
16
16
17
- package org .springframework .batch .core .partition . support ;
17
+ package org .springframework .batch .core .partition ;
18
18
19
19
import org .springframework .batch .core .BatchStatus ;
20
20
import org .springframework .batch .core .JobExecutionException ;
21
21
import org .springframework .batch .core .Step ;
22
22
import org .springframework .batch .core .StepExecution ;
23
- import org .springframework .batch .core .partition .PartitionHandler ;
24
- import org .springframework .batch .core .partition .StepExecutionSplitter ;
23
+ import org .springframework .batch .core .partition .support .DefaultStepExecutionAggregator ;
25
24
import org .springframework .batch .core .step .AbstractStep ;
26
25
import org .springframework .batch .item .ExecutionContext ;
27
26
import org .springframework .util .Assert ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2006-2022 the original author or authors.
2
+ * Copyright 2006-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
14
14
* limitations under the License.
15
15
*/
16
16
17
- package org .springframework .batch .core .partition . support ;
17
+ package org .springframework .batch .core .partition ;
18
18
19
19
import java .util .Map ;
20
20
28
28
*
29
29
* @author Dave Syer
30
30
* @author Taeik Lim
31
+ * @author Mahmoud Ben Hassine
31
32
* @since 2.0
32
33
*/
33
34
@ FunctionalInterface
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2008-2022 the original author or authors.
2
+ * Copyright 2008-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- package org .springframework .batch .core .partition . support ;
16
+ package org .springframework .batch .core .partition ;
17
17
18
18
import java .util .Collection ;
19
19
20
20
import org .springframework .batch .core .StepExecution ;
21
21
22
22
/**
23
- * Strategy for a aggregating step executions, usually when they are the result of
23
+ * Strategy for aggregating step executions, usually when they are the result of
24
24
* partitioned or remote execution.
25
25
*
26
26
* @author Dave Syer
27
27
* @author Taeik Lim
28
+ * @author Mahmoud Ben Hassine
28
29
* @since 2.1
29
30
*
30
31
*/
Original file line number Diff line number Diff line change 19
19
import org .springframework .batch .core .BatchStatus ;
20
20
import org .springframework .batch .core .ExitStatus ;
21
21
import org .springframework .batch .core .StepExecution ;
22
+ import org .springframework .batch .core .partition .StepExecutionAggregator ;
22
23
import org .springframework .util .Assert ;
23
24
24
25
import java .util .Collection ;
Original file line number Diff line number Diff line change 20
20
import java .util .HashMap ;
21
21
import java .util .Map ;
22
22
23
+ import org .springframework .batch .core .partition .Partitioner ;
23
24
import org .springframework .batch .item .ExecutionContext ;
24
25
import org .springframework .core .io .Resource ;
25
26
import org .springframework .util .Assert ;
Original file line number Diff line number Diff line change 23
23
24
24
import org .springframework .batch .core .JobExecution ;
25
25
import org .springframework .batch .core .StepExecution ;
26
+ import org .springframework .batch .core .partition .StepExecutionAggregator ;
26
27
import org .springframework .batch .core .repository .explore .JobExplorer ;
27
28
import org .springframework .beans .factory .InitializingBean ;
28
29
import org .springframework .util .Assert ;
Original file line number Diff line number Diff line change 19
19
import java .util .HashMap ;
20
20
import java .util .Map ;
21
21
22
+ import org .springframework .batch .core .partition .Partitioner ;
22
23
import org .springframework .batch .item .ExecutionContext ;
23
24
24
25
/**
Original file line number Diff line number Diff line change 29
29
import org .springframework .batch .core .JobInstance ;
30
30
import org .springframework .batch .core .Step ;
31
31
import org .springframework .batch .core .StepExecution ;
32
+ import org .springframework .batch .core .partition .PartitionNameProvider ;
33
+ import org .springframework .batch .core .partition .Partitioner ;
32
34
import org .springframework .batch .core .partition .StepExecutionSplitter ;
33
35
import org .springframework .batch .core .repository .JobRepository ;
34
36
import org .springframework .batch .item .ExecutionContext ;
Original file line number Diff line number Diff line change 18
18
import org .springframework .batch .core .Step ;
19
19
import org .springframework .batch .core .partition .PartitionHandler ;
20
20
import org .springframework .batch .core .partition .StepExecutionSplitter ;
21
- import org .springframework .batch .core .partition .support . PartitionStep ;
22
- import org .springframework .batch .core .partition .support . Partitioner ;
21
+ import org .springframework .batch .core .partition .PartitionStep ;
22
+ import org .springframework .batch .core .partition .Partitioner ;
23
23
import org .springframework .batch .core .partition .support .SimpleStepExecutionSplitter ;
24
- import org .springframework .batch .core .partition .support . StepExecutionAggregator ;
24
+ import org .springframework .batch .core .partition .StepExecutionAggregator ;
25
25
import org .springframework .batch .core .partition .support .TaskExecutorPartitionHandler ;
26
26
import org .springframework .core .task .SyncTaskExecutor ;
27
27
import org .springframework .core .task .TaskExecutor ;
Original file line number Diff line number Diff line change 18
18
import org .springframework .batch .core .Job ;
19
19
import org .springframework .batch .core .Step ;
20
20
import org .springframework .batch .core .job .flow .Flow ;
21
- import org .springframework .batch .core .partition .support . Partitioner ;
21
+ import org .springframework .batch .core .partition .Partitioner ;
22
22
import org .springframework .batch .core .repository .JobRepository ;
23
23
import org .springframework .batch .core .step .tasklet .Tasklet ;
24
24
import org .springframework .batch .repeat .CompletionPolicy ;
Original file line number Diff line number Diff line change 549
549
</xsd : documentation >
550
550
<xsd : appinfo >
551
551
<tool : annotation kind =" ref" >
552
- <tool : expected-type type =" org.springframework.batch.core.partition.support. StepExecutionAggregator" />
552
+ <tool : expected-type type =" org.springframework.batch.core.partition.StepExecutionAggregator" />
553
553
</tool : annotation >
554
554
</xsd : appinfo >
555
555
</xsd : annotation >
561
561
</xsd : documentation >
562
562
<xsd : appinfo >
563
563
<tool : annotation kind =" ref" >
564
- <tool : expected-type type =" org.springframework.batch.core.partition.support. Partitioner" />
564
+ <tool : expected-type type =" org.springframework.batch.core.partition.Partitioner" />
565
565
</tool : annotation >
566
566
</xsd : appinfo >
567
567
</xsd : annotation >
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2006-2023 the original author or authors.
2
+ * Copyright 2006-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
34
34
import org .springframework .batch .core .StepExecution ;
35
35
import org .springframework .batch .core .partition .PartitionHandler ;
36
36
import org .springframework .batch .core .partition .StepExecutionSplitter ;
37
- import org .springframework .batch .core .partition .support . PartitionStep ;
38
- import org .springframework .batch .core .partition .support . StepExecutionAggregator ;
37
+ import org .springframework .batch .core .partition .PartitionStep ;
38
+ import org .springframework .batch .core .partition .StepExecutionAggregator ;
39
39
import org .springframework .batch .core .partition .support .TaskExecutorPartitionHandler ;
40
40
import org .springframework .batch .core .repository .JobRepository ;
41
41
import org .springframework .batch .core .step .tasklet .TaskletStep ;
Original file line number Diff line number Diff line change 28
28
import org .springframework .batch .core .job .flow .FlowStep ;
29
29
import org .springframework .batch .core .job .flow .support .SimpleFlow ;
30
30
import org .springframework .batch .core .partition .PartitionHandler ;
31
- import org .springframework .batch .core .partition .support . PartitionStep ;
31
+ import org .springframework .batch .core .partition .PartitionStep ;
32
32
import org .springframework .batch .core .partition .support .SimplePartitioner ;
33
33
import org .springframework .batch .core .partition .support .TaskExecutorPartitionHandler ;
34
34
import org .springframework .batch .core .step .JobRepositorySupport ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2006-2023 the original author or authors.
2
+ * Copyright 2006-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- package org .springframework .batch .core .partition . support ;
16
+ package org .springframework .batch .core .partition ;
17
17
18
18
import java .time .LocalDateTime ;
19
19
import java .util .Arrays ;
29
29
import org .springframework .batch .core .JobExecution ;
30
30
import org .springframework .batch .core .JobParameters ;
31
31
import org .springframework .batch .core .StepExecution ;
32
+ import org .springframework .batch .core .partition .support .DefaultStepExecutionAggregator ;
33
+ import org .springframework .batch .core .partition .support .SimplePartitioner ;
34
+ import org .springframework .batch .core .partition .support .SimpleStepExecutionSplitter ;
32
35
import org .springframework .batch .core .repository .JobRepository ;
33
36
import org .springframework .batch .core .repository .support .JdbcJobRepositoryFactoryBean ;
34
37
import org .springframework .jdbc .support .JdbcTransactionManager ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2022 the original author or authors.
2
+ * Copyright 2009-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
20
20
import org .springframework .batch .core .ExitStatus ;
21
21
import org .springframework .batch .core .JobExecution ;
22
22
import org .springframework .batch .core .StepExecution ;
23
+ import org .springframework .batch .core .partition .StepExecutionAggregator ;
23
24
24
25
import java .util .Arrays ;
25
26
import java .util .Collections ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2008-2023 the original author or authors.
2
+ * Copyright 2008-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
32
32
import org .springframework .batch .core .JobParameters ;
33
33
import org .springframework .batch .core .Step ;
34
34
import org .springframework .batch .core .StepExecution ;
35
+ import org .springframework .batch .core .partition .PartitionNameProvider ;
36
+ import org .springframework .batch .core .partition .Partitioner ;
35
37
import org .springframework .batch .core .repository .JobRepository ;
36
38
import org .springframework .batch .core .repository .support .JdbcJobRepositoryFactoryBean ;
37
39
import org .springframework .batch .core .step .tasklet .TaskletStep ;
Original file line number Diff line number Diff line change 8
8
<bean id =" job1" parent =" simpleJob" >
9
9
<property name =" steps" >
10
10
<bean name =" step1:manager"
11
- class=" org.springframework.batch.core.partition.support. PartitionStep" >
11
+ class=" org.springframework.batch.core.partition.PartitionStep" >
12
12
<property name =" partitionHandler" >
13
13
<bean
14
14
class=" org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler" >
Original file line number Diff line number Diff line change 21
21
import org .springframework .batch .core .repository .explore .JobExplorer ;
22
22
import org .springframework .batch .core .partition .PartitionHandler ;
23
23
import org .springframework .batch .core .partition .StepExecutionSplitter ;
24
- import org .springframework .batch .core .partition .support . Partitioner ;
25
- import org .springframework .batch .core .partition .support . StepExecutionAggregator ;
24
+ import org .springframework .batch .core .partition .Partitioner ;
25
+ import org .springframework .batch .core .partition .StepExecutionAggregator ;
26
26
import org .springframework .batch .core .repository .JobRepository ;
27
27
import org .springframework .batch .core .step .builder .PartitionStepBuilder ;
28
28
import org .springframework .batch .core .step .builder .StepBuilder ;
Original file line number Diff line number Diff line change 24
24
import org .springframework .batch .core .StepExecutionListener ;
25
25
import org .springframework .batch .core .repository .explore .JobExplorer ;
26
26
import org .springframework .batch .core .job .flow .Flow ;
27
- import org .springframework .batch .core .partition .support . Partitioner ;
27
+ import org .springframework .batch .core .partition .Partitioner ;
28
28
import org .springframework .batch .core .repository .JobRepository ;
29
29
import org .springframework .batch .core .step .StepLocator ;
30
30
import org .springframework .batch .core .step .builder .FlowStepBuilder ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2018-2022 the original author or authors.
2
+ * Copyright 2018-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
24
24
import org .springframework .batch .core .Step ;
25
25
import org .springframework .batch .core .configuration .annotation .EnableBatchProcessing ;
26
26
import org .springframework .batch .core .partition .PartitionHandler ;
27
- import org .springframework .batch .core .partition .support . Partitioner ;
28
- import org .springframework .batch .core .partition .support . StepExecutionAggregator ;
27
+ import org .springframework .batch .core .partition .Partitioner ;
28
+ import org .springframework .batch .core .partition .StepExecutionAggregator ;
29
29
import org .springframework .batch .core .repository .JobRepository ;
30
30
import org .springframework .beans .factory .annotation .Autowired ;
31
31
import org .springframework .context .annotation .Bean ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2009-2014 the original author or authors.
2
+ * Copyright 2009-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
20
20
21
21
import javax .sql .DataSource ;
22
22
23
- import org .springframework .batch .core .partition .support . Partitioner ;
23
+ import org .springframework .batch .core .partition .Partitioner ;
24
24
import org .springframework .batch .item .ExecutionContext ;
25
25
import org .springframework .jdbc .core .JdbcOperations ;
26
26
import org .springframework .jdbc .core .JdbcTemplate ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2023 the original author or authors.
2
+ * Copyright 2023-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
23
23
import org .springframework .batch .core .configuration .annotation .EnableBatchProcessing ;
24
24
import org .springframework .batch .core .configuration .annotation .StepScope ;
25
25
import org .springframework .batch .core .job .builder .JobBuilder ;
26
- import org .springframework .batch .core .partition .support . Partitioner ;
26
+ import org .springframework .batch .core .partition .Partitioner ;
27
27
import org .springframework .batch .core .repository .JobRepository ;
28
28
import org .springframework .batch .core .step .builder .StepBuilder ;
29
29
import org .springframework .batch .core .step .tasklet .Tasklet ;
You can’t perform that action at this time.
0 commit comments