com.atlassian.bamboo.admin.scheduler
Class SchedulerServiceImpl

java.lang.Object
  extended by 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
SchedulerServiceImpl(BambooPermissionManager bambooPermissionManager, org.quartz.Scheduler scheduler)
          Parameterized constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerServiceImpl

public SchedulerServiceImpl(@NotNull
                            BambooPermissionManager bambooPermissionManager,
                            @NotNull
                            org.quartz.Scheduler scheduler)
Parameterized constructor.

Parameters:
bambooPermissionManager - the permission manager to check for bamboo permissions
scheduler - the scheduler used to execute jobs
Method Detail

getJobs

@NotNull
public 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 interface SchedulerService
Returns:
the collection of scheduled jobs
Throws:
org.quartz.SchedulerException

triggerJob

public void triggerJob(@NotNull
                       ScheduledJob job)
                throws org.quartz.SchedulerException
Description copied from interface: SchedulerService
Triggers the job provided to be run immediately.

Specified by:
triggerJob in interface SchedulerService
Parameters:
job - the job to be triggered
Throws:
org.quartz.SchedulerException


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.