Commit Graph

788 Commits

Author SHA1 Message Date
robokaso
12cce44e67 IN PROGRESS - issue BATCH-340: Refactor JobRepository for greater clarity and consistency.
http://jira.springframework.org/browse/BATCH-340

JobDao split into JobInstanceDao and JobExecutionDao
2008-02-12 10:15:52 +00:00
lucasward
1c620b1b02 Removed an in-progress class that was still in progress. 2008-02-12 06:09:29 +00:00
lucasward
1871df0539 BATCH-220:Added the 'Dechunker', as the opposite of Chunker. It assumes that some higher level class will be managing transactions. Also renamed ReadFailurePolicy to ItemSkipPolicy (Same name used by Ben in the Sandbox) once I realized that a 'ReadFailurePolicy' and 'WriteFailurePolicy' would have pretty much the same interface. 2008-02-12 06:07:40 +00:00
lucasward
10e7514290 BATCH-220:Added the 'Dechunker', as the opposite of Chunker. It assumes that some higher level class will be managing transactions. Also renamed ReadFailurePolicy to ItemSkipPolicy (Same name used by Ben in the Sandbox) once I realized that a 'ReadFailurePolicy' and 'WriteFailurePolicy' would have pretty much the same interface. 2008-02-12 06:07:33 +00:00
dsyer
2b87124b85 RESOLVED - issue BATCH-241: Support for JobLauncher.stop() on job that hasn't started yet (delayed execution)
http://jira.springframework.org/browse/BATCH-241

Since SimpleJobLauncher no longer has a stop method, we have to do the check on execution, lower down the stack.  Added explicit check for STOPPED status in SimpleJob and JoBExecution.
2008-02-11 19:54:21 +00:00
dsyer
2ce3013ac1 RESOLVED - issue BATCH-268: retry configuration for ItemOrientedTasklet
http://jira.springframework.org/browse/BATCH-268

The retry only works if you have an ItemStream as an ItemReader (so that you get a proper rollback).  Applied the patch and fixed it up to fit the new m5 way of looking at things.
2008-02-11 17:23:57 +00:00
robokaso
0824f1aeb3 IN PROGRESS - issue BATCH-340: Refactor JobRepository for greater clarity and consistency.
http://jira.springframework.org/browse/BATCH-340

StepDao split into StepInstanceDao and StepExecutionDao. AbstractJdbcBatchMetadataDao created to remove the duplications.
2008-02-11 16:15:24 +00:00
dsyer
7b26bc4f2e OPEN - issue BATCH-350: Remove close() method from non ItemStreams
http://jira.springframework.org/browse/BATCH-350

Remove redundant close() method
2008-02-11 09:46:01 +00:00
lucasward
f7cface009 BATCH-220: Committed the read part of chunking, without adding it to the StepExecutor. It should be noted that I used 'Chunker' instead of 'ChunkReader', since there's already precedence in the java world, and it isn't reading chunk so much as making a chunk out of items. I have also added skipCount to StepExecution, since it's reasonable that this type of data A) should be persisted and B) the domain object is the most logical place for this type of state. 2008-02-11 03:18:09 +00:00
lucasward
7a2cdadf8c BATCH-220: Committed the read part of chunking, without adding it to the StepExecutor. It should be noted that I used 'Chunker' instead of 'ChunkReader', since there's already precedence in the java world, and it isn't reading chunk so much as making a chunk out of items. I have also added skipCount to StepExecution, since it's reasonable that this type of data A) should be persisted and B) the domain object is the most logical place for this type of state. 2008-02-11 03:17:58 +00:00
lucasward
af1729f251 BATCH-220: Committed the read part of chunking, without adding it to the StepExecutor. It should be noted that I used 'Chunker' instead of 'ChunkReader', since there's already precedence in the java world, and it isn't reading chunk so much as making a chunk out of items. I have also added skipCount to StepExecution, since it's reasonable that this type of data A) should be persisted and B) the domain object is the most logical place for this type of state. 2008-02-11 03:17:50 +00:00
dsyer
38119c83bf OPEN - issue BATCH-347: aop / template interceptor class names ambiguous
http://jira.springframework.org/browse/BATCH-347

Rename test case to match unit under test (RetryListenerAdapter)
2008-02-10 16:29:25 +00:00
dsyer
ad71b2f56e OPEN - issue BATCH-347: aop / template interceptor class names ambiguous
http://jira.springframework.org/browse/BATCH-347

Rename Rpeat/RetryInterceptor as *Listener (and get rid of last error in samples).
2008-02-10 16:27:08 +00:00
dsyer
31818eed98 Remove close() method (not in interface) 2008-02-10 11:56:05 +00:00
dsyer
554e526818 Move clover repository location to profile. 2008-02-10 11:49:15 +00:00
dsyer
dda3af1afb Sublclipse missing file on last commit 2008-02-10 11:48:04 +00:00
dsyer
134b72ba1e Wrong naming convention for unit test 2008-02-10 11:47:19 +00:00
dsyer
7775b270d5 Various tidying up to remove tasklet from simple steps and fix samples config. 2008-02-10 11:45:58 +00:00
dsyer
0bc8aa4493 Incomplete - task 79: Failed build with queue in repeat template
Change internals of TaskExecutorRepeatTemplate to distinguish between error condition and success in a more type-safe way.
2008-02-10 11:44:39 +00:00
lucasward
c1b2db5a59 Fixed broken unit tests and sample jobs from move away from Tasklet. 2008-02-10 04:28:23 +00:00
lucasward
7ae6b41f5e Fixed broken unit tests and sample jobs from move away from Tasklet. 2008-02-10 04:28:16 +00:00
lucasward
c4df50bfe4 Fixes to get the codebase to compile successfully again, still a ways to go before all tests pass. 2008-02-10 01:28:50 +00:00
lucasward
4a37d15c61 Fixes to get the codebase to compile successfully again, still a ways to go before all tests pass. 2008-02-10 01:28:41 +00:00
nebhale
75ff70d027 First whack at removing the ItemOrientedTasklet. I realize this doesn't yet compile to pass tests. 2008-02-09 17:32:39 +00:00
dsyer
012e2634f8 Incomplete - task 79: Failed build with queue in repeat template
Prevent race that fails CI build sometimes by making put() atomic.
2008-02-09 15:09:05 +00:00
nebhale
342cb1375f [BATCH-334] Added a TaskletStep implementation 2008-02-08 17:06:06 +00:00
nebhale
6e281edac0 Polishing 2008-02-08 17:05:04 +00:00
dsyer
c1d82aae5b OPEN - issue BATCH-339: ItemStream.mark() and reset() should throw a checked exception
http://jira.springframework.org/browse/BATCH-339

Make sure existing ItemStreams throw ResetFailedException where necessary.
2008-02-08 15:21:52 +00:00
dsyer
1efb6fedc9 OPEN - issue BATCH-339: ItemStream.mark() and reset() should throw a checked exception
http://jira.springframework.org/browse/BATCH-339

Missing classes
2008-02-08 13:59:25 +00:00
dsyer
c43c1b4466 OPEN - issue BATCH-339: ItemStream.mark() and reset() should throw a checked exception
http://jira.springframework.org/browse/BATCH-339

Introduce MrakFailedException and ResetFailedException (unchecked for now).  ResetFailedException has to be dealt with specially in the StepExecutor.
2008-02-08 13:46:11 +00:00
nebhale
dd53697a0e Polishing 2008-02-08 09:31:36 +00:00
nebhale
55f5e36293 [BATCH-85] Polishing 2008-02-08 08:38:30 +00:00
dsyer
7349b85586 switch flag for samples dependencies 2008-02-07 18:44:27 +00:00
dsyer
17bf34a873 update version number and dependencies for samples 2008-02-07 18:43:13 +00:00
robokaso
1128bbe187 IN PROGRESS - issue BATCH-340: Refactor JobRepository for greater clarity and consistency.
http://jira.springframework.org/browse/BATCH-340

renaming and javadoc updates
2008-02-07 11:47:43 +00:00
dsyer
20baeef552 Removed unused interface 2008-02-06 19:36:33 +00:00
robokaso
37cf297899 RESOLVED - issue BATCH-343: close() is called twice on ItemReaders/ItemWriters
http://jira.springframework.org/browse/BATCH-343

ItemStream implementations no longer implement DisposableBean
2008-02-06 14:20:21 +00:00
nebhale
242970dd29 [maven-release-plugin] prepare for next development iteration 2008-02-06 09:52:23 +00:00
nebhale
f6e0c7aec5 [maven-release-plugin] prepare release spring-batch-1.0.0.m4 2008-02-06 09:51:56 +00:00
nebhale
5656b0ca46 Just a little nudge 2008-02-06 09:30:29 +00:00
dsyer
c86454fbe0 Add TODO for possible race condition 2008-02-06 07:08:18 +00:00
lucasward
a0c4af8351 BATCH-337:No *Instance domain objects (or their respective tables) contain a 'status'. Instead, they contain the 'last execution', which can be used to determinte the status. RestartData is also no longer necessary, as everything can be 'restored' by calling stepInstance.getLastExecution().getExecutionAttributes(). Also changed all 'ID' columns to be complete, such as 'JOB_INSTANCE_ID' rather than just 'ID'. 2008-02-06 03:44:19 +00:00
lucasward
5763e72c44 BATCH-337:No *Instance domain objects (or their respective tables) contain a 'status'. Instead, they contain the 'last execution', which can be used to determinte the status. RestartData is also no longer necessary, as everything can be 'restored' by calling stepInstance.getLastExecution().getExecutionAttributes(). Also changed all 'ID' columns to be complete, such as 'JOB_INSTANCE_ID' rather than just 'ID'. 2008-02-06 03:44:11 +00:00
lucasward
7632f29c4a BATCH-337:No *Instance domain objects (or their respective tables) contain a 'status'. Instead, they contain the 'last execution', which can be used to determinte the status. RestartData is also no longer necessary, as everything can be 'restored' by calling stepInstance.getLastExecution().getExecutionAttributes(). Also changed all 'ID' columns to be complete, such as 'JOB_INSTANCE_ID' rather than just 'ID'. 2008-02-06 03:43:53 +00:00
lucasward
6012f6ed8a BATCH-338: Added extra constructors to StreamException. 2008-02-05 16:57:19 +00:00
robokaso
bab5f97e84 RESOLVED - issue BATCH-336: Create Migration guide for moving from Milestone 3 to Milestone 4.
http://jira.springframework.org/browse/BATCH-336
2008-02-05 15:56:53 +00:00
dsyer
5e12022928 m3 -> m4 in some docos 2008-02-05 11:41:33 +00:00
dsyer
05e0804020 Removed the close() method from ItemWriter - it shadows ItemStream so use that interface if needed. 2008-02-05 11:37:03 +00:00
dsyer
f41487b32b Removed the close() method from ItemReader - it shadows ItemStream so use that interface if needed. 2008-02-05 11:33:23 +00:00
dsyer
4d6d29b759 Javadocs 2008-02-05 11:26:45 +00:00