com.atlassian.bamboo.plugins.rest.admin.scheduler
Class SchedulerResource

java.lang.Object
  extended by com.atlassian.bamboo.plugins.rest.admin.scheduler.SchedulerResource

@Singleton
public class SchedulerResource
extends Object

REST resource for the scheduler.

Since:
5.9

Constructor Summary
SchedulerResource(SchedulerService schedulerService)
          Parameterized constructor.
 
Method Summary
 javax.ws.rs.core.Response getJobs()
          Gets the collection of jobs currently scheduled to run.
 javax.ws.rs.core.Response triggerJob(RestScheduledJob job)
          Gets the collection of jobs currently scheduled to run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerResource

public SchedulerResource(@NotNull
                         SchedulerService schedulerService)
Parameterized constructor.

Parameters:
schedulerService - the scheduler service used to interact with the scheduler
Method Detail

getJobs

@NotNull
public javax.ws.rs.core.Response getJobs()
                                  throws org.quartz.SchedulerException
Gets the collection of jobs currently scheduled to run.

Returns:
the response containing the status of the request and if successful the collection of jobs.
Throws:
org.quartz.SchedulerException

triggerJob

@NotNull
public javax.ws.rs.core.Response triggerJob(@NotNull
                                                    RestScheduledJob job)
                                     throws org.quartz.SchedulerException
Gets the collection of jobs currently scheduled to run.

Returns:
the response containing the status of the request and if successful the collection of jobs.
Throws:
org.quartz.SchedulerException


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