|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.step.item.AbstractStepFactoryBean org.springframework.batch.core.step.item.SimpleStepFactoryBean
public class SimpleStepFactoryBean
Most common configuration options for simple steps should be found here. Use
this factory bean instead of creating a Step
implementation manually.
This factory does not support configuration of fault-tolerant behavior, use
appropriate subclass of this factory bean to configure skip or retry.
SkipLimitStepFactoryBean
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
logger
|
Constructor Summary | |
---|---|
SimpleStepFactoryBean()
|
Method Summary | |
---|---|
protected void |
applyConfiguration(ItemOrientedStep step)
|
protected RepeatTemplate |
getChunkOperations()
Protected getter for the chunk operations to make them available in subclasses. |
protected ExceptionHandler |
getExceptionHandler()
Protected getter for the ExceptionHandler . |
protected ItemHandler |
getItemHandler()
Public getter for the ItemHandler. |
protected RepeatTemplate |
getStepOperations()
Protected getter for the step operations to make them available in subclasses. |
void |
setChunkCompletionPolicy(CompletionPolicy chunkCompletionPolicy)
Public setter for the CompletionPolicy applying to the chunk
level. |
void |
setCommitInterval(int commitInterval)
Set the commit interval. |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
Public setter for the ExceptionHandler . |
protected void |
setItemHandler(ItemHandler itemHandler)
Public setter for the ItemHandler. |
void |
setTaskExecutor(TaskExecutor taskExecutor)
Public setter for the TaskExecutor . |
void |
setThrottleLimit(int throttleLimit)
Public setter for the throttle limit. |
Methods inherited from class org.springframework.batch.core.step.item.AbstractStepFactoryBean |
---|
getItemReader, getItemWriter, getListeners, getName, getObject, getObjectType, getTransactionAttribute, isSingleton, setAllowStartIfComplete, setBeanName, setItemReader, setItemWriter, setJobRepository, setListeners, setSingleton, setStartLimit, setStreams, setTransactionAttribute, setTransactionManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public SimpleStepFactoryBean()
Method Detail |
---|
public void setCommitInterval(int commitInterval)
commitInterval
- 1 by defaultpublic void setChunkCompletionPolicy(CompletionPolicy chunkCompletionPolicy)
CompletionPolicy
applying to the chunk
level. A transaction will be committed when this policy decides to
complete. Defaults to a SimpleCompletionPolicy
with chunk size
equal to the commitInterval property.
chunkCompletionPolicy
- the chunkCompletionPolicy to setprotected RepeatTemplate getStepOperations()
protected RepeatTemplate getChunkOperations()
public void setExceptionHandler(ExceptionHandler exceptionHandler)
ExceptionHandler
.
exceptionHandler
- the exceptionHandler to setprotected ExceptionHandler getExceptionHandler()
ExceptionHandler
.
ExceptionHandler
public void setTaskExecutor(TaskExecutor taskExecutor)
TaskExecutor
. If this is set, then it will
be used to execute the chunk processing inside the Step
.
taskExecutor
- the taskExecutor to setpublic void setThrottleLimit(int throttleLimit)
TaskExecutorRepeatTemplate.DEFAULT_THROTTLE_LIMIT
.
throttleLimit
- the throttle limit to set.protected ItemHandler getItemHandler()
protected void setItemHandler(ItemHandler itemHandler)
itemHandler
- the ItemHandler to setprotected void applyConfiguration(ItemOrientedStep step)
applyConfiguration
in class AbstractStepFactoryBean
step
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |