public class

OfBizJobStore

extends Object
implements JobStore
java.lang.Object
   ↳ com.atlassian.scheduler.OfBizJobStore

Class Overview

This was taken from atlassian-scheduler and placed into its now rightful home of JIRA.

Summary

Constants
String STATE_ACQUIRED
String STATE_BLOCKED
String STATE_COMPLETE
String STATE_EXECUTING
String STATE_WAITING
String TTYPE_CRON
String TTYPE_SIMPLE
Public Constructors
OfBizJobStore()
Public Methods
Trigger acquireNextTrigger(SchedulingContext ctxt, long noLaterThan)
String[] getCalendarNames(SchedulingContext ctxt)
String[] getJobGroupNames(SchedulingContext ctxt)
String[] getJobNames(SchedulingContext ctxt, String groupName)
int getNumberOfCalendars(SchedulingContext ctxt)
int getNumberOfJobs(SchedulingContext ctxt)
int getNumberOfTriggers(SchedulingContext ctxt)
Set getPausedTriggerGroups(SchedulingContext ctxt)
String[] getTriggerGroupNames(SchedulingContext ctxt)
String[] getTriggerNames(SchedulingContext ctxt, String groupName)
int getTriggerState(SchedulingContext ctxt, String triggerName, String triggerGroup)
Trigger[] getTriggersAfterDate(SchedulingContext ctxt, Date fireAfterDate)
Trigger[] getTriggersBeforeDate(SchedulingContext ctxt, Date fireBeforeDate)
Trigger[] getTriggersDuringDateRange(SchedulingContext ctxt, Date fireAfterDate, Date fireBeforeDate)
Trigger[] getTriggersForJob(SchedulingContext ctxt, String jobName, String groupName)
void initialize(ClassLoadHelper loadHelper, SchedulerSignaler signaler)
void pauseAll(SchedulingContext ctxt)
void pauseJob(SchedulingContext ctxt, String jobName, String groupName)
void pauseJobGroup(SchedulingContext ctxt, String groupName)
void pauseTrigger(SchedulingContext ctxt, String triggerName, String groupName)
void pauseTriggerGroup(SchedulingContext ctxt, String groupName)
void releaseAcquiredTrigger(SchedulingContext ctxt, Trigger trigger)
boolean removeCalendar(SchedulingContext ctxt, String calName)
boolean removeJob(SchedulingContext ctxt, String jobName, String groupName)
synchronized boolean removeTrigger(SchedulingContext ctxt, String triggerName, String groupName)
boolean replaceTrigger(SchedulingContext ctxt, String triggerName, String groupName, Trigger newTrigger)
void resumeAll(SchedulingContext ctxt)
void resumeJob(SchedulingContext ctxt, String jobName, String groupName)
void resumeJobGroup(SchedulingContext ctxt, String groupName)
void resumeTrigger(SchedulingContext ctxt, String triggerName, String groupName)
void resumeTriggerGroup(SchedulingContext ctxt, String groupName)
Calendar retrieveCalendar(SchedulingContext ctxt, String calName)
JobDetail retrieveJob(SchedulingContext ctxt, String jobName, String groupName)
Trigger retrieveTrigger(SchedulingContext ctxt, String triggerName, String groupName)
void schedulerStarted()
void shutdown()
void storeCalendar(SchedulingContext ctxt, String name, Calendar calendar, boolean replaceExisting)
void storeCalendar(SchedulingContext ctxt, String name, Calendar calendar)
void storeCalendar(SchedulingContext ctxt, String name, Calendar calendar, boolean replaceExisting, boolean updateTriggers)
void storeJob(SchedulingContext ctxt, JobDetail newJob, boolean replaceExisting)
void storeJob(SchedulingContext ctxt, JobDetail newJob)
void storeJobAndTrigger(SchedulingContext ctxt, JobDetail newJob, Trigger newTrigger)
synchronized void storeTrigger(SchedulingContext ctxt, Trigger newTrigger, boolean replaceExisting)
void storeTrigger(SchedulingContext ctxt, Trigger newTrigger)
boolean supportsPersistence()
TriggerFiredBundle triggerFired(SchedulingContext ctxt, Trigger trigger)
void triggeredJobComplete(SchedulingContext ctxt, Trigger trigger, JobDetail jobDetail, int triggerInstCode)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.quartz.spi.JobStore

Constants

public static final String STATE_ACQUIRED

Constant Value: "ACQUIRED"

public static final String STATE_BLOCKED

Constant Value: "BLOCKED"

public static final String STATE_COMPLETE

Constant Value: "COMPLETE"

public static final String STATE_EXECUTING

Constant Value: "EXECUTING"

public static final String STATE_WAITING

Constant Value: "WAITING"

public static final String TTYPE_CRON

Constant Value: "CRON"

public static final String TTYPE_SIMPLE

Constant Value: "SIMPLE"

Public Constructors

public OfBizJobStore ()

Public Methods

public Trigger acquireNextTrigger (SchedulingContext ctxt, long noLaterThan)

Throws
JobPersistenceException

public String[] getCalendarNames (SchedulingContext ctxt)

Throws
JobPersistenceException

public String[] getJobGroupNames (SchedulingContext ctxt)

Throws
JobPersistenceException

public String[] getJobNames (SchedulingContext ctxt, String groupName)

Throws
JobPersistenceException

public int getNumberOfCalendars (SchedulingContext ctxt)

Throws
JobPersistenceException

public int getNumberOfJobs (SchedulingContext ctxt)

Throws
JobPersistenceException

public int getNumberOfTriggers (SchedulingContext ctxt)

Throws
JobPersistenceException

public Set getPausedTriggerGroups (SchedulingContext ctxt)

Throws
JobPersistenceException

public String[] getTriggerGroupNames (SchedulingContext ctxt)

Throws
JobPersistenceException

public String[] getTriggerNames (SchedulingContext ctxt, String groupName)

Throws
JobPersistenceException

public int getTriggerState (SchedulingContext ctxt, String triggerName, String triggerGroup)

Throws
JobPersistenceException

public Trigger[] getTriggersAfterDate (SchedulingContext ctxt, Date fireAfterDate)

Throws
JobPersistenceException

public Trigger[] getTriggersBeforeDate (SchedulingContext ctxt, Date fireBeforeDate)

Throws
JobPersistenceException

public Trigger[] getTriggersDuringDateRange (SchedulingContext ctxt, Date fireAfterDate, Date fireBeforeDate)

Throws
JobPersistenceException

public Trigger[] getTriggersForJob (SchedulingContext ctxt, String jobName, String groupName)

Throws
JobPersistenceException

public void initialize (ClassLoadHelper loadHelper, SchedulerSignaler signaler)

Throws
SchedulerConfigException

public void pauseAll (SchedulingContext ctxt)

Throws
JobPersistenceException

public void pauseJob (SchedulingContext ctxt, String jobName, String groupName)

Throws
JobPersistenceException

public void pauseJobGroup (SchedulingContext ctxt, String groupName)

Throws
JobPersistenceException

public void pauseTrigger (SchedulingContext ctxt, String triggerName, String groupName)

Throws
JobPersistenceException

public void pauseTriggerGroup (SchedulingContext ctxt, String groupName)

Throws
JobPersistenceException

public void releaseAcquiredTrigger (SchedulingContext ctxt, Trigger trigger)

Throws
JobPersistenceException

public boolean removeCalendar (SchedulingContext ctxt, String calName)

Throws
JobPersistenceException

public boolean removeJob (SchedulingContext ctxt, String jobName, String groupName)

Throws
JobPersistenceException

public synchronized boolean removeTrigger (SchedulingContext ctxt, String triggerName, String groupName)

Throws
JobPersistenceException

public boolean replaceTrigger (SchedulingContext ctxt, String triggerName, String groupName, Trigger newTrigger)

Throws
JobPersistenceException

public void resumeAll (SchedulingContext ctxt)

Throws
JobPersistenceException

public void resumeJob (SchedulingContext ctxt, String jobName, String groupName)

Throws
JobPersistenceException

public void resumeJobGroup (SchedulingContext ctxt, String groupName)

Throws
JobPersistenceException

public void resumeTrigger (SchedulingContext ctxt, String triggerName, String groupName)

Throws
JobPersistenceException

public void resumeTriggerGroup (SchedulingContext ctxt, String groupName)

Throws
JobPersistenceException

public Calendar retrieveCalendar (SchedulingContext ctxt, String calName)

Throws
JobPersistenceException

public JobDetail retrieveJob (SchedulingContext ctxt, String jobName, String groupName)

Throws
JobPersistenceException

public Trigger retrieveTrigger (SchedulingContext ctxt, String triggerName, String groupName)

Throws
JobPersistenceException

public void schedulerStarted ()

Throws
SchedulerException

public void shutdown ()

public void storeCalendar (SchedulingContext ctxt, String name, Calendar calendar, boolean replaceExisting)

Throws
JobPersistenceException
ObjectAlreadyExistsException

public void storeCalendar (SchedulingContext ctxt, String name, Calendar calendar)

Throws
JobPersistenceException
ObjectAlreadyExistsException

public void storeCalendar (SchedulingContext ctxt, String name, Calendar calendar, boolean replaceExisting, boolean updateTriggers)

Throws
JobPersistenceException
ObjectAlreadyExistsException

public void storeJob (SchedulingContext ctxt, JobDetail newJob, boolean replaceExisting)

Throws
JobPersistenceException
ObjectAlreadyExistsException

public void storeJob (SchedulingContext ctxt, JobDetail newJob)

Throws
JobPersistenceException
ObjectAlreadyExistsException

public void storeJobAndTrigger (SchedulingContext ctxt, JobDetail newJob, Trigger newTrigger)

Throws
JobPersistenceException
ObjectAlreadyExistsException

public synchronized void storeTrigger (SchedulingContext ctxt, Trigger newTrigger, boolean replaceExisting)

Throws
JobPersistenceException
ObjectAlreadyExistsException

public void storeTrigger (SchedulingContext ctxt, Trigger newTrigger)

Throws
JobPersistenceException
ObjectAlreadyExistsException

public boolean supportsPersistence ()

public TriggerFiredBundle triggerFired (SchedulingContext ctxt, Trigger trigger)

Throws
JobPersistenceException

public void triggeredJobComplete (SchedulingContext ctxt, Trigger trigger, JobDetail jobDetail, int triggerInstCode)

Throws
JobPersistenceException