org.springframework.batch.admin.integration
Class JobNameToJobRestartRequestAdapter
java.lang.Object
org.springframework.batch.admin.integration.JobNameToJobRestartRequestAdapter
@MessageEndpoint
public class JobNameToJobRestartRequestAdapter
- extends Object
Adapt a job name to a JobLaunchRequest for restarting the last failed
execution of the Job. The parameters of the last execution are pulled
out of the JobExplorer.
- Author:
- Dave Syer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobNameToJobRestartRequestAdapter
public JobNameToJobRestartRequestAdapter()
setJobLocator
public void setJobLocator(JobLocator jobLocator)
setJobExplorer
public void setJobExplorer(JobExplorer jobExplorer)
adapt
@ServiceActivator
public JobLaunchRequest adapt(String jobName)
throws NoSuchJobException,
JobParametersNotFoundException
- Throws:
NoSuchJobException
JobParametersNotFoundException
Copyright © 2011. All Rights Reserved.