org.apache.jetspeed.scheduler
Class ScheduledJob

java.lang.Object
  extended by org.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 516448 2007-03-09 16:25:47Z ate $
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-2007 Apache Software Foundation. All Rights Reserved.