org.quartz.examples.example12
Class SimpleJob
java.lang.Object
org.quartz.examples.example12.SimpleJob
- All Implemented Interfaces:
- Job
public class SimpleJob
- extends Object
- implements Job
A dumb implementation of Job, for unittesting purposes.
- Author:
- James House
Constructor Summary |
SimpleJob()
Quartz requires a public empty constructor so that the
scheduler can instantiate the class whenever it needs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MESSAGE
public static final String MESSAGE
- See Also:
- Constant Field Values
SimpleJob
public SimpleJob()
- Quartz requires a public empty constructor so that the
scheduler can instantiate the class whenever it needs.
execute
public void execute(JobExecutionContext context)
throws JobExecutionException
Called by the Scheduler
when a
Trigger
fires that is associated with
the Job
.
- Specified by:
execute
in interface Job
- Throws:
JobExecutionException
- if there is an exception while executing the job.
Copyright © 2010. All Rights Reserved.