@MessageEndpoint public class JobNameToJobRestartRequestAdapter extends Object
LaunchRequest for restarting the last failed
execution of the Job. The parameters of the last execution are pulled
out of the JobExplorer.| Constructor and Description |
|---|
JobNameToJobRestartRequestAdapter() |
| Modifier and Type | Method and Description |
|---|---|
JobLaunchRequest |
adapt(String jobName) |
void |
setJobExplorer(org.springframework.batch.core.explore.JobExplorer jobExplorer) |
void |
setJobLocator(org.springframework.batch.core.configuration.JobLocator jobLocator) |
public void setJobLocator(org.springframework.batch.core.configuration.JobLocator jobLocator)
public void setJobExplorer(org.springframework.batch.core.explore.JobExplorer jobExplorer)
@ServiceActivator public JobLaunchRequest adapt(String jobName) throws org.springframework.batch.core.launch.NoSuchJobException, org.springframework.batch.core.launch.JobParametersNotFoundException
org.springframework.batch.core.launch.NoSuchJobExceptionorg.springframework.batch.core.launch.JobParametersNotFoundExceptionCopyright © 2015. All rights reserved.