org.quartz
Interface Job

All Known Subinterfaces:
StatefulJob
All Known Implementing Classes:
EJBInvokerJob, NoOpJob

public interface Job

The interface to be implemented by classes which represent a 'job' to be performed.

Instances of Job must have a public no-argument constructor.

JobDataMap provides a mechanism for 'instance member data' that may be required by some implementations of this interface.

Author:
James House
See Also:
JobDetail, StatefulJob, Trigger, Scheduler

Method Summary
 void execute(JobExecutionContext context)
          Called by the Scheduler when a Trigger fires that is associated with the Job.
 

Method Detail

execute

public void execute(JobExecutionContext context)
             throws JobExecutionException

Called by the Scheduler when a Trigger fires that is associated with the Job.

Returns:
void (nothing) if job is successful.
Throws:
JobExecutionException - if there is an exception while executing the job.


Copyright James House (c) 2001-2004