@Path(value="scheduler") @Consumes(value="application/json") @Produces @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@GET @Path(value="jobs") @NotNull public javax.ws.rs.core.Response getJobs() throws org.quartz.SchedulerException
org.quartz.SchedulerException
@POST @Path(value="jobs/trigger") @NotNull public javax.ws.rs.core.Response triggerJob(@NotNull RestScheduledJob job) throws org.quartz.SchedulerException
org.quartz.SchedulerException
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.