Class Scheduler

java.lang.Object
   |
   +----Scheduler

public class Scheduler
extends Object
implements Runnable
This class implements a scheduler to do long jobs. A job is run in a thread, and the scheduler keeps track of its status, thus preventing multiple invocations of the method doJob().

See Also:
Job

Variable Index

 o job
object implementing the doJob() method.
 o thread
scheduler's thread

Constructor Index

 o Scheduler(Job)
Constructs a scheduler for a particular job doer.

Method Index

 o run()
Runs the job in a thread.
 o scheduleJob()
Schedules a job and returns.

Variables

 o job
 Job job
object implementing the doJob() method.

 o thread
 Thread thread
scheduler's thread

Constructors

 o Scheduler
 public Scheduler(Job job)
Constructs a scheduler for a particular job doer.

Parameters:
job - object implementing the doJob() method.

Methods

 o run
 public void run()
Runs the job in a thread.

 o scheduleJob
 public synchronized void scheduleJob()
Schedules a job and returns.