@Singleton public class SchedulerResource extends Object
Constructor and Description |
---|
SchedulerResource(SchedulerService schedulerService)
Parameterized constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SchedulerResource(SchedulerService schedulerService)
schedulerService
- the scheduler service used to interact with the scheduler@NotNull public javax.ws.rs.core.Response getJobs() throws org.quartz.SchedulerException
org.quartz.SchedulerException
@NotNull public javax.ws.rs.core.Response triggerJob(@NotNull RestScheduledJob job) throws org.quartz.SchedulerException
org.quartz.SchedulerException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.