org.springframework.batch.admin.integration
Class JobNameToJobRestartRequestAdapter
java.lang.Object
org.springframework.batch.admin.integration.JobNameToJobRestartRequestAdapter
@MessageEndpoint
public class JobNameToJobRestartRequestAdapter
- extends java.lang.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(org.springframework.batch.core.configuration.JobLocator jobLocator)
setJobExplorer
public void setJobExplorer(org.springframework.batch.core.explore.JobExplorer jobExplorer)
adapt
@ServiceActivator
public JobLaunchRequest adapt(java.lang.String jobName)
throws org.springframework.batch.core.launch.NoSuchJobException,
org.springframework.batch.core.launch.JobParametersNotFoundException
- Throws:
org.springframework.batch.core.launch.NoSuchJobException
org.springframework.batch.core.launch.JobParametersNotFoundException
Copyright © 2011. All Rights Reserved.