Commit Graph

976 Commits

Author SHA1 Message Date
Michael Minella
b2b54921ae Added code to default item count to 10 when not provided in JSR DSL 2013-08-22 21:45:32 -05:00
Michael Minella
3201923299 BATCH-2072: Removed DecisionAdapter and replaced it with a DecisionStep and related classes 2013-08-22 13:48:34 -04:00
Chris Schaefer
3f85c34f00 BATCH-2002: JSR Property Substitution Language 2013-08-21 23:37:32 -04:00
Michael Minella
960166510e Fixed leaking of Job level properties into the StepContext 2013-08-16 11:19:48 -05:00
Michael Minella
656ca5855d Fixed exception behavior on JsrJobOperator#getJobInstanceCount 2013-08-15 17:02:27 -05:00
Michael Minella
d06ebaedc3 BATCH-2071: Implementation of JSR-352's requirement for loading batch artifacts via the thread local classloader
* Added a BeanFactoryPostProcessor to add bean definitions for batch artifacts referenced only by class name
* Updated the BatchPropertyBeanPostProcessor to address scope targets
* Moved the registration of the various post processors to a new JsrNamespaceUtils (similar to how they are handled with the core namespace)
2013-08-15 10:39:44 -05:00
Michael Minella
3f381ddb89 BATCH-2072: Implemented wrapper for JSR-352 Decider 2013-08-12 22:48:02 -05:00
Michael Minella
b8479493bd BATCH-2062: Added ChunkProcessor implementations to support JSR-352's chunking pattern
* Added the JsrChunkProvider implementation - a no-op ChunkProvider implementation to be used by the ChunkOrientedTasklet
* Added the JsrChunkProcessor - A simple implementation of a ChunkProcessor that handles the JSR-352 chunking pattern (read and process loop with a single write per chunk).
* Added the JsrFaultTolerantChunkProcessor - A ChunkProcessor that implements chunking the way JSR-352 requires as well as adding skip/retry functionality.
* Added builders to support the above functionality.
2013-08-09 18:05:40 -05:00
Chris Schaefer
c6fabd72a6 BATCH-2001 JSR Property support. 2013-08-09 14:59:38 -05:00
Tobias Flohre
4d9b75359d BATCH-2077 Java Config: Register listeners just once 2013-08-09 16:16:37 +02:00
Michael Minella
35c9e2ea89 BATCH-2006: Completed implementation of JobContext and StepContext
* Implemented the interfaces per the JSR-352 spec
* Added a ne StepContextFactoryBean used to add the StepContext (one per step) into the step scope to be available for injection by batch artifacts.
* Updated the StepParser to utilize the new StepContextFactoryBean.
2013-08-05 11:35:54 -05:00
Michael Minella
aa0559b4ab BATCH-2008: Completed implementaiton of JSR-352 JobInstance, JobExecution and StepExecution
* Spring Batch's native JobInstance now implements the JSR's JobInstance interface.
* SB's JobExecution can be wrapped by a JSR's JobExecution.
* SB's StepExecution can be wrappedy by a JSR's StepExecution.
* A new JsrFlowJob and JsrFlowExecutor have been introduced to correctly handle the promotion of ExitStatuses during step execution.
* The JsrJobOperator has been fixed to correctly retrieve StepExecutions (previously was not returning fully hydrated verions).
2013-08-05 11:14:50 -05:00
Michael Minella
c014f223f1 Updated BatchletAdapter to call Batchlet.stop() when apropriate 2013-08-05 10:54:36 -05:00
willschipp
81e0c38d52 BATCH-2009 - Stoppable tasklet
* Added the StoppableTasklet interface (an extension of the Tasklet interface).
* Updated JobOperator#stop(long executionId) to call StoppableTasklet#stop() on any currently running tasklets (local executions only).
* Updated the SystemCommandTasklet to implement StoppableTasklet
2013-08-05 10:26:52 -05:00
Michael Minella
dbc829273b BATCH-2007: Refactored to use JobParametersConverter instead of new interface 2013-08-04 11:49:48 -05:00
Michael Minella
ce16ad2b03 BATCH-2007: Added a JobOperator implementation that complies with JSR-352.
* Added JsrJobOperator
* Added a ParametersConverter (and JSR-352 implementation) that converts parameters as specified by the JSR to JobParameters and back
* Added a method to the JobRepository to allow the direct creation of a JobInstance (since the JSR requires a new instance for each call to JobOperator#start
* Added a base context to be bootstrapped when the JobOperator is first referenced.  It provides things like a JobRepository, etc.
2013-08-04 11:49:48 -05:00
Michael Minella
775dd15be1 BATCH-2004: Added basic wrappers for the the majority of batch artifacts. 2013-07-29 09:15:53 -05:00
Michael Minella
7e85b50616 Merge conflict 2013-07-26 17:00:05 -05:00
Michael Minella
5e0b2505cc BATCH-2000: Adding support for JSR-352's batch.xml file 2013-07-24 15:15:36 -05:00
Michael Minella
e4c33965a0 BATCH-1999: Initial commit of JSR parsing infrastructure 2013-07-24 15:15:36 -05:00
jpraet
0c892da257 BATCH-2036: Output incorrect when using processor-transactional="false"
and skips.
2013-07-15 10:48:35 -05:00
Sergey Shcherbakov
6af38bb5d8 BATCH-2034: Fix for the FlowStep run issue in a remote partitioning use case
- jobInstance field gets filled out in SimpleJobExplorer.getStepExecution(Long jobExecutionId, Long executionId)
- existing unit test enhanced to verify that the jobInstance field gets set
- additional integration unit test added to illustrate the issue
2013-06-10 14:42:58 -05:00
cesaralves
daeecbfd6e Merge pull request #164 from cesaralves/patch-2 2013-06-07 16:47:42 -05:00
cesaralves
5ac677eb1d Merge pull request #163 from cesaralves/patch-1 2013-06-07 15:48:42 -05:00
Dave Syer
378006801a BATCH-2023: Change default @StepScope proxy mode to INTERFACES 2013-05-06 09:48:19 +01:00
Michael Minella
80eb802658 BATCH-2019: Updated to support Spring 3.1 profiles with properties 2013-04-30 10:38:29 -05:00
Michael Minella
a8e8505e77 BATCH-1924: Updated SimpleFlow to correctly continue processing on the restart of a STOPPED state 2013-04-01 17:19:05 -05:00
Michael Minella
f1ef29f0a3 Rebase conflict 2013-04-01 09:32:21 -05:00
Michael Minella
b83d88df98 Merge pull request 143 from dturanski/BATCH-1908-JUnit 2013-03-19 13:42:06 -05:00
Michael Minella
55ef8805b8 BATCH-1908: Minor cleanup/formatting 2013-03-06 14:57:44 -06:00
David Turanski
2f9df44443 BATCH-1908. Added batch inserts to JdbcExecutionContextDao and JdbcStepExecutionDao. Added JobRepository.addAll(Collection<StepExecution>) 2013-03-06 13:47:54 -06:00
Michael Minella
12317a0e0c BATCH-1723: Updated JobParameters to return wrapper classes 2013-03-05 10:23:49 -06:00
Michael Minella
aedf03fad0 BATCH-1966: Some minor cleanup 2013-03-04 14:08:19 -06:00
Dean de Bree
d1b84f3e2f Added ExecutionContextUserSupport to the ItemStream Support class
Changed child classes to use this shared object
Changed some classes that previously extended ExecutionContextUserSupport
to rather use the same common parent class as everything else.
Changes all for issue BATCH-1966
2013-03-04 09:15:16 -06:00
Michael Minella
b1bd3d3d1e BATCH-1847: Updated StepScope to not proxy abstract beans 2013-03-01 18:11:06 -06:00
Michael Minella
8155ded461 Fixing integration test due to change in Proxy's toString 2013-02-28 09:12:14 -06:00
Dean de Bree
1b9d477386 Cleaned up some interface references 2013-02-19 09:24:47 -06:00
Will Schipp
0a264f2d6b BATCH-1770 - added step BatchStatus.UNKNOWN to SimpleJobLauncher before
starting the job
2013-02-11 16:57:59 +00:00
Will Schipp
7e1e66d677 migration from EasyMock to Mockito 2013-02-10 14:30:57 +00:00
Dave Syer
607e98cd9b BATCH-1412: fix test ordering and concurrency bug 2013-02-05 17:39:12 +00:00
Michael Minella
557515df45 BATCH-1412: Implementing non-identifying job parameters 2013-02-05 17:39:12 +00:00
Michael Minella
47d07b0326 BATCH-1757: Fixed max calculation 2013-02-05 09:39:28 -06:00
Dave Syer
bea04ce186 More defensive StepScope schlepping in tests 2013-02-05 09:39:28 -06:00
Michael Minella
9d53631ce9 BATCH-1745: Fixed rebase issue 2013-01-22 13:25:40 -06:00
Michael Minella
4c9204759d BATCH-1745: Added test to verify restart behavior 2013-01-22 13:14:48 -06:00
Will Schipp
c6d7a4abd6 additional logic to support if already set by a tasklet - the step value
is ignored
2013-01-22 12:39:02 -06:00
Will Schipp
5e8c1b5684 test changes 2013-01-22 12:39:02 -06:00
Will Schipp
525699532e trial ignore 2013-01-22 12:39:02 -06:00
Will Schipp
8ae4cae14a renamed test and corresponding text context 2013-01-22 12:39:02 -06:00
Will Schipp
85c1d06a7d BATCH-1745 - removed excessive schema, added test and cleaned up schema
mappings
2013-01-22 12:39:02 -06:00