public class JobLaunchingGateway
extends org.springframework.integration.handler.AbstractReplyProducingMessageHandler
JobLaunchingGateway is used to launch Batch Jobs. Internally it
delegates to a JobLaunchingMessageHandler.| Constructor and Description |
|---|
JobLaunchingGateway(org.springframework.batch.core.launch.JobLauncher jobLauncher)
Constructor taking a
JobLauncher as parameter. |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
handleRequestMessage(org.springframework.integration.Message<?> requestMessage)
Launches a Batch Job using the provided request
Message. |
doInit, doInvokeAdvisedRequestHandler, getMessagingTemplate, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setChannelResolver, setOutputChannel, setRequiresReply, setSendTimeout, shouldCopyRequestHeadersgetComponentType, getOrder, handleMessage, setOrder, setShouldTrackafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toStringpublic JobLaunchingGateway(org.springframework.batch.core.launch.JobLauncher jobLauncher)
JobLauncher as parameter.jobLauncher - Must not be null.protected Object handleRequestMessage(org.springframework.integration.Message<?> requestMessage) throws org.springframework.integration.MessageHandlingException
Message. The payload
of the Message must be an instance of JobLaunchRequest.handleRequestMessage in class org.springframework.integration.handler.AbstractReplyProducingMessageHandlerrequestMessage - provided requestMessage must not be null.JobExecution will always be returned. An
exception (MessageHandlingException) will only be thrown if there
is a failure to start the job. The cause of the exception will be a
JobExecutionException.org.springframework.integration.MessageHandlingException - If the job cannot be launchedCopyright © 2015. All rights reserved.