Commit Graph

4516 Commits

Author SHA1 Message Date
Chris Schaefer
e5fc0665cc Remove property resolution through the original bean factory post processor and move resolution to
occur during XML pre-processing. JSR-352 allows for property replacement and expressions to be present
on any element and the preprocessing provides the ability to load a well formed XML document into the
context with the intended values already present.
2013-12-13 17:02:19 -05:00
Michael Minella
1f0d5496d1 Updated per code review 2013-12-13 13:50:15 -06:00
Michael Minella
54a5be9eb2 Added the implementation of a post processor to lazily init partition
related artifacts
* Added BeanFactoryPostProcessor
* Fixed StepContext creation (now creates one per thread)
* Fixed StepContext exit status processing (now keeps track of being set
 manualy or not
* Created new Flow implementation to handle JSR-352 state transitions
* Updated flow parsing to not default to completed if no other
 transitions are provided
2013-12-13 13:11:55 -06:00
Chris Schaefer
d8b435e211 Update hsqldb connection string adding the mvcc parameter to avoid serialization exceptions 2013-12-12 16:16:42 -05:00
Michael Minella
b985c52b4d Refactored CheckpointAlgorithmAdapter to be stateful 2013-12-12 14:36:21 -06:00
Michael Minella
17b680f31d Upgraded HSQLDB version to 2.3.1 to fix transaction issue 2013-12-09 14:10:34 -06:00
Michael Minella
7553c383cd Refactored to use the JSR's JobOperator to launch test job 2013-12-09 12:56:57 -06:00
Chris Schaefer
6b4ff3a566 Remove unique transition pattern check per JSR requirements. Transitions are ordered based on their ordering in the job defintion XML document, so for example having an end and stop transition both with a pattern of "foo" is valid. 2013-12-07 13:59:29 -05:00
Michael Minella
074e985b94 Updates per the code review 2013-12-07 12:35:14 -06:00
Michael Minella
78cf001e9e Refactored the JsrJobOperator to start and restart jobs asynchronously
by default.
* Refactored the JsrJobOperator to use SimpleAsyncTaskExecutor by
 default
* Introduced a JobContextFactory to provide a JobContext per thread.
* Updated stop logic to correctly handle stopping jobs running on
 another thread.
2013-12-06 11:37:10 -06:00
Michael Minella
8bee7ac310 Cleaned up merge issues and warnings in POM files 2013-11-22 17:12:22 -06:00
Michael Minella
3dcbb44906 [maven-release-plugin] prepare release 2.2.3.RELEASE 2013-11-22 17:03:55 -06:00
Michael Minella
5b15269c2e Added change log for 2.2.3 release 2013-11-22 16:19:49 -06:00
Michael Minella
55753d7da6 BATCH-2124: Updated files to prevent the ability of inserting more than one row by accident into the sequence tables 2013-11-22 16:19:25 -06:00
Michael Minella
e7319c66f8 BATCH-2122: Updated so that offset would be correctly handled at chunk borders 2013-11-22 16:18:46 -06:00
Michael Minella
dba6590dc2 BATCH-2141: Adding missing page increment when jumping position 2013-11-22 16:18:46 -06:00
stephlag
3c63baa9d8 Corrected typo (HOLD_CUSORS_OVER_COMMIT -> HOLD_CURSORS_OVER_COMMIT) 2013-11-22 16:18:46 -06:00
Michael Minella
c5f65b697f [maven-release-plugin] prepare for next development iteration 2013-11-22 16:18:46 -06:00
Michael Minella
01620222f6 [maven-release-plugin] prepare release 2.2.2.RELEASE 2013-11-22 16:09:10 -06:00
Michael Minella
072b5f33f6 Update version literals prior to release 2.2.2 2013-11-22 15:43:39 -06:00
Michael Minella
6377ff66a5 Updated release documentation 2013-11-22 15:42:01 -06:00
Sanghyuk Jung
bfd6d8d355 BATCH-2096: 'chunk-completion-policy' or 'commit-interval' with '#{jobParameters[...]}' is ignored when 'retry-limit' exists.
* Added a call for a completionPolicy  when creating FaultTolerantStep
* Added an assertion for the chunkCompletionPolicy in the unit test.

JIRA: https://jira.springsource.org/browse/BATCH-2096
2013-11-22 15:40:45 -06:00
Arne Borrmann
856e25a862 BATCH-2040: Fix for erroneous SQL-Query in PagingQueryProvider
- added method for replacing qualifiers with subquery-qualifiers in
select clause
- refactored buildsort method
- Replaced HashMap with LinkedHashMap for right sort orders
2013-11-22 15:40:45 -06:00
jpraet
ca91bbb375 BATCH-2086: default writer implementations need public setter for name 2013-11-22 15:40:45 -06:00
Veit Hoffmann
7c9396da18 Fixed error in FileUtils when creating a new File with append = true.
In this case FileUtils throws a FileCreationException if the path for
the new file doesn't already exist, because it doesn't try to create the
path.

TestCase appendend to FileUtilsTests
testCreateDirectoryStructureAppendMode checks that a path is creaded if
append is true
2013-11-22 15:40:45 -06:00
Michael Minella
3ea8d3ed65 Updated to remove redundant class 2013-11-20 17:29:34 -06:00
Chris Schaefer
1ef21104ac Fixes for TCK tests: testDeciderNextNormal, testDeciderNextSpecial, testFlowTransitionToDecision, testFlowTransitionToStep, testFlowTransitionToStepOutOfScope, testFlowTransitionWithinFlow, testOneArtifactIsJobAndStepListener, testSimpleFlow, testStartLimitVariation1, testStepInFlowStepExecution
Tests blocked by TCK issues: testOneArtifactIsJobAndStepListener, testStartLimitVariation1

* Expose job level properties to step artifacts and update tests
* Make JobParameterResolvingBeanFactoryPostProcessor HIGHEST_PRECEDENCE to avoid other BFPP's creating bean defs first
* General cleanup and renaming
* Register a bean definition for the JobContext prior to refreshing the beanfactory so it becomes injectable. Set properties and the jobExecution on the JobContext bean after they are initalized.
* Only step scope non-step scoped listeners
* Parse flow elements and transitions
2013-11-20 17:29:34 -06:00
Chris Schaefer
416033299f BATCH-2134: Spring Batch 3.0.0.M2 failed to build in Windows environment 2013-11-19 13:53:29 -05:00
Michael Minella
fb7582a54f BATCH-2003: Updated per code review comments 2013-11-19 10:13:32 -06:00
Michael Minella
102f614874 BATCH-2003: Implemented:
* Basic partitioning support per JSR-352
* Parameter injection at the partition level
* PartitionCollector/PartitionAnalyzer functionality
* PartitionReducer functionality
2013-11-12 17:26:27 -06:00
Chris Schaefer
2eda8c2aeb Catch BeanCreationException on start/start of a job in JsrJobOperator, rethrowing it as a JobStartException 2013-10-24 12:49:51 -04:00
jpraet
2d0e0c22ac BATCH-2053: Allow overriding step scope proxy-target-class flag on bean
level with aop:scoped-proxy
2013-10-16 10:38:21 -05:00
Eduard von Feek
8a72d9ff9f * changed keyword from "type" to "engine"
* changed from MyISAM to InnoDB
* fixed property "platform" from "oracle10g" to "mysql"
2013-10-16 09:33:22 -05:00
Gunnar Hillert
dbcc935894 BATCH-2100 Add CONTRIBUTING.md file 2013-10-15 10:33:23 -05:00
andrefernandes
90d07b4283 Update schema-derby.sql
Fix JOB_CONFIGURATION_LOCATION field (should be DEFAULT NULL or NOT NULL)
2013-10-15 09:52:48 -05:00
Chris Schaefer
e53533e9e3 BATCH-2005: Implement JSR RetryListener along side Spring Batch's RetryListener 2013-10-15 08:43:14 -05:00
Chris Schaefer
df53ea12b3 BATCH-2095: Change JSR version of Split to execute flows in separate threads. 2013-10-02 15:30:46 -04:00
Chris Schaefer
34f9fa7341 General cleanup etc around properties and substitution
* Move pre-context init of JobParameters support out of ThreadLocalClassloaderBeanPostProcessor
* General cleanup in BatchPropertyBeanPostProcessor, move artifact type checking into classifer class, minor naming updates
* Refactor BatchPropertyContext to use different data structures for different types of properties and provide named accessors
* Remove path based artifact scoping support
* Make sure expressions are parsed when resolving properties directly from XML
* Update property tests
* Move registration of jobProperties bean into the JsrNamespaceUtils
2013-09-26 12:38:23 -04:00
Michael Minella
fdef20f431 Fixed JSR-352 skip listener processing 2013-09-20 16:37:31 -05:00
Michael Minella
a30840693e Updated retry logic for a JSR configured processor 2013-09-19 14:55:56 -05:00
Michael Minella
4825073411 Refactored to use SerializationUtils and cleaned up throws clause 2013-09-19 10:32:43 -05:00
Michael Minella
c98ed8dfe7 Refactored to copy checkpoint object before persisting to prevent side effects when batch artifacts reuse checkpoint objects 2013-09-18 17:44:41 -05:00
Andrew Eisenberg
eef0577979 Expose getJobParameters to subclasses
Fix for 
https://jira.springsource.org/browse/BATCHADM-176
2013-09-11 11:59:03 -07:00
Michael Minella
35332a4757 [maven-release-plugin] prepare for next development iteration 2013-09-09 21:31:36 -07:00
Michael Minella
395c219b8b [maven-release-plugin] prepare release 3.0.0.M2 2013-09-09 21:31:30 -07:00
Michael Minella
a781cd5503 Update version literals prior to release 3.0.0.M2 2013-09-09 21:06:01 -07:00
Michael Minella
c676808f15 Added migration documentation for 3.0.0.M2 release 2013-09-09 20:38:57 -07:00
Chris Schaefer
e1f6de38e0 BATCH-2002: Initial support for complex conditional replacements 2013-09-09 16:28:46 -07:00
Chris Schaefer
65d2df652a Add ability to set a custom TaskExecutor impl, remove unused namespaces from JSR bootstrap XML files 2013-09-09 16:00:01 -07:00
Chris Schaefer
8580756857 Update to allow restart parameters to override previous parameters in JsrJobOperator and add test case 2013-09-09 15:28:14 -07:00