Stéphane Nicoll
8abd2ec69f
StepRegistry is now a first-class (optional) component:
...
- MapJobRegistry no longer implements StepRegistry
- DefaultJobLoader updates the stepRegistry when it is available
- Added more tests to cover the cases where the step registry is not available
2012-12-17 16:13:57 -06:00
Stéphane Nicoll
2870628c85
registering twice the same jobName on the step registry is not allowed (consistency with JobRegistry)
2012-12-17 16:11:50 -06:00
Stéphane Nicoll
25f732e06b
delegating synchronization to ConcurrentHashMap instead of dealing that ourselves.
2012-12-17 16:11:50 -06:00
Stéphane Nicoll
00ee45854e
Added the concept of a StepRegistry that tracks the Step instance attached to a Job.
...
- Added a simple MapStepRegistry that keeps track of the step in a simple map per job
- MapJobRegistry implements StepRegistry as well using the delegate pattern
- DefaultJobLoader makes sure to initialize both registries now. Auto-detects that the JobRegistry implements StepRegistry
- JobSupport now implements StepLocator so that such job can be loaded by the DefaultJobLoader
- Also registering any "detached" step available for a particular job to that job if that wasn't done yet. Since a partition handler may link to any step by name, the step registry must be filled with any step that are available in the context of a job. If each job is located in its own application context, this is just fine. If more than one job is defined in the same context, the step registry may be able to return a step that is not related to that job but it shouldn't hurt as this happens only if a component is explicitly asking to execute a step by name for a particular job.
2012-12-17 16:11:50 -06:00
Michael Minella
b345e1c072
Merge pull request #80 from dsyer/BATCH-1918
...
* BATCH-1918:
BATCH-1918: Fixed javadoc errors
BATCH-1918: First effort at @EnableBatchProcessing
2012-12-17 15:33:27 -06:00
Michael Minella
f64a5deff9
BATCH-1918: Fixed javadoc errors
2012-12-17 15:32:16 -06:00
Dave Syer
25cd6d6826
BATCH-1918: First effort at @EnableBatchProcessing
...
Example:
@Configuration
@EnableBatchProcessing
public class RetrySampleConfiguration {
@Autowired
private JobBuilderFactory jobs;
@Autowired
private StepBuilderFactory steps;
@Bean
public Job retrySample() throws Exception {
return jobs.get("retrySample").start(step()).build();
}
@Bean
protected Step step() throws Exception {
return steps.get("step").<Trade, Object> chunk(1).reader(reader()).writer(writer()).faultTolerant()
.retry(Exception.class).retryLimit(3).build();
}
@Bean
protected ItemReader<Trade> reader() {
GeneratingTradeItemReader reader = new GeneratingTradeItemReader();
reader.setLimit(10);
return reader;
}
@Bean
protected ItemWriter<Object> writer() {
return new RetrySampleItemWriter<Object>();
}
}
2012-12-17 14:17:48 -06:00
Michael Minella
96de2dc4e9
Merge pull request #92 from dsyer/BATCH-1923
...
* BATCH-1923:
BATCH-1923: Fixed javadoc errors
BATCH-1923: add stop() methods to FlowBuilder
2012-12-17 13:43:57 -06:00
Michael Minella
b2d1dcbfdb
BATCH-1923: Fixed javadoc errors
2012-12-17 13:42:48 -06:00
Michael Minella
100467ba4e
Merged pull request 84 from chrisjs/BATCH-1928
...
* BATCH-1928:
BATCH-1928: Converted to using JdbcOperations over JdbcTemplate
BATCH-1928: Convert deprecated classes from the org.springframework.jdbc.core.simple package in samples
2012-12-17 09:18:02 -06:00
Michael Minella
40975b6548
BATCH-1928: Converted to using JdbcOperations over JdbcTemplate
2012-12-17 09:16:30 -06:00
Chris Schaefer
bdece6640c
BATCH-1928: Convert deprecated classes from the org.springframework.jdbc.core.simple package in samples
2012-12-17 08:53:17 -06:00
Dave Syer
7b42d2c2af
BATCH-1923: add stop() methods to FlowBuilder
2012-12-17 10:33:34 +00:00
Dave Syer
a65cc58117
Merge pull request #88 from chrisjs/BATCH-1931
...
* BATCH-1931:
BATCH-1931: Convert deprecated classes from the org.springframework.jdbc.core.simple package in infrastructure-tests
2012-12-17 08:55:49 +00:00
Chris Schaefer
5218748f7e
BATCH-1931: Convert deprecated classes from the org.springframework.jdbc.core.simple package in infrastructure-tests
2012-12-17 08:55:48 +00:00
Dave Syer
c1c85e3b44
Merge pull request #91 from chrisjs/BATCH-1919
...
* BATCH-1919:
BATCH-1919: Switch to using <jdbc:/> namespace in samples
2012-12-17 08:52:54 +00:00
Chris Schaefer
18d923d6ea
BATCH-1919: Switch to using <jdbc:/> namespace in samples
2012-12-16 13:32:41 -05:00
Michael Minella
6c2a4ce4d6
Merge pull request #85 from chrisjs/BATCH-1929
...
BATCH-1929: Convert deprecated classes from the org.springframework.jdbc.core.simple package in core-tests
2012-12-13 07:23:55 -08:00
Michael Minella
b2fa8aab7c
Merge pull request #82 from adrianshum/master
...
Fixing failing testWriteWithDelete test in FlatFileItemWriterTests
2012-12-13 07:05:20 -08:00
Chris Schaefer
d8af541020
BATCH-1929: Convert deprecated classes from the org.springframework.jdbc.core.simple package in core-tests
2012-12-13 00:44:33 -05:00
Michael Minella
502037e354
Merge pull request #83 from juzerali/links
...
Updated some links which weren't working
2012-12-12 12:05:10 -08:00
Juzer Ali
a767a32b64
Updated some links which weren't working
2012-12-13 01:27:35 +05:30
Adrian Shum
0642e6db89
Fix failing FlatFileItemWriterTests#testWriteWithDelete caused by
...
not closing reader properly.
2012-12-12 15:34:08 +08:00
Dave Syer
bc30523b39
Merge pull request #79 from dsyer/BATCH-1871
...
* BATCH-1871:
BATCH-1871: Add flow and job builders
2012-12-10 16:02:28 +00:00
Dave Syer
e9bcc10646
BATCH-1871: Add flow and job builders
2012-12-06 13:58:49 +00:00
Dave Syer
03aa7ead6f
Remove unused import
2012-12-05 14:03:22 +00:00
Dave Syer
663571ec95
BATCH-1913: fix StepBuilderHelper to be more friendly to caller
2012-12-05 14:02:10 +00:00
Dave Syer
07cce7a7e4
BATCH-1913: add javadocs and some more convenience methods
2012-12-05 11:28:00 +00:00
Dave Syer
d325250423
Merge pull request #76 from dsyer/BATCH-1913
...
* BATCH-1913:
BATCH-1913: Add step builders
2012-12-05 09:03:32 +00:00
Dave Syer
f63f67c65a
BATCH-1913: Add step builders
2012-12-04 18:12:20 +00:00
Michael Minella
a9140c7fac
Merged pull request #BATCH-1912 from snicoll
2012-11-28 14:29:10 -06:00
Michael Minella
064f39feb8
Merge remote-tracking branch 'snicoll/BATCH-1912'
2012-11-28 14:14:04 -06:00
Dave Syer
09bf67859d
Fix Javadoc errors
2012-11-25 12:55:54 +00:00
Stéphane Nicoll
182419162a
PartitionHandler has now an abstract class that deals with the splitting and request implementation to perform the actual execution and aggregation. TaskExecutorPartitionHandler now extends that abstract class
2012-11-24 11:27:36 +01:00
Michael Minella
b3eb28c100
Merge pull request #73 from mminella/master
...
Moved the Order class to remove circular dependency.
2012-11-16 13:27:45 -08:00
Michael Minella
5d2aac135d
Moved Order to remove package circular dependency
2012-11-16 15:14:12 -06:00
Michael Minella
4ccdb47ae6
Merge pull request #72 from mminella/BATCH-1799
...
Batch-1799: Removed Arrays.copyof to support JDK 1.5
2012-11-16 11:37:51 -08:00
Michael Minella
a4c8deef57
Merge branch 'master' into BATCH-1799
2012-11-16 13:36:23 -06:00
Michael Minella
19bf980428
BATCH-1779: Removed Arrays.copyOf to support JDK 1.5
2012-11-16 13:36:00 -06:00
Michael Minella
9407ff7ad2
Merge pull request #71 from mminella/BATCH-1799
...
Batch-1799: Updated TransactionAwareBufferedWriter to throw exceptions on flush
2012-11-16 11:26:35 -08:00
Michael Minella
b9f2ddcb6a
Merge branch 'master' into BATCH-1799
2012-11-16 13:19:39 -06:00
Michael Minella
22894ada90
Merge pull request #70 from mminella/BATCH-1774
...
BATCH-1774: Updated to catch Throwable so Errors don't cause NPEs when p...
2012-11-16 11:13:09 -08:00
Michael Minella
4ec551e0ff
BATCH-1799: Updated to handle encoding correctly
2012-11-16 13:11:27 -06:00
Michael Minella
0580e33760
BATCH-1774: Updated to catch Throwable so Errors don't cause NPEs when processing results
2012-11-15 12:57:11 -06:00
Michael Minella
13fbcf992a
BATCH-1799: Updated TransactionAwareBufferedWriter to throw exceptions at flush
2012-11-13 16:24:58 -06:00
Michael Minella
491359aacc
BATCH-1799: Intermediate commit with POC code
2012-11-13 09:51:02 -06:00
Michael Minella
5d879ab27b
BATCH-1799: Updated to allow exceptions to be bubbled during flush/close
2012-11-08 14:16:17 -06:00
Michael Minella
84ca7cbc40
Merge pull request #68 from mminella/BATCH-1691
...
BATCH-1691: Implemented group by functionality not impacted by paging
2012-11-08 09:08:43 -08:00
Michael Minella
6380491187
BATCH-1691: Updated to correct order by processing
2012-11-07 14:34:45 -06:00
Michael Minella
ea4fdfdf15
BATCH-1691: Implemented group by functionality not impacted by paging
2012-11-06 16:41:31 -06:00