Class ManagedScheduledJobFactory
- java.lang.Object
-
- com.atlassian.confluence.schedule.ManagedScheduledJobFactory
-
- All Implemented Interfaces:
ManagedScheduledJobInitialiser
,ManagedScheduledJobRegistrationService
public class ManagedScheduledJobFactory extends Object implements ManagedScheduledJobRegistrationService, ManagedScheduledJobInitialiser
Constructs ScheduledJobConfigurations, ScheduledJobStatus and JobConfig objects, and saves/schedules them based on preconfigured (i.e. via Spring) ManagedScheduledJobs during initialisation (via ManagedScheduledJobInitialiser), or on registration during the installation / startup of a plugin (via the ManagedScheduledJobRegistrationService interface).Any ManagedScheduledJobs registered before initialisation will not be constructed at registration time, instead they will be constructed at initialisation time.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ManagedScheduledJobFactory()
Required for CGLIB to be able to successfully proxy.ManagedScheduledJobFactory(com.atlassian.scheduler.SchedulerService schedulerService, com.atlassian.sal.api.timezone.TimeZoneManager timeZoneManager, ScheduledJobDao scheduledJobDAO, DefaultManagedScheduledJobRegistry registry, ScheduledJobManager scheduledJobManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialiseManagedScheduledJobs()
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.
-
-
-
Constructor Detail
-
ManagedScheduledJobFactory
protected ManagedScheduledJobFactory()
Required for CGLIB to be able to successfully proxy.
-
ManagedScheduledJobFactory
public ManagedScheduledJobFactory(com.atlassian.scheduler.SchedulerService schedulerService, com.atlassian.sal.api.timezone.TimeZoneManager timeZoneManager, ScheduledJobDao scheduledJobDAO, DefaultManagedScheduledJobRegistry registry, ScheduledJobManager scheduledJobManager)
- Parameters:
schedulerService
-timeZoneManager
-scheduledJobDAO
-registry
-scheduledJobManager
-- Since:
- 8.0.0
-
-
Method Detail
-
initialiseManagedScheduledJobs
public void initialiseManagedScheduledJobs()
- Specified by:
initialiseManagedScheduledJobs
in interfaceManagedScheduledJobInitialiser
-
registerManagedScheduledJob
public void registerManagedScheduledJob(ManagedScheduledJob managedScheduledJob)
For registering of additional ManagedScheduledJob's (e.g. via the plugin framework).- Specified by:
registerManagedScheduledJob
in interfaceManagedScheduledJobRegistrationService
- 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 interfaceManagedScheduledJobRegistrationService
- Parameters:
managedScheduledJob
- the job to unregister
-
-