org.springframework.batch.core.launch.support
Class SimpleExportedJobLauncher

java.lang.Object
  extended by org.springframework.batch.core.launch.support.SimpleExportedJobLauncher
All Implemented Interfaces:
ExportedJobLauncher, InitializingBean

public class SimpleExportedJobLauncher
extends Object
implements ExportedJobLauncher, InitializingBean

Author:
Dave Syer

Constructor Summary
SimpleExportedJobLauncher()
           
 
Method Summary
 void afterPropertiesSet()
           
 Properties getStatistics()
          Query statistics of currently executing jobs.
 boolean isRunning()
          Enquire if any jobs launched here are still running.
 String run(String name)
          Launch a job with the given name.
 String run(String name, String params)
          Launch a job with the given name and parameters.
 void setJobLocator(JobLocator jobLocator)
          Public setter for the JobLocator.
 void setJobParametersFactory(JobParametersConverter jobParametersConverter)
          Public setter for the JobParametersFactory.
 void setLauncher(JobLauncher launcher)
          Public setter for the JobLauncher.
 void stop()
          Stop all running jobs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleExportedJobLauncher

public SimpleExportedJobLauncher()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setLauncher

public void setLauncher(JobLauncher launcher)
Public setter for the JobLauncher.

Parameters:
launcher - the launcher to set

setJobLocator

public void setJobLocator(JobLocator jobLocator)
Public setter for the JobLocator.

Parameters:
jobLocator - the jobLocator to set

setJobParametersFactory

public void setJobParametersFactory(JobParametersConverter jobParametersConverter)
Public setter for the JobParametersFactory.

Parameters:
jobParametersConverter - the jobParametersFactory to set

getStatistics

public Properties getStatistics()
Description copied from interface: ExportedJobLauncher
Query statistics of currently executing jobs.

Specified by:
getStatistics in interface ExportedJobLauncher
Returns:
properties representing last known state of currently executing jobs

isRunning

public boolean isRunning()
Description copied from interface: ExportedJobLauncher
Enquire if any jobs launched here are still running.

Specified by:
isRunning in interface ExportedJobLauncher
Returns:
true if any jobs are running.

run

public String run(String name)
Description copied from interface: ExportedJobLauncher
Launch a job with the given name.

Specified by:
run in interface ExportedJobLauncher
Parameters:
name - the name of the job to launch
Returns:
a representation of the JobExecution returned by a JobLauncher.

run

public String run(String name,
                  String params)
Description copied from interface: ExportedJobLauncher
Launch a job with the given name and parameters.

Specified by:
run in interface ExportedJobLauncher
Parameters:
name - the name of the job to launch
Returns:
a representation of the JobExecution returned by a JobLauncher.

stop

public void stop()
Description copied from interface: ExportedJobLauncher
Stop all running jobs.

Specified by:
stop in interface ExportedJobLauncher


Copyright © 2009 SpringSource. All Rights Reserved.