org.exist.scheduler
Class UserJavaJob
java.lang.Object
org.exist.scheduler.UserJob
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
UserJavaJob
public UserJavaJob()
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 jobparams
- 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.