Externalise commit interval for football job

This commit is contained in:
dsyer
2008-02-27 10:15:34 +00:00
parent 219e9a08a4
commit ffcbb68f2a
3 changed files with 17 additions and 17 deletions

View File

@@ -16,8 +16,6 @@ batch.schema.script=schema-hsqldb.sql
batch.business.schema.script=business-schema-hsqldb.sql
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.HsqlMaxValueIncrementer
batch.lob.handler.class=org.springframework.jdbc.support.lob.DefaultLobHandler
batch.football.job.commit.interval=2
# Other platforms:
# org.springframework.jdbc.support.incrementer.DB2SequenceMaxValueIncrementer

View File

@@ -17,7 +17,8 @@
<property name="steps">
<list>
<bean id="playerload" parent="simpleStep">
<property name="commitInterval" value="1"/>
<property name="commitInterval" value="${job.commit.interval}" />
<property name="startLimit" value="100" />
<property name="itemReader"
ref="playerFileItemReader" />
<property name="itemWriter">
@@ -34,7 +35,6 @@
</property>
</bean>
<bean id="gameLoad" parent="simpleStep">
<property name="commitInterval" value="1" />
<property name="itemReader"
ref="gameFileItemReader" />
<property name="itemWriter">
@@ -44,9 +44,10 @@
ref="dataSource" />
</bean>
</property>
<property name="commitInterval" value="${job.commit.interval}" />
</bean>
<bean id="playerSummarization" parent="simpleStep">
<property name="commitInterval" value="1" />
<property name="commitInterval" value="${job.commit.interval}" />
<property name="itemReader"
ref="playerSummarizationSource" />
<property name="itemWriter">
@@ -136,6 +137,7 @@
<value>
games.file.name=games-small.csv
player.file.name=player-small.csv
job.commit.interval=2
</value>
</property>
<property name="systemPropertiesModeName"

View File

@@ -16,6 +16,9 @@
<property name="steps">
<list>
<bean id="staging" parent="simpleStep">
<property name="commitInterval" value="2" />
<property name="startLimit" value="100" />
<property name="allowStartIfComplete" value="false" />
<property name="itemReader">
<bean
class="org.springframework.batch.item.reader.ValidatingItemReader">
@@ -42,11 +45,17 @@
</property>
</bean>
</property>
<property name="commitInterval" value="2" />
<property name="startLimit" value="100" />
<property name="allowStartIfComplete" value="false" />
</bean>
<bean id="loading" parent="simpleStep">
<property name="stepOperations">
<bean
class="org.springframework.batch.repeat.support.TaskExecutorRepeatTemplate">
<property name="taskExecutor">
<bean
class="org.springframework.core.task.SimpleAsyncTaskExecutor" />
</property>
</bean>
</property>
<property name="itemReader">
<bean
class="org.springframework.batch.sample.item.reader.StagingItemReader"
@@ -64,15 +73,6 @@
<property name="dao" ref="tradeDao" />
</bean>
</property>
<property name="stepOperations">
<bean
class="org.springframework.batch.repeat.support.TaskExecutorRepeatTemplate">
<property name="taskExecutor">
<bean
class="org.springframework.core.task.SimpleAsyncTaskExecutor" />
</property>
</bean>
</property>
</bean>
</list>
</property>