Commit Graph

189 Commits

Author SHA1 Message Date
dsyer
fca1e65bdd Upgrade to Spring 2.5.2 2008-02-29 14:05:43 +00:00
dsyer
3c981017cd OPEN - issue BATCH-378: RepeatListener is confusing and too generic to use for 'intercepting' a step
http://jira.springframework.org/browse/BATCH-378

No need for setListener() methods.
2008-02-29 13:44:16 +00:00
robokaso
20445128ff removed unnecessary explicit closing of applicationContext (having strange implications on DB cleanup) 2008-02-29 13:11:20 +00:00
dsyer
a1daad39f8 OPEN - issue BATCH-385: Merge user attributes in StepContext with ExecutionContext
http://jira.springframework.org/browse/BATCH-385

removed delegate calls to ItemStream in favour of direct registration
2008-02-29 13:04:18 +00:00
dsyer
90c8f71173 OPEN - issue BATCH-385: Merge user attributes in StepContext with ExecutionContext
http://jira.springframework.org/browse/BATCH-385

Remove step scope support.
2008-02-29 12:22:48 +00:00
dsyer
a53f8f6cbe OPEN - issue BATCH-385: Merge user attributes in StepContext with ExecutionContext
http://jira.springframework.org/browse/BATCH-385

Refactored existing StepContextAware to StepListener implementations.  The BatchResourceFactoryBean is now a ProxyResource with a hint in docos and exception messages about registering with a step.
2008-02-29 11:31:21 +00:00
dsyer
42904865de OPEN - issue BATCH-385: Merge user attributes in StepContext with ExecutionContext
http://jira.springframework.org/browse/BATCH-385
2008-02-29 10:52:06 +00:00
robokaso
ac1f86b1a5 RESLOVED - BATCH-346: CommandLineJobRunner now requires just single xml file argument, samples modified to use import statement (and removed parent context loading from test launcher) 2008-02-29 08:54:09 +00:00
dsyer
651a5362a6 RESOLVED - issue BATCH-400: Batch support schemas does not include RI and primary keys
http://jira.springframework.org/browse/BATCH-400
2008-02-29 08:33:38 +00:00
dsyer
e3f72a64f8 OPEN - issue BATCH-398: That old stateful / stateless things again....
http://jira.springframework.org/browse/BATCH-398

Split up config for TaskExecutorLauncher a bit.  Heading for a more rational approach based on a new application context per run.
2008-02-28 15:10:13 +00:00
dsyer
2a25a7a636 OPEN - issue BATCH-378: RepeatListener is confusing and too generic to use for 'intercepting' a step
http://jira.springframework.org/browse/BATCH-378

Remove unnecessary listener implementations and migrate some functionality to samples.  In the process discovered that tasklet steps cannot be stopped.
2008-02-28 11:41:49 +00:00
dsyer
425c270da3 OPEN - issue BATCH-385: Merge user attributes in StepContext with ExecutionContext
http://jira.springframework.org/browse/BATCH-385

Make Job responsible for setting up step context.  Javadocs on StepContext to indicate that the attributes are volatile.  Add JobParametersAware (might be temporary).
2008-02-28 09:14:06 +00:00
dsyer
1bd4c340f0 Incomplete - task 76: Concurrent modification 2008-02-27 17:41:48 +00:00
robokaso
84073c0b76 IN PROGRESS - issue BATCH-384: consolidate map dao implementations
http://jira.springframework.org/browse/BATCH-384

MapStepDao -> MapStepExecutionDao
improved test coverage for JobExecutionDao
2008-02-27 17:06:46 +00:00
robokaso
a25680d7f4 IN PROGRESS - issue BATCH-384: consolidate map dao implementations
http://jira.springframework.org/browse/BATCH-384

MapJobDao split to MapJobInstanceDao and MapJobExecutionDao.
JobInstanceDao now has getJobInstance(Job,Params) rather than findJobInstances(Job,Params)
2008-02-27 16:14:26 +00:00
robokaso
63496ee571 RESOLVED - issue BATCH-321: Throw exception if attempt to create duplicate job instance occurs (based on job parameters)
http://jira.springframework.org/browse/BATCH-321

repository now throws exception if JobInstance already exists for non-restartable job. Had to tweak sample junit launcher to allow parameter setting because HibernateJob is run twice.
2008-02-27 13:34:04 +00:00
dsyer
ffcbb68f2a Externalise commit interval for football job 2008-02-27 10:15:34 +00:00
dsyer
219e9a08a4 Externalise lob handler reference 2008-02-27 09:51:20 +00:00
dsyer
36fcddb20e Use lobHandler in Staging* 2008-02-27 09:40:42 +00:00
dsyer
e3c86285cf Tidy up streams on close in stream manager 2008-02-27 08:05:52 +00:00
lucasward
b846c68550 BATCH-392:removed saveExecutionContext from step (it's handled at a lower level now) 2008-02-27 03:27:49 +00:00
lucasward
535fd28f91 BATCH-365: ItemStream#Update and ItemStream#close now accept an ExecutionContext as an argument. I removed the local ExecutionContexts in the readers and readers, and had them use the passed in ones instead. 2008-02-26 21:23:08 +00:00
lucasward
93445b9164 BATCH-339: ItemWriter#flush() now throws a FlushFailedException (unchecked) and ItemWriter#clear() now throws a ClearFailedException (also unchecked) 2008-02-26 20:10:38 +00:00
dsyer
5c84a647de Failed to commit last time? 2008-02-26 15:38:58 +00:00
dsyer
40acd63151 Incomplete - task 84: Fix samples
Retry sample fixed too.
2008-02-26 15:21:31 +00:00
dsyer
55e35eac1c Incomplete - task 84: Fix samples
Fix rollback tests as well - exception handler too complicated
2008-02-26 15:16:02 +00:00
dsyer
2b32b8d38e Incomplete - task 84: Fix samples
Fix restart sample - StepExecutionDao was not restoring execution context
2008-02-26 13:19:14 +00:00
dsyer
5e09d034e0 Incomplete - task 84: Fix samples
Switch default skip policy to Never
2008-02-26 12:26:39 +00:00
dsyer
e2c5d1fb97 Remove unnecessary public getter from DelegatingItemReader 2008-02-26 12:21:28 +00:00
dsyer
66c4e7091b Incomplete - task 84: Fix samples
Hibernate failure fixed on flush.
2008-02-26 12:02:33 +00:00
dsyer
2cfb69a852 Incomplete - task 84: Fix samples
Compiler warnings
2008-02-26 11:01:45 +00:00
dsyer
7f0be2826e Incomplete - task 84: Fix samples
Fix column mapping in jdbc cursor - order is important.
2008-02-26 10:41:30 +00:00
lucasward
d24f0af439 BATCH-365: There should now be one ExecutionContext per step. All itemStreams will be opened with an execution context, and will be notified before it is saved, to ensure they have all state in the context. Most ItemReader/Writers should now have the logic for whether or not to put their state in the context, but a few have likely been missed. 2008-02-26 08:29:59 +00:00
dsyer
3b48ece7e5 Moved chunks to a branch (called chunks) 2008-02-26 08:06:11 +00:00
dsyer
85806724a5 Remove RepeatOperationsStep 2008-02-25 17:54:36 +00:00
dsyer
b41415001a Move RepeatOperationsStep up to live with other step implementations 2008-02-25 17:29:41 +00:00
robokaso
7368aa3541 IN PROGRESS - issue BATCH-340: Refactor JobRepository for greater clarity and consistency.
http://jira.springframework.org/browse/BATCH-340

more StepInstance heritage cleaned up - StepExecution refers to Step rather than stepName string
2008-02-25 17:21:46 +00:00
dsyer
4f4b63b6c1 OPEN - issue BATCH-371: FlatFileItemWriter no longer uses LineAggregator
http://jira.springframework.org/browse/BATCH-371

Introduce FieldSetUnmapper for symmetry with input
2008-02-25 14:42:16 +00:00
robokaso
4e05642f98 IN PROGRESS - issue BATCH-340: Refactor JobRepository for greater clarity and consistency.
http://jira.springframework.org/browse/BATCH-340

JobInstance now has not-null Job as required constructor argument - repository no longer requires a separate Job setter
2008-02-25 13:50:53 +00:00
dsyer
1244264e50 Classpath issues on build 2008-02-25 13:08:06 +00:00
lucasward
cae7b666ae BATCH-365: Moved reset and mark to ItemReader interface. 2008-02-24 21:15:01 +00:00
lucasward
58cdd58c79 BATCH-365: Added flush() and clear() to ItemWriter interface. These should be removed from ItemStream after the same is done for the ItemReader interface. 2008-02-24 01:56:11 +00:00
lucasward
325a383eae Renamed Step.simple package to step.support. 2008-02-22 23:02:28 +00:00
lucasward
909894a23b Reorganized the execution.step package to contain all Step implementations 2008-02-22 21:49:05 +00:00
lucasward
8797814b1b Updated the job launcher to work for the latest CommandLineJobRunner 2008-02-22 15:26:19 +00:00
dsyer
ee0236d657 OPEN - issue BATCH-371: FlatFileItemWriter no longer uses LineAggregator
http://jira.springframework.org/browse/BATCH-371

Extend ItemTransformer implementations that deal with field sets and arrays
2008-02-21 09:15:51 +00:00
lucasward
49540b135e First attempt at adding more explicit skip handling and removing the need for 'SimpleStepExecutor'. There's still some cleanup that needs to happen, but it's moving in the right direction. 2008-02-21 04:33:30 +00:00
dsyer
f6bd90fc3e OPEN - issue BATCH-371: FlatFileItemWriter no longer uses LineAggregator
http://jira.springframework.org/browse/BATCH-371

Changed the interface of LineAggregator for symmetry with LineTokenizer.
2008-02-20 08:55:35 +00:00
robokaso
96c48bcbc5 IN PROGRESS - issue BATCH-366: Do we still need StepInstance?
http://jira.springframework.org/browse/BATCH-366

Killed StepInstance - test coverage temporarily low due to commenting obsolete tests (but sample jobs work fine).
2008-02-19 15:41:26 +00:00
lucasward
d7b9cf9d92 BATCH-220: Updated sample jobs to use 'chunkedStep' 2008-02-19 05:55:43 +00:00