Class TaskAdminController
java.lang.Object
org.tailormap.api.controller.admin.TaskAdminController
Admin controller for controlling the task scheduler. Not to be used to create new tasks, adding
tasks belongs in the domain of the specific controller or Spring Data REST API as that requires
specific configuration information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
-
Constructor Details
-
TaskAdminController
public TaskAdminController(org.quartz.Scheduler scheduler)
-
-
Method Details
-
list
@GetMapping(path="${tailormap-api.admin.base-path}/tasks", produces="application/json") public org.springframework.http.ResponseEntity<?> list(@RequestParam(required=false) String type) throws org.quartz.SchedulerException - Throws:
org.quartz.SchedulerException
-
details
@GetMapping(path="${tailormap-api.admin.base-path}/tasks/{type}/{uuid}", produces="application/json") public org.springframework.http.ResponseEntity<?> details(@PathVariable String type, @PathVariable UUID uuid) throws org.quartz.SchedulerException - Throws:
org.quartz.SchedulerException
-
startTask
-
stopTask
-
delete
@DeleteMapping(path="${tailormap-api.admin.base-path}/tasks/{type}/{uuid}", produces="application/json") public org.springframework.http.ResponseEntity<?> delete(@PathVariable String type, @PathVariable UUID uuid) throws org.quartz.SchedulerException - Throws:
org.quartz.SchedulerException
-