org.springframework.batch.admin.integration
Class JobNameToJobRestartRequestAdapter

java.lang.Object
  extended by 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

Constructor Summary
JobNameToJobRestartRequestAdapter()
           
 
Method Summary
 JobLaunchRequest adapt(String jobName)
           
 void setJobExplorer(JobExplorer jobExplorer)
           
 void setJobLocator(JobLocator jobLocator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobNameToJobRestartRequestAdapter

public JobNameToJobRestartRequestAdapter()
Method Detail

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.