Class JobController
- java.lang.Object
-
- uk.gov.gchq.gaffer.rest.controller.JobController
-
- All Implemented Interfaces:
IJobController
@RestController public class JobController extends Object implements IJobController
-
-
Constructor Summary
Constructors Constructor Description JobController(GraphFactory graphFactory, UserFactory userFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<JobDetail>
getAllDetails()
JobDetail
getDetails(String id)
Object
getResults(String id)
org.springframework.http.ResponseEntity<JobDetail>
scheduleJob(Job job)
org.springframework.http.ResponseEntity<JobDetail>
startJob(Operation operation)
-
-
-
Constructor Detail
-
JobController
@Autowired public JobController(GraphFactory graphFactory, UserFactory userFactory)
-
-
Method Detail
-
startJob
public org.springframework.http.ResponseEntity<JobDetail> startJob(@RequestBody Operation operation) throws OperationException
- Specified by:
startJob
in interfaceIJobController
- Throws:
OperationException
-
scheduleJob
public org.springframework.http.ResponseEntity<JobDetail> scheduleJob(@RequestBody Job job) throws OperationException
- Specified by:
scheduleJob
in interfaceIJobController
- Throws:
OperationException
-
getDetails
public JobDetail getDetails(@PathVariable("id") String id) throws OperationException
- Specified by:
getDetails
in interfaceIJobController
- Throws:
OperationException
-
getAllDetails
public Iterable<JobDetail> getAllDetails() throws OperationException
- Specified by:
getAllDetails
in interfaceIJobController
- Throws:
OperationException
-
getResults
public Object getResults(@PathVariable("id") String id) throws OperationException
- Specified by:
getResults
in interfaceIJobController
- Throws:
OperationException
-
-