Commit Graph

4943 Commits

Author SHA1 Message Date
Michael Minella
b160996576 Created new Neo4J ItemReader to support Spring Data 4
This adds a new ItemReader that works with the Spring Data 4 updated
Neo4JOperations implementation as well as the updated data conversion
techniques.

Resolves BATCH-2473
2016-04-18 18:36:48 -05:00
Stefan Birkner
164bf175c9 Don't use hamcrest-all.
The library is considered to be used by people who download their
dependencies manually. If you use a dependency-manager then you should
use hamcrest-library. It has a dependency on hamcrest-core and does not
need exclusion of hamcrest-core for other dependencies.
2016-04-15 11:23:41 -05:00
jehanson
256e21263b Update schema-appendix.xml
Add JOB_CONFIGURATION_LOCATION column to documentaiton.
2016-04-15 10:58:13 -05:00
Glenn Renfro
12c8ec43c0 Updated the springioCheck to use the 0.0.5 spring-io plugin
And the latest snapshot of the platform.
2016-04-15 10:55:52 -05:00
Michael Minella
5a803937c7 Fixed link to code of conduct in README 2016-02-02 11:40:25 -06:00
Michael Minella
29081f47cc Added code of conduct 2016-02-02 11:36:41 -06:00
Rick Craver
b7b2bb3127 fix assert message in PatternMatchingCompositeLineMapper.java
per BATCH-2427, changed assertion message to say "The 'patternMatcher' property must be non-null"
2015-11-25 16:43:35 -06:00
mark kouba
f6d22f4f80 add shutdown for thread pool task executor so it cleans up and shutdowns
correctly before method exits.
2015-11-25 16:18:56 -06:00
Michael Minella
f14e3fd10f Updated step references 2015-11-25 12:28:08 -06:00
Michael Minella
d81c0d9262 Fixed typo in java config 2015-11-20 17:52:50 -06:00
Andy Wilkinson
680eab2095 Update the tests to use the latest version of JRuby 1.x
Previously, the JRuby engine that was being used pulled in an old
version of JRuby. The engine is incompatible with more recent JRuby 1.x
releases which causes problems for the Spring IO Platform which uses
JRuby 1.7.x.

This commit updates the tests to use the latest version of JRuby 1.x
(1.7.22) which contains its own JSR 223 integration, i.e. there’s no
need for a separate script engine dependency.
2015-11-20 17:30:59 -06:00
Andy Wilkinson
2f552b7449 Make FlatFileItemReaderTests Spring Framework 4.2 compatible
Previously, FlatFileItemReaderTests made a precise assertion that
involved the toString output from ByteArrayResource. This output
has changed between Spring Framework 4.0.x and Spring Framework 4.2.x.
As a result, the test fails when run as part of the Spring IO Platform
build which forces the version of Spring Framework to 4.2.x.

This commit updates the failing test so that it passes against both
Spring Framework 4.0.x and Spring Framework 4.2.x by relaxing the
assertion a little so that it is not dependent on the precise output
of ByteArrayResource's toString method.
2015-11-20 17:08:06 -06:00
Andy Wilkinson
68ee9a2916 Update SmokeTests to be compatible with Spring Integration 4.2
Spring Integration 4.2 has fixed a bug where integration components
were being started too early. SmokeTests was relying on this bug to
start the test class which is also a @MessageEndpoint.

This commit updates the test to use a nested inner-class for the
endpoint and a bean declaration in the XML configuration. This allows
the test to pass against both Spring Integration 4.0 and 4.2.
2015-11-20 16:50:10 -06:00
LinkedList
38fa0895ab Fix FlatFileItemReader example in documentation
Issue: BATCH-2164
2015-11-20 16:17:15 -06:00
guilhermerama
c7ef097c25 partitionJob.xml shouid demonstrate asynch process
The README file on samples describes  the partitionJob as an example of the asynch process feature, so I changed the class of the taskExecutor to SimpleAsyncTaskExecutor
2015-11-20 12:49:11 -06:00
Michael Minella
aef9a52d40 Added test to verify concurrent transactions with HSQLDB 2015-11-09 13:36:57 -06:00
Michael Minella
eafa7ee152 BATCH-2313: Fixed regression of BATCH-2153 by updating HashMap to ConcurrentHashMap 2015-10-15 16:04:00 -05:00
Philippe Marschall
dcc9da8273 BATCH-2407 Use StringBuilder instead of StringBuffer
With Java 1.5 StringBuilder is preferred over StringBuffer for single
threaded access as is has less overhead.

This is evidenced by the class comment of StringBuffer and Effective
Java 2nd Edition Item 67: Avoid excessive synchronization.

> The StringBuilder class should generally be used in preference to
> this one, as it supports all of the same operations but it is faster,
> as it performs no synchronization.

 - replace StringBuffer with StringBuilder where possible

Issue: BATCH-2407
2015-08-06 10:22:39 -05:00
Philippe Marschall
7092102748 BATCH-2411 Remove @SuppressWarnings("unchecked")
The source code contains various @SuppressWarnings("unchecked") that
are no longer unnecessary since the relevant APIs have been upgraded to
support Java 5 generics.

 - remove @SuppressWarnings("unchecked") where no longer unnecessary

Issue: BATCH-2411
2015-08-05 18:04:40 -05:00
Philippe Marschall
3783345c55 BATCH-2412 Add guards around debug statements
In various places in the code base a debug message is constructed
unconditionally. This adds unnecessary overhead in the common case when
debug logging is off.

 - add guards around debug statements in non-test code

Issue: BATCH-2412
2015-08-05 12:04:44 -05:00
Philippe Marschall
7ec7152c5e BATCH-2410 junit.framework.Assert is deprecated 2015-07-31 12:44:25 -05:00
Michael Minella
9279280b3e Updated test for Spring 4.2 support 2015-07-29 10:31:45 -05:00
Alex Jablonski
cbc83015d5 Add regression unit test covering behavior reported in BATCH_2346
Observed that deleting the code fixing issue BATCH_2346 didn't cause
any tests to fail
2015-07-14 14:21:41 -05:00
Jonathan Gray
dc6a2c93b8 BATCH-2402 Refactored (behaviour is exactly the same) to avoid temporary String allocation in order to be more memory space efficient. This helps to avoid garbage collection with large numbers of batch lines and large numbers of quoted tokens. 2015-07-10 12:17:08 -05:00
Amer Aljovic
716c9baff3 BATCH-2312 Implement ItemStream in AsyncItemWriter
This commit adds the feature of allowing a delegate ItemWriter to be an
ItemStreamWriter and have Spring Batch respect the ItemStream lifecycle
events without explicitly configuring the delegate as a stream.
2015-07-09 16:58:59 -05:00
Andy Wilkinson
ff2b6a8cee Remove remaining dependencies on ParameterizedRowMapper
This is a follow-on from adc2f79. It removes the remaining references
to ParameterizedRowMapper and should, therefore, make things fully
compatible with Spring Framework 4.2.
2015-07-09 16:04:50 -05:00
Andy Wilkinson
86e1ca6f8c Use the latest version of the Spring IO Plugin
Spring IO Platform 2.0 will remove the managed versions .properties
file as support for it has been removed in Spring Boot 1.3.

This commit moves the build onto a new version of the Spring IO Plugin
that uses the Maven bom rather than the properties file.
2015-07-08 10:22:07 +01:00
Michael Minella
973fe44d6c Added comment 2015-06-15 11:14:45 -05:00
Matthew Ouyang
248b5a69a7 BATCH-2380: disallow null + empty delimiter 2015-06-12 23:29:30 -04:00
jpraet
61638d52bd BATCH-2311 JobLauncher allows restart of job_execution with status
UNKNOWN

* additionally prevent restart of step executions with status STARTING,
STARTED or STOPPING
* additionally prevent restart of job executions with status UNKNOWN or
STOPPING
2015-06-09 10:06:15 -05:00
Christian Ramseier
77be8b97b4 use current classloader to get the proxied repository 2015-06-08 16:29:51 -05:00
Michael Minella
7be035cd3d Fixed NPE in integration test 2015-05-20 22:31:30 -05:00
Michael Minella
6b688fa2b5 Polishing BATCH-2387 2015-05-19 12:34:27 -05:00
Matthew Ouyang
dfe01f766c add new SynchronizedItemStreamReader
Decorator for an ItemStreamReader
2015-05-19 12:10:22 -05:00
Seo Kyung-Seok
834d8ee627 BATCH-2205:
MethodInvokingTaskletAdaper does not support primitive arguments.
 - Improvement of
AbstractMethodInvokingDelegator.targetClassDeclaresTargetMethod()
2015-05-18 16:22:35 -05:00
Michael Minella
55ca2bc895 Changed MySql engines to all be InnoDB
InnoDB is the only option for transactional tables in MySql.  This
change makes all the table definitions consistent (there previously were
a few that were MyISAM).

BATCH-2373
2015-05-15 16:13:00 -05:00
Michael Minella
ab80c33a2a MultiResourceItemReader executes all or none of the ItemStream methods
If no resources are found to be passed to the delegate ItemStream,
ItemStream#open is not called.  This commit updates the close side to
not call the delegate's close method if the open was not called.

BATCH-2378
2015-05-15 15:15:25 -05:00
Michael Minella
02cfe20225 Refactored to keep column aliases in certain conditions
The solution for BATCH-2079 was too agressive in that it removed table
references from columns in places that ended up in where clauses.  Since
SQL does not support the use of column aliases in where clauses, the
table references are needed.  This fix should address adding the aliases
back where needed, while keeping them out in the windowing paging query
use cases where they were problematic.

BATCH-2360
2015-05-15 14:11:31 -05:00
Michael Minella
c8f8be3b8e Added additional tests around *Aware callbacks in GenericApplicatioNContextFactory BATCH-2358 2015-05-15 11:39:47 -05:00
Michael Minella
2e8e7f67be Added documentation to communicate limitations of when using the
AsyncItemProcessor.

BATCH-2371
2015-05-14 23:27:59 -05:00
sparsick
fa01295ce6 BATCH-2359: fix for the problem that job arguments defined after an empty line are ignored 2015-04-15 09:49:59 -04:00
Michael Minella
37e7ad61b7 Updates to continue debugging 2015-04-14 14:10:51 -04:00
Michael Minella
d42692cc7a Debugging statements for broken unit test (test only fails in CI environment) 2015-04-14 13:53:05 -04:00
Jason Pell
2cdadea4b3 BATCH-2353 update sql server ddl to support ANSI NULL Default = false 2015-04-08 16:43:17 -05:00
Michael Minella
84fc0c3f7c Reset page and item count on RepositoryItemReader#close()
When closing the RepositoryItemReader, this commit now resets the
current item index and page index to be 0 so that it can be reused
imediately (instead of requiring the reader be step scoped for the reset
to occur).

BATCH-2365
2015-03-31 15:19:34 -05:00
Michael Minella
7c60b055c3 Removed dependency on ParameterizedRowMapper
To support Spring Framework 4.2 which removes ParameterizedRowMapper,
all references to that were switched to RowMapper.  As of Spring 3, the
interfaces are identicle so this should cause no backward compatability
issues.

BATCH-2369
2015-03-31 14:08:38 -05:00
Michael Minella
4c72e0407f Updated afterPropertiesSet checks to verify that fragmentRooteElementNames is not empty BATCH-2352 2015-03-06 13:06:26 -06:00
Michael Minella
8b32462072 Clear context to job name mapping when clearing contexts BATCH-2347 2015-03-06 11:54:44 -06:00
Michael Minella
acbe718d78 Fixed image reference BATCH-2340 2015-03-06 11:43:15 -06:00
Michael Minella
e3b7782a1a Fixed example code BATCH-2339 2015-03-06 10:21:37 -06:00