public class SchedulerServiceImpl extends Object implements SchedulerService
Constructor and Description |
---|
SchedulerServiceImpl(BambooPermissionManager bambooPermissionManager,
org.quartz.Scheduler scheduler)
Parameterized constructor.
|
Modifier and Type | Method and Description |
---|---|
List<ScheduledJob> |
getJobs()
Gets the collection of jobs currently scheduled to be run.
|
void |
triggerJob(ScheduledJob job)
Triggers the job provided to be run immediately.
|
public SchedulerServiceImpl(@NotNull BambooPermissionManager bambooPermissionManager, @NotNull org.quartz.Scheduler scheduler)
bambooPermissionManager
- the permission manager to check for bamboo permissionsscheduler
- the scheduler used to execute jobs@NotNull public List<ScheduledJob> getJobs() throws org.quartz.SchedulerException
SchedulerService
getJobs
in interface SchedulerService
org.quartz.SchedulerException
public void triggerJob(@NotNull ScheduledJob job) throws org.quartz.SchedulerException
SchedulerService
triggerJob
in interface SchedulerService
job
- the job to be triggeredorg.quartz.SchedulerException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.