Class SchedulerServiceImpl
java.lang.Object
com.atlassian.bamboo.admin.scheduler.SchedulerServiceImpl
- All Implemented Interfaces:
SchedulerService
Service providing interactions with the job scheduler.
-
Constructor Summary
ConstructorDescriptionSchedulerServiceImpl
(@NotNull BambooPermissionManager bambooPermissionManager, @NotNull org.quartz.Scheduler scheduler) Parameterized constructor. -
Method Summary
Modifier and TypeMethodDescription@NotNull List<ScheduledJob>
getJobs()
Gets the collection of jobs currently scheduled to be run.void
triggerJob
(@NotNull ScheduledJob job) Triggers the job provided to be run immediately.
-
Constructor Details
-
SchedulerServiceImpl
public SchedulerServiceImpl(@NotNull @NotNull BambooPermissionManager bambooPermissionManager, @NotNull @NotNull org.quartz.Scheduler scheduler) Parameterized constructor.- Parameters:
bambooPermissionManager
- the permission manager to check for bamboo permissionsscheduler
- the scheduler used to execute jobs
-
-
Method Details
-
getJobs
Description copied from interface:SchedulerService
Gets the collection of jobs currently scheduled to be run.- Specified by:
getJobs
in interfaceSchedulerService
- Returns:
- the collection of scheduled jobs
- Throws:
org.quartz.SchedulerException
-
triggerJob
Description copied from interface:SchedulerService
Triggers the job provided to be run immediately.- Specified by:
triggerJob
in interfaceSchedulerService
- Parameters:
job
- the job to be triggered- Throws:
org.quartz.SchedulerException
-