Class JobController
- java.lang.Object
-
- uk.gov.gchq.gaffer.rest.controller.JobController
-
@RestController @RequestMapping("/rest/graph/jobs") public class JobController extends Object
-
-
Constructor Summary
Constructors Constructor Description JobController(GraphFactory graphFactory, AbstractUserFactory userFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<JobDetail>
getAllDetails(org.springframework.http.HttpHeaders httpHeaders)
JobDetail
getDetails(org.springframework.http.HttpHeaders httpHeaders, String id)
Object
getResults(org.springframework.http.HttpHeaders httpHeaders, String id)
org.springframework.http.ResponseEntity<JobDetail>
scheduleJob(org.springframework.http.HttpHeaders httpHeaders, Job job)
org.springframework.http.ResponseEntity<JobDetail>
startJob(org.springframework.http.HttpHeaders httpHeaders, Operation operation)
-
-
-
Constructor Detail
-
JobController
@Autowired public JobController(GraphFactory graphFactory, AbstractUserFactory userFactory)
-
-
Method Detail
-
startJob
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<JobDetail> startJob(@RequestHeader org.springframework.http.HttpHeaders httpHeaders, @RequestBody Operation operation) throws OperationException
- Throws:
OperationException
-
scheduleJob
@PostMapping(path="/schedule", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<JobDetail> scheduleJob(@RequestHeader org.springframework.http.HttpHeaders httpHeaders, @RequestBody Job job) throws OperationException
- Throws:
OperationException
-
getDetails
@GetMapping(path="/{id}", produces="application/json") public JobDetail getDetails(@RequestHeader org.springframework.http.HttpHeaders httpHeaders, @PathVariable("id") String id) throws OperationException
- Throws:
OperationException
-
getAllDetails
@GetMapping(produces="application/json") public Iterable<JobDetail> getAllDetails(@RequestHeader org.springframework.http.HttpHeaders httpHeaders) throws OperationException
- Throws:
OperationException
-
getResults
@GetMapping(path="/{id}/results", produces="application/json") public Object getResults(@RequestHeader org.springframework.http.HttpHeaders httpHeaders, @PathVariable("id") String id) throws OperationException
- Throws:
OperationException
-
-