org.springframework.batch.integration.job
Class MessageOrientedStep

java.lang.Object
  extended by org.springframework.batch.core.step.AbstractStep
      extended by org.springframework.batch.integration.job.MessageOrientedStep
All Implemented Interfaces:
org.springframework.batch.core.Step, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class MessageOrientedStep
extends org.springframework.batch.core.step.AbstractStep

Author:
Dave Syer

Field Summary
static java.lang.String WAITING
          Key in execution context for flag to say we are waiting.
 
Constructor Summary
MessageOrientedStep()
           
 
Method Summary
protected  void doExecute(org.springframework.batch.core.StepExecution stepExecution)
           
 void setExecutionTimeout(long executionTimeout)
          Public setter for the execution timeout in milliseconds.
 void setExecutionTimeoutMinutes(int executionTimeoutMinutes)
          Public setter for the execution timeout in minutes.
 void setInputChannel(org.springframework.integration.channel.PollableChannel source)
          Public setter for the source.
 void setOutputChannel(org.springframework.integration.core.MessageChannel outputChannel)
          Public setter for the target.
 void setPollingInterval(long pollingInterval)
          Public setter for the polling interval in milliseconds while waiting for replies signalling the end of the step.
 
Methods inherited from class org.springframework.batch.core.step.AbstractStep
afterPropertiesSet, close, execute, getCompositeListener, getJobRepository, getName, getStartLimit, isAllowStartIfComplete, open, registerStepExecutionListener, setAllowStartIfComplete, setBeanName, setJobRepository, setName, setStartLimit, setStepExecutionListeners, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WAITING

public static final java.lang.String WAITING
Key in execution context for flag to say we are waiting.

Constructor Detail

MessageOrientedStep

public MessageOrientedStep()
Method Detail

setExecutionTimeoutMinutes

public void setExecutionTimeoutMinutes(int executionTimeoutMinutes)
Public setter for the execution timeout in minutes. Defaults to 30.

Parameters:
executionTimeoutMinutes - the timeout to set

setExecutionTimeout

public void setExecutionTimeout(long executionTimeout)
Public setter for the execution timeout in milliseconds. Defaults to 30 minutes.

Parameters:
executionTimeout -

setPollingInterval

public void setPollingInterval(long pollingInterval)
Public setter for the polling interval in milliseconds while waiting for replies signalling the end of the step. Defaults to 5.

Parameters:
pollingInterval - the polling interval to set

setOutputChannel

public void setOutputChannel(org.springframework.integration.core.MessageChannel outputChannel)
Public setter for the target.

Parameters:
outputChannel - the target to set

setInputChannel

public void setInputChannel(org.springframework.integration.channel.PollableChannel source)
Public setter for the source.

Parameters:
source - the source to set

doExecute

protected void doExecute(org.springframework.batch.core.StepExecution stepExecution)
                  throws org.springframework.batch.core.JobInterruptedException,
                         org.springframework.batch.core.UnexpectedJobExecutionException
Specified by:
doExecute in class org.springframework.batch.core.step.AbstractStep
Throws:
org.springframework.batch.core.JobInterruptedException
org.springframework.batch.core.UnexpectedJobExecutionException
See Also:
AbstractStep.execute(StepExecution)


Copyright © 2009. All Rights Reserved.