com.atlassian.confluence.schedule.quartz
Class ManagedScheduledJobTriggerFactory

java.lang.Object
  extended by com.atlassian.confluence.schedule.quartz.ManagedScheduledJobTriggerFactory
All Implemented Interfaces:
ManagedScheduleJobRegistrationService, ManagedTriggerFactory

public class ManagedScheduledJobTriggerFactory
extends Object
implements ManagedScheduleJobRegistrationService, ManagedTriggerFactory

Constructs Trigger instances for Quartz, based on preconfigures (e.g. via spring) ManagedScheduledJob during initialisation (vis ManagedTriggerFactory), or on registration during the installation / startup of a plugin (via the ManagedScheduleJobRegistrationService interface). Any ManagedScheduledJob registered before initialisation will not be constructed at registration time, instead they will be constructed at initialisation time.


Constructor Summary
protected ManagedScheduledJobTriggerFactory()
          Required for CGLIB to be able to successfully proxy.
  ManagedScheduledJobTriggerFactory(org.quartz.Scheduler scheduler, ScheduledJobDao scheduledJobDAO, DefaultManagedScheduledJobRegistry registry, org.quartz.JobListener listener, CronTriggerFactory cronTriggerFactory, SimpleTriggerFactory simpleTriggerFactory)
           
 
Method Summary
 void initialiseTriggers()
          Creates and schedules the triggers with the scheduler.
 void registerManagedScheduledJob(ManagedScheduledJob managedScheduledJob)
          For registering of additional ManagedScheduledJob's (e.g.
 void unregisterManagedScheduledJob(ManagedScheduledJob managedScheduledJob)
          For unregistering of a previously registered ManagedScheduledJob's (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedScheduledJobTriggerFactory

protected ManagedScheduledJobTriggerFactory()
Required for CGLIB to be able to successfully proxy.


ManagedScheduledJobTriggerFactory

public ManagedScheduledJobTriggerFactory(org.quartz.Scheduler scheduler,
                                         ScheduledJobDao scheduledJobDAO,
                                         DefaultManagedScheduledJobRegistry registry,
                                         org.quartz.JobListener listener,
                                         CronTriggerFactory cronTriggerFactory,
                                         SimpleTriggerFactory simpleTriggerFactory)
Method Detail

initialiseTriggers

public void initialiseTriggers()
Description copied from interface: ManagedTriggerFactory
Creates and schedules the triggers with the scheduler.

Specified by:
initialiseTriggers in interface ManagedTriggerFactory

registerManagedScheduledJob

public void registerManagedScheduledJob(ManagedScheduledJob managedScheduledJob)
For registering of additional ManagedScheduledJob's (e.g. via the plugin framework).

Specified by:
registerManagedScheduledJob in interface ManagedScheduleJobRegistrationService
Parameters:
managedScheduledJob - the job to register

unregisterManagedScheduledJob

public void unregisterManagedScheduledJob(ManagedScheduledJob managedScheduledJob)
For unregistering of a previously registered ManagedScheduledJob's (e.g. via the plugin framework).

Job will be unscheduled and unloaded. No historical information will be removed.

Specified by:
unregisterManagedScheduledJob in interface ManagedScheduleJobRegistrationService
Parameters:
managedScheduledJob - the job to unregister


Copyright © 2003–2015 Atlassian. All rights reserved.