Commit Graph

211 Commits

Author SHA1 Message Date
lucasward
428a60f86f BATCH-407:Added repository factory to samples and created a factory for incrementers for that logic to obtain them could be unit tested. Also renamed SimpelJobRepositoryFactoryBean to just JobRepositoryFactoryBean 2008-03-03 20:23:34 +00:00
dsyer
379f2fe826 RESOLVED - issue BATCH-404: FactoryBeans for step configuration
http://jira.springframework.org/browse/BATCH-404

ItemProcessor -> ItemHandler.
2008-03-03 18:01:02 +00:00
dsyer
36801d7d5d OPEN - issue BATCH-404: FactoryBeans for step configuration
http://jira.springframework.org/browse/BATCH-404

SPlit item processor implementations
2008-03-03 17:50:16 +00:00
lucasward
33f216fea9 BATCH-402: Removed startLimit from Job. Also removed executionCount from JobExecution. 2008-03-03 17:16:25 +00:00
dsyer
72017cf62b OPEN - issue BATCH-404: FactoryBeans for step configuration
http://jira.springframework.org/browse/BATCH-404

Replace allwaysSkip=true/false with a skipLimit.
2008-03-03 17:08:32 +00:00
dsyer
196b8547b8 OPEN - issue BATCH-404: FactoryBeans for step configuration
http://jira.springframework.org/browse/BATCH-404

Remove SimpleStepFactoryBean.
2008-03-03 16:16:59 +00:00
dsyer
912c7d3ab9 unix line endings 2008-03-03 11:12:46 +00:00
dsyer
81b9b5ebc8 OPEN - issue BATCH-404: FactoryBeans for step configuration
http://jira.springframework.org/browse/BATCH-404

Switch back to strongly typed listeners and streams in ItemOrientedStep
2008-03-02 13:55:54 +00:00
dsyer
e5cccef3d1 OPEN - issue BATCH-404: FactoryBeans for step configuration
http://jira.springframework.org/browse/BATCH-404

Remove references to KitchenSinkStepFactoryBean - use StatefulRetryStepFactoryBean for remaining sample.
2008-03-02 13:07:04 +00:00
dsyer
108c21b187 OPEN - issue BATCH-404: FactoryBeans for step configuration
http://jira.springframework.org/browse/BATCH-404

New flag on DefaultStepFactoryBean for item skip policy (alwaysSkip=false is the default).
2008-03-02 12:04:12 +00:00
dsyer
df0c615ff8 OPEN - issue BATCH-404: FactoryBeans for step configuration
http://jira.springframework.org/browse/BATCH-404

Introduce DefaultStepFactory and reduce reliance on KitchenSink.
2008-03-02 11:42:10 +00:00
dsyer
40f5349c0e OPEN - issue BATCH-404: FactoryBeans for step configuration
http://jira.springframework.org/browse/BATCH-404

Introduce (as temporary measure) KitchenSinkStepFactoryBean.
2008-03-02 09:38:01 +00:00
dsyer
743d1c52b5 Incomplete - task 88: FactoryBeans for steps
SimpleStepFactoryBean is not yet "simple", but it passes all the tests.  TODO: break it down into more manageable pieces.
2008-03-01 17:27:29 +00:00
dsyer
b89a68dfeb Incomplete - task 87: Refactor KeyedItemReader
Split off from ItemReader interface.
2008-03-01 15:24:06 +00:00
dsyer
b47a6e6405 Tidy up some exception class names 2008-03-01 11:59:33 +00:00
dsyer
90cb1e8ea3 Rename some packages with more logical names 2008-03-01 10:24:28 +00:00
dsyer
0eb239c9cb RESOLVED - issue BATCH-398: That old stateful / stateless thing again....
http://jira.springframework.org/browse/BATCH-398

Fix JMX demo using an application context per job execution.
2008-03-01 09:59:01 +00:00
dsyer
f2129d4ea7 OPEN - issue BATCH-398: That old stateful / stateless thing again....
http://jira.springframework.org/browse/BATCH-398

Fix delegate job (duplicate job regsitry).
2008-03-01 08:35:12 +00:00
dsyer
6f6ea2d70e OPEN - issue BATCH-398: That old stateful / stateless thing again....
http://jira.springframework.org/browse/BATCH-398

Fix Eclipse launcher for command line jobs
2008-03-01 08:07:13 +00:00
dsyer
840ea77b7f OPEN - issue BATCH-398: That old stateful / stateless thing again....
http://jira.springframework.org/browse/BATCH-398

New XML configuration convention for samples tests (similar to JUnit 4 support in Spring 2.5).  This enables us to keep the job configurations separate.
2008-02-29 18:35:37 +00:00
robokaso
b4655119ca BATCH-401: prototype of JobInterruptionAdvice added to samples (see GracefulShutdownTests) 2008-02-29 18:21:06 +00:00
dsyer
e5f4413101 OPEN - issue BATCH-378: RepeatListener is confusing and too generic to use for 'intercepting' a step
http://jira.springframework.org/browse/BATCH-378

Fix hibernate aware item writer - no need for listener interface now that ItemWRiter has flush/clear
2008-02-29 16:15:52 +00:00
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