@Path(value="schedule") public class SchedulerRestResource extends AbstractRestResource<Scheduler,GetSchedulerEvent>
gson, restObject| Constructor and Description |
|---|
SchedulerRestResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addTask(String crontab)
Adds a harvesting task with a specified cron tab to the schedule.
|
javax.ws.rs.core.Response |
deleteAllTasks()
Deletes a harvesting task with a specified cron tab from the schedule.
|
javax.ws.rs.core.Response |
deleteTask(String crontab)
Deletes a harvesting task with a specified cron tab from the schedule.
|
protected String |
getAllowedRequests()
This method returns a string that offers a description of viable HTTP requests.
|
changeObject, getInfoText@Path(value="_add") @POST @Consumes(value="application/json") @Produces(value="text/plain") public javax.ws.rs.core.Response addTask(String crontab)
crontab - a cron tab describing when a harvest should take place@Path(value="_delete") @POST @Consumes(value="application/json") @Produces(value="text/plain") public javax.ws.rs.core.Response deleteTask(String crontab)
crontab - the cron tab that is to be removed@Path(value="_deleteAll") @POST @Produces(value="text/plain") public javax.ws.rs.core.Response deleteAllTasks()
protected String getAllowedRequests()
AbstractRestResourcegetAllowedRequests in class AbstractRestResource<Scheduler,GetSchedulerEvent>Copyright © 2017–2019. All rights reserved.