org.exist.scheduler
Class UserJavaJob

java.lang.Object
  extended by org.exist.scheduler.UserJob
      extended by org.exist.scheduler.UserJavaJob
All Implemented Interfaces:
JobDescription, Job
Direct Known Subclasses:
SessionManager.TimeoutCheck, Sync, TestJob

public abstract class UserJavaJob
extends UserJob

Class to represent a User's Java Job Should be extended by all classes wishing to schedule as a Job that perform user defined functionality

Author:
Adam Retter

Field Summary
 
Fields inherited from class org.exist.scheduler.UserJob
JOB_GROUP
 
Constructor Summary
UserJavaJob()
           
 
Method Summary
abstract  void execute(BrokerPool brokerpool, Map params)
          Function that is executed by the Scheduler
 void execute(JobExecutionContext jec)
          The execute method as called by the Quartz Scheduler
 
Methods inherited from class org.exist.scheduler.UserJob
getGroup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.exist.scheduler.JobDescription
getName, setName
 

Constructor Detail

UserJavaJob

public UserJavaJob()
Method Detail

execute

public final void execute(JobExecutionContext jec)
                   throws JobExecutionException
The execute method as called by the Quartz Scheduler

Parameters:
jec - The execution context of the executing job
Throws:
JobExecutionException - if there was a problem with the job, this also describes to Quartz how to cleanup the job

execute

public abstract void execute(BrokerPool brokerpool,
                             Map params)
                      throws JobException
Function that is executed by the Scheduler

Parameters:
brokerpool - The BrokerPool for the Scheduler of this job
params - Any parameters passed to the job or null otherwise
Throws:
JobException - if there is a problem with the job. cleanupJob() should then be called, which will adjust the jobs scheduling appropriately


Copyright (C) Wolfgang Meier. All rights reserved.