Commit Graph

5132 Commits

Author SHA1 Message Date
Michael Minella
fa286dc1e9 Refactored JobExecution for performance
In order to make the Map based JobRepository threadsafe, the
JobExecutino was modified to use a `CopyOnWriteArraySet` for the
collection backing the child `StepExecution` collection.  However, this
collection option has bad performance characteristics when used with
large collections.  When using partitioning, it can be common to have a
large number of `StepExecution` instances to add which drastically hurts
start up time.

This commit remove the use of the `CopyOnWriteArraySet` for the
`JobExecution#stepExecutions` and replaces it with a `LinkedHashSet`
wrapped via `Collection.synchronizedSet`.

Resolves BATCH-2384
2017-11-02 12:38:35 -05:00
Daniel Heinrich
9322fe6fae BATCH-2455 unifie listener ordering
Why:
Listeners should be called in normal order before some event
(i.e. read, write) and after that event in reverse order.

Side effects:
The ordering of Chunk and ItemReader Listeners is changed and will
change some behaviors of users. This change is still neccesary because
it is not only the correct and obviouse way, but also prevents new
users to hack around this problem.
2017-11-02 10:29:09 -05:00
Michael Minella
e5fe6a5de6 Updated DefaultBatchConfigurer to not overwrite when autowiring
This commit prevents autowiring from overwriting a value set for the
`DataSource` if it has already been set.

Resolves BATCH-2636
2017-11-02 09:58:11 -05:00
Michael Minella
70a5ec24c5 Added a builder for the StoredProcedureItemReader
This commit adds a builder for the StoredProcedureItemReader

Resolves BATCH-2646
2017-11-01 12:35:20 -05:00
Michael Minella
00a16b41b8 Remove checked exception from FlatFileItemReaderBuilder#build
A checked exception from this method is rather invasive so this commit
refactors it to throw a RuntimeException instead.

Resolves BATCH-2649
2017-10-31 16:12:37 -05:00
Michael Minella
3869885993 Added java configuration examples to common-patterns.adoc
This commit added java based configuration examples to the common
patterns documentation page.
2017-10-31 15:46:13 -05:00
Michael Minella
6f5d80065b Added java config examples for testing.adoc
This commit adds two small tweaks to the testing.adoc that demonstrates
how to import java based configuration into a unit test (instead of
importing XML based configurations).
2017-10-31 11:07:18 -05:00
Michael Minella
22ecd3b629 Added java configuration for the retry.adoc 2017-10-30 16:59:21 -05:00
Michael Minella
a256a83e7b Added java config examples for repeat.adoc 2017-10-30 15:48:12 -05:00
Jay Bryant
ead18f76ba Editing pass for spring-batch-integration.adoc
I improved readability and consistency and fixed sentence errors. No questions in this one.

Applied code review changes to PR
2017-10-30 16:29:46 -04:00
Michael Minella
48e300d2d8 Polish 2017-10-30 13:47:21 -05:00
Chris Kirk
c3814cc27d Updated to have java config examples
This commit updates the scalability.adoc to have java configuration examples for all but the last snip in the doc.
2017-10-30 13:47:13 -05:00
Jay Bryant
38d6e7d496 90-character pass for step.adoc
I removed extraneous white space from non-code lines and arranged the non-code lines to be as close to 90 characters as possible. I also edited the new content.

Applied code review changes
2017-10-30 13:48:53 -04:00
Michael Minella
c25af4d89a Updated Hibernate Validator Coordinates
With the more recent versions of Hibernate Validator, the groupId was
changed from org.hibernate to org.hibernate.validator.  This commit
updates Spring Batch to use the correct coordinates.

Resolves BATCH-2648
2017-10-30 09:17:15 -05:00
Jay Bryant
651275dc03 90-character pass for schema-appendix.adoc
I removed extraneous white space from non-code lines and made all the non-code lines be as close to 90 characters as possible. I also changed a sentence to be more consistent with other similar locations in the document.

Code review fixes applied on merge
2017-10-30 09:41:14 -04:00
Jay Bryant
736b926137 90-character pass for transaction-appendix.adoc
I removed extraneous white spice from non-code lines and made the non-code lines break as close to 90 characters as possible. I also fixed a typo.

Applying cod review changes on merge
2017-10-27 17:35:06 -04:00
Jay Bryant
c68e8eb6cb 90-character pass for readersAndWriters.adoc
I removed extraneous white space from non-code lines and arranged the non-code lines to each be as close 90 characters as possible.

Updated PR on merge with bug fixes
2017-10-27 16:36:49 -04:00
Michael Minella
8afb276b3e Fixed javadoc titles 2017-10-23 16:53:53 -05:00
Michael Minella
52d2c257c5 Version updates 2017-10-23 15:52:55 -05:00
Michael Minella
b2f8f7f9cd Refactored to add a way to copy JobParameters into another via builder
In a previous commit, the JobParametersBuilder was updated to include
some code from Spring Boot that handled the incrementing of
JobParameters for a previous job.  That commit brought over a private
`merge` method that is actually useful for general consumption.

This commit adds a `addJobParameters` method to the builder providing
the same functionality the `merge` method did in a public method.
2017-10-20 12:43:06 -05:00
Michael Minella
63dfe4b912 Polish 2017-10-20 11:57:56 -05:00
Glenn Renfro
a35784dbd6 Support getNextJobParameters from JobParametersBuilder.
resolves BATCH-2640

Cleanup and added tests to JobParametersBuilder.
2017-10-20 11:06:04 -05:00
Jay Bryant
96a317c52f Editing pass for readersAndWriters.adoc
I improved readability and consistency, fixed up errors, and asked a couple questions
2017-10-20 10:52:23 -05:00
Jay Bryant
0efa698572 90-character pass for glossary.adoc
I removed extraneous white space and made the lines break as close to 90 characters as possible.
2017-10-20 10:41:48 -04:00
Michael Minella
f21d4ab808 Added java config examples to readersAndWriter.adoc
This commit adds java config examples to the readers and writers
documentation.
2017-10-19 23:36:39 -05:00
Jay Bryant
8392523056 90-character pass for common-patterns.adoc
I removed all the extraneous white space from non-code lines and broke the non-code lines as close to 90 characters as possible. I caught one keyword that wasn't formatted and fixed that.
2017-10-19 21:17:13 -04:00
Michael Minella
5ecf6990f9 Updated to have java config examples
This commit updates the step.adoc to have java configuratione examples
for all snips in the doc.
2017-10-19 14:58:14 -05:00
Michael Minella
24fbb882e6 Updated job.adoc to have java config examples
This commit addresses the job.adoc and how to configure the various
pieces of the framework it covers via java configuration.
2017-10-18 12:00:27 -05:00
Michael Minella
dd8809232e Fixed image urls 2017-10-18 10:17:53 -05:00
Jay Bryant
733cdb35d1 Fitting lines to 90 characters
Adjusted line breaks to get all the lines to be 90 characters or less.
2017-10-18 10:02:34 -05:00
Jay Bryant
0f989d9c9f 90-character pass for scalability.adoc
I removed extraneous characters from non-code lines and arranged the non-code lines to fit into 90 characters.
2017-10-18 10:01:06 -05:00
Jay Bryant
3a3abdc28a 90-character pass for repeat.adoc
I removed all the extraneous characters and line breaks from non-code lines and fitted all the non-code lines to 90 characters.

polish
2017-10-18 10:52:34 -04:00
Michael Minella
11fed07d16 Fix image URL 2017-10-17 23:32:08 -05:00
Jay Bryant
c83d9b4557 90-character pass for domain.adoc
I removed extraneous characters from non-code lines and made each code line be as close to 90 characters as possible. I caught a few items I missed in the editing pass (such as missing hyphen and code ticks around some code words.
2017-10-17 23:24:05 -05:00
Jay Bryant
d0238c9699 90-character formatting
Other than a couple of image references, I fixed all the lines so that they would be no longer than 90 characters and removed unneeded blank lines.

I did find a few other things (mostly periods missing from list items), and I fixed them.
2017-10-17 23:15:13 -05:00
Jay Bryant
55469e3362 Editing pass for schema-appendix.adoc
I increased readability and consistency and corrected sentence errors. I also added a couple internal cross-reference links.
2017-10-17 22:14:17 -05:00
Michael Minella
0c4937ac5a Polish 2017-10-17 21:45:43 -05:00
Jay Bryant
d376c42bde Editing pass for appendix.adoc
I improved readability and consistency and corrected sentence errors. I also added a bunch of links to readersAndWriters.html.
2017-10-17 21:43:20 -05:00
Jay Bryant
25d3b30704 Editing pass for glossary.adoc
I fixed sentence errors. Very simple document (as it should be ), so it can't go wrong in very many ways.
2017-10-17 21:36:27 -05:00
Michael Minella
b6f42de152 Polish 2017-10-17 21:28:12 -05:00
Jay Bryant
2a57ec4fd0 Editing pass for transaction-appendix.adoc
I improved readability and consistence and fixed sentence errors. I also added a couple of internal cross-references.
2017-10-17 21:26:32 -05:00
Michael Minella
1146fc056c Polish 2017-10-17 17:30:42 -05:00
Jay Bryant
e2b18daa59 Editing for step.adoc
I did my "English teacher" thing, added a couple links, and asked a couple questions.
2017-10-17 17:30:14 -05:00
Jay Bryant
fa22b20223 Editing pass for common-patterns.adoc
I improved readability and consistency, added a missing link and some other links, and corrected sentence errors. No questions.
2017-10-17 17:10:16 -05:00
Jay Bryant
a62c2ebd98 Editing pass for testing.adoc
I increased readability and consistency and fixed sentence errors. No questions in this one.
2017-10-17 15:33:51 -05:00
setoguchi
f8cc4918d9 fix typo 2017-10-17 10:29:10 -04:00
Jay Bryant
ae4eabc960 Editing pass for retry.adoc
I made it more readable and consistent and fixed up sentence errors. I added a TODO for a spot that could benefit from an example or two.

polishing on merge
2017-10-17 10:22:16 -04:00
Michael Minella
80de24a6a6 Polish 2017-10-16 13:20:58 -05:00
Jay Bryant
3be6d9df66 Editing pass for domain.adoc
I fixed up language and punctuation problems and improved clarity a bit.
2017-10-16 13:20:47 -05:00
Jay Bryant
6239f95141 Editing pass for scalability.adoc
I improved readability and consistency and corrected sentence errors. No questions this time.

Updating code review changes as a part of merge
2017-10-13 14:16:57 -04:00