org.apache.jetspeed.scheduler
Class ScheduledJob

java.lang.Object
  extended byorg.apache.jetspeed.scheduler.ScheduledJob

public abstract class ScheduledJob
extends Object

All Scheduled jobs should extend this. The class that extends ScheduledJobs should contain the code that you actually want to execute at a specific time. The name of this class is what you register in the JobEntry.

Version:
$Id: ScheduledJob.java 185962 2004-03-08 01:03:33Z jford $
Author:
Dave Bryson

Constructor Summary
ScheduledJob()
           
 
Method Summary
 void execute(JobEntry job)
          This is a stop gap until the scheduler service is fully decoupled from modules.
abstract  void run(JobEntry job)
          Run the Jobentry from the scheduler queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduledJob

public ScheduledJob()
Method Detail

run

public abstract void run(JobEntry job)
                  throws Exception
Run the Jobentry from the scheduler queue.

Parameters:
job - The job to run.
Throws:
Exception

execute

public void execute(JobEntry job)
             throws Exception
This is a stop gap until the scheduler service is fully decoupled from modules. Modules are for the display system.

Throws:
Exception


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.