Commit Graph

1572 Commits

Author SHA1 Message Date
Michael Minella
c38a096fe0 BATCH-1938: Updated pom to reference Spring 3.2.0.RELEASE 2012-12-20 15:53:41 -06:00
Michael Minella
a193e1051f BATCH-1938: Upgraded to Spring 3.2.0.RELEASE 2012-12-20 15:40:02 -06:00
wxlund
0d7bf2cd71 Modified core to support drop and schema-sqlf.sql but leverages derby syntax outside of connection string.
Modified *.properties file to add additional property "batch.isolationlevel=ISOLATION_SERIALIZABLE
because batch-sqlf.properties needs batch.isolationlevel=ISOLATION_READ_COMMITTED.
Added corresponding sqlf properties and sqlf files.
Modified simple-job-launcher-context.xml to support the p:isolationLevelForCreate="${batch.isolationlevel}"
2012-12-18 13:21:32 -06:00
Michael Minella
75ee3e0bb4 BATCH-1911 - Fixed merge conflicts and schema version issue 2012-12-17 16:31:06 -06:00
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
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
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
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
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
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
47025259e0 BATCH-1903: Fixed SQL for restart to be compatable with HSQLDB 2012-10-26 17:04:25 -05: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
dafb836044 BATCH-1684: Updated to include injection via the JobExplorerFactoryBean as well 2012-10-09 13:01:46 -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
38ef37b882 BATCH-1897: Removed unused ant support 2012-10-05 10:45:30 -05: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
5975557d0e BATCH-1895: Fixed merge issues 2012-10-02 10:29:14 -05:00
Michael Minella
e827990f08 BATCH-1895: Updated to use spring-retry 2012-10-02 10:06:44 -05:00
Michael Minella
8ab844550d BATCH-1706: Documented chunk and tasklet elements 2012-09-27 14:31:37 -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
a8d2dd2a3f BATCH-1887: Cleanup maven warnings 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
Chris Schaefer
1607014886 BATCH-1882: Add support for AMQP backed ItemReader / ItemWriter implementations
Add Spring AMQP and Spring Rabbit dependencies. Update
EasyMock from 2.3 to 2.4 to allow for concrete class mocking.
2012-08-28 10:45:00 +01:00
Dave Syer
f23ff4228b Update versions to 2.2.0 2012-08-21 09:34:09 +01:00
Dave Syer
19ba21625f [maven-release-plugin] prepare for next development iteration 2012-07-27 14:09:11 +01:00
Dave Syer
d957090dae [maven-release-plugin] prepare release 2.1.9.RELEASE 2012-07-27 14:09:10 +01:00
Dave Syer
1449eb3dc3 BATCH-1830: only log exception at debug if it is STOPPED 2012-07-25 13:21:29 +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
a0a75287cc BATCH-1834: fixed tests, pay attention to transitioning elements 2012-07-16 12:40:54 +01:00
Costin Leau
f767dc8824 BATCH-1834: extend step xsd to allow custom namespaces as tasklets 2012-07-16 11:17:00 +01:00
Mike Wilkes
1854dfeb3a BATCH-1865: SimpleChunkProvider no longer calls afterRead listener when EOF reached 2012-07-05 09:14:23 +01:00