org.springframework.batch.core.launch.support
Interface ExportedJobLauncher

All Known Implementing Classes:
SimpleExportedJobLauncher

public interface ExportedJobLauncher

Interface to expose for remote management of jobs. Similar to JobLauncher, but replaces JobExecution and JobParameters with Strings in return types and method parameters, so it can be inspected by remote clients like the jconsole from the JRE without any links to Spring Batch.

Author:
Dave Syer

Method Summary
 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 stop()
          Stop all running jobs.
 

Method Detail

run

String run(String name)
Launch a job with the given name.

Parameters:
name - the name of the job to launch
Returns:
a representation of the JobExecution returned by a JobLauncher.

run

String run(String name,
           String params)
Launch a job with the given name and parameters.

Parameters:
name - the name of the job to launch
Returns:
a representation of the JobExecution returned by a JobLauncher.

stop

void stop()
Stop all running jobs.


isRunning

boolean isRunning()
Enquire if any jobs launched here are still running.

Returns:
true if any jobs are running.

getStatistics

Properties getStatistics()
Query statistics of currently executing jobs.

Returns:
properties representing last known state of currently executing jobs


Copyright © 2008 SpringSource. All Rights Reserved.