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
b2d1dcbfdb
BATCH-1923: Fixed javadoc errors
2012-12-17 13:42:48 -06:00
Dave Syer
7b42d2c2af
BATCH-1923: add stop() methods to FlowBuilder
2012-12-17 10:33:34 +00:00
Dave Syer
e9bcc10646
BATCH-1871: Add flow and job builders
2012-12-06 13:58:49 +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
f63f67c65a
BATCH-1913: Add step builders
2012-12-04 18:12:20 +00:00
Michael Minella
b33b2e3e97
BATCH-1780: Updated use of StepListenerFailedException
...
* Removed second constructor
* Updated code to log exception from the listener method more clearly
* Updated logging to report application error
2012-10-22 14:46:02 -05:00
Michael Minella
f00a0076d6
BATCH-1684: Forcing the use of ISO-8859-1 encoding for persistence
2012-10-09 10:12:27 -05:00
Michael Minella
f7d2e683ca
BATCH-1684: Updated the conversion of the output stream to String
2012-10-09 09:09:50 -05:00
Michael Minella
92e4615a9b
BATCH-1684: Added close to unit test
2012-10-08 14:52:47 -05:00
Michael Minella
64ca2608ad
BATCH-1684 - Allow serializer to be injected into JobRepository
...
* Updated the job-repository tag to allow for a serializer and deserializer to be injected
* Updated the XStreamExecutionContextStringSerializer to implement Serializer and Deserializer
* Replaced the ExecutionContextStringSerializer with the ExecutionContextSerializer interface
* Updated the XSD and parser to accept the injection of an implementation of the ExecutionContextSerializer from the job-repository tag
* Updated the JdbcExecutionContextDao to use injected ExecutionContextSerializer implementation
Reference: https://jira.springsource.org/browse/BATCH-1684
2012-10-08 14:53:46 -04:00
Michael Minella
326da17239
Merge pull request #49 from chrisjs/BATCH-1666
...
BATCH-1666: Add abort(long executionId) convenience method to JobOperato...
2012-10-02 12:23:34 -07:00
Chris Schaefer
4b68ed3aac
BATCH-1666: Add abort(long executionId) convenience method to JobOperator
2012-10-02 15:14:53 -04:00
Michael Minella
cae48ac962
Merge pull request #45 from tvaughan77/BATCH-1694
...
BATCH-1694 Third time is a charm.
2012-10-02 10:28:46 -07:00
Michael Minella
e827990f08
BATCH-1895: Updated to use spring-retry
2012-10-02 10:06:44 -05:00
Tom Vaughan
78d8863748
Copying and pasting StepLocatorStepFactoryBean from spring-batch-admin and adding a-probably-overkill unit test for it.
2012-09-21 16:53:36 -04:00
Chris Schaefer
d0e0334674
BATCH-1891: Migrate usage of deprecated classes
2012-09-21 09:29:13 +01:00
Chris Schaefer
1430f3d7de
BATCH-1884: JobLauncherIntegrationTests failing
2012-09-12 06:08:36 +01:00
Chris Schaefer
d512ba8ff2
BATCH-1685: Upgrade minimum support level for Spring to 3.1.2
2012-09-12 06:08:36 +01:00
Dave Syer
60dfdf87bc
BATCH-1822: JobExecution should be UNKNOWN if Step finishes that way
2012-07-23 11:52:43 +01:00
Dave Syer
57600f6f85
BATCH_1822: tighten up test case for step failure during job repository update
2012-07-23 10:00:37 +01:00
Dave Syer
10c3a8cbeb
BATCH-1840: add explicit transition for UNKNOWN status in flow parser
2012-07-17 10:51:44 +01:00
Dave Syer
a723f22889
Kill javadoc warnings
2012-07-17 09:08:14 +01:00
Costin Leau
f767dc8824
BATCH-1834: extend step xsd to allow custom namespaces as tasklets
2012-07-16 11:17:00 +01:00
Robert Fischer
753472716f
BATCH-1861: Concurrency support for the in-memory jobs, job repositories, etc.
2012-07-04 08:04:31 +01:00
Dave Syer
bbb2a3ca39
BATCH-1761: tweak a couple of assertions in test cases
2012-06-28 15:24:48 +01:00
Dave Syer
a0a02b237f
BATCH-1761: attempted fix using new flag in user data
...
- the writing phase needs to communicate with the processing phase
- when processing a chunk that is going to be scanned we need to
only call the processor on the first item, but otherwise all of
them
2012-06-28 14:12:09 +01:00
Dave Syer
d043fa9e30
BATCH-1761: test cases from Morten
2012-06-27 16:14:59 +01:00
Dave Syer
2d4363e893
BATCH-1804: change scan behaviour if not in recovery
2012-06-27 15:49:31 +01:00
Lucas Ward
aa1c382c4c
RESOLVED - BATCH-1853: If the JobParameters is asked for a Date value that doesn't exist, it will now return null rather than throwing NPE
2012-05-04 10:17:16 -05:00
Robert Kasanicky
c1f3b9cbc4
RESOLVED - BATCH-1826: Null pointer exception if optional parameter of
...
type DATE is null
2012-04-06 15:51:29 +02:00
Damien Hollis
c5675b23a5
BATCH-1841 ChunkElementParser Inheritance Error
...
Fixes bug in ChunkElementParser that caused the
retryable-exception-classes and skippable-exception-classes
defined on parent bean to be ignored.
Polishing
Reverted spaces to tabs and added another test.
Updated config for ParentStepFactoryBeanParserTests
.testSkippableLateBindingAttributes
2012-03-05 10:52:37 -05:00
Gary Russell
4b552d0113
Revert "BATCH-1841 ChunkElementParser Inheritance Error"
...
This reverts commit 49645285d4 .
2012-03-05 10:24:59 -05:00
Damien Hollis
49645285d4
BATCH-1841 ChunkElementParser Inheritance Error
...
Fixes bug in ChunkElementParser that caused the
retryable-exception-classes and skippable-exception-classes
defined on parent bean to be ignored.
Polishing
Reverted spaces to tabs and added another test.
2012-03-05 09:53:19 -05:00
Gary Russell
1ce4cb1e95
BATCH-1837 Spring 3 Compatibility
...
Update profile to Spring 3.0.7; fix compile issues in 2
tests.
2012-02-21 19:53:49 -05:00
Morten Andersen-Gott
c7ca71d771
BATCH-1814 CompositeJobParametersValidator to accomodate list of JobParametersValidators
2012-02-06 11:15:31 +00:00
Morten Andersen-Gott
a6540176e3
onWriteError is called when items fail in recovery mode
2011-11-23 14:24:45 +01:00
Morten Andersen-Gott
af84be4f75
BATCH-1783 Wrapping exceptions from chunklisteners in FatalStepExecutionException to force step termination
2011-10-19 10:06:23 +02:00
Dave Syer
4f550d4250
BATCH-1777: add explicit check for custom numberformat when formatting doubles
2011-08-02 17:17:09 +01:00
Dave Syer
c321a1dc07
BATCH-1775: fix inner bean definition parser inside <chunk/> element
2011-07-27 09:32:24 +01:00
Dave Syer
0151529077
BATCH-1756: Fix DefaultJobParametersConverter to produce keys in *(double) for DOUBLE parameters
2011-06-01 10:12:02 +01:00
Dave Syer
46b8fcac1f
BATCH-1712: revert changes in 2.1.7
2011-05-08 08:43:12 +01:00
Dave Syer
3a99b70397
BATCH-1703: fix JobExecution.addStepExecutions()
2011-05-08 08:42:52 +01:00
Dave Syer
3f38056ff3
BATCH-1730: allow flow to be repeated in a PartitionStep
2011-05-05 08:58:48 +01:00
Dave Syer
3e95630fa6
BATCH-1743: loosen partition handler validation
2011-05-04 15:31:13 +01:00
Dave Syer
8efa4f4189
BATCH-1744, BATCH-1739: fix inheritance problems with retry and skip exceptions, revert skip-limit and retry-limit late binding
2011-05-04 12:05:41 +01:00
Dave Syer
422974800d
BATCH-1739: fix all retry/skip inconsistencies *except* with late binding of limits
2011-05-04 11:16:37 +01:00
Dave Syer
6dfc3a4a61
BATCH-1743: extract target from proxy before making assumptions about type
2011-05-04 10:23:32 +01:00
Dave Syer
a61a9842ae
BATCH-1739: add test (passes now showing workaround)
2011-05-03 08:09:34 +01:00