Gemfire integration for Spring Batch
Java
Switch branches/tags
Nothing to show
Pull request Compare This branch is 4 commits ahead, 8 commits behind dsyer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
src
.classpath
.gitignore
.springBeans
README.md
pom.xml

README.md

Spring Batch Gemfire Integration

This project provides some implementations of Spring Batch idioms and SPIs using SpringSource Gemfire.

Getting Started

To build it clone and then use Maven:

$ git clone ...
$ cd spring-batch-gemfire
$ mvn install

To use it you would create a project depend on both Spring Batch and this project. If you have the SpringSource Tool Suite (STS) you can use a template project (File->New->Spring Template Project) to get a starting point.

Using Maven: in your pom.xml

	<dependency>
		<groupId>org.springframework.batch</groupId>
		<artifactId>spring-batch-gemfire</artifactId>
		<version>1.0.0.BUILD-SNAPSHOT</version>
	</dependency>

and then you will be able to use all the features provided by this project.

Features

GemfirePartitionHandler can be used to send Step execution work out into a Gemfire cluster. There is an example in the spring-batch-gemfire unit tests:

<job id="job" xmlns="http://www.springframework.org/schema/batch">
    <step id="step-master">
        <partition handler="partitionHandler" step="step"
            partitioner="partitioner" />
    </step>
</job>
<bean id="partitionHandler" class="org.springframework.batch.core.partition.gemfire.GemfirePartitionHandler">
    <property name="region" ref="region" />
    <property name="gridSize" value="2" />
    <property name="step" ref="step" />
</bean>

See the unit test for more detail.