Class SchedulerServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.admin.scheduler.SchedulerServiceImpl
-
- All Implemented Interfaces:
SchedulerService
public class SchedulerServiceImpl extends Object implements SchedulerService
Service providing interactions with the job scheduler.
-
-
Constructor Summary
Constructors Constructor Description SchedulerServiceImpl(@NotNull BambooPermissionManager bambooPermissionManager, @NotNull org.quartz.Scheduler scheduler)
Parameterized constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @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 Detail
-
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 Detail
-
getJobs
@NotNull public @NotNull List<ScheduledJob> getJobs() throws org.quartz.SchedulerException
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
public void triggerJob(@NotNull @NotNull ScheduledJob job) throws org.quartz.SchedulerException
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
-
-