org.springframework.batch.admin.integration
Class JobNameToJobRestartRequestAdapter

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

Constructor Summary
JobNameToJobRestartRequestAdapter()
           
 
Method Summary
 JobLaunchRequest adapt(java.lang.String jobName)
           
 void setJobExplorer(org.springframework.batch.core.explore.JobExplorer jobExplorer)
           
 void setJobLocator(org.springframework.batch.core.configuration.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(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.