Class JobServiceV2
- java.lang.Object
-
- uk.gov.gchq.gaffer.rest.service.v2.JobServiceV2
-
- All Implemented Interfaces:
IJobServiceV2
public class JobServiceV2 extends Object implements IJobServiceV2
An implementation ofIJobServiceV2
. By default it will use a singletonGraph
generated using theGraphFactory
. All operations are simply delegated to the graph. Pre and post operation hooks are available by extending this class and implementing preOperationHook and/or postOperationHook.
-
-
Constructor Summary
Constructors Constructor Description JobServiceV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
details()
javax.ws.rs.core.Response
details(String id)
javax.ws.rs.core.Response
executeJob(Job job)
javax.ws.rs.core.Response
executeJob(Operation operation)
javax.ws.rs.core.Response
results(String id)
-
-
-
Method Detail
-
executeJob
public javax.ws.rs.core.Response executeJob(Operation operation) throws OperationException
- Specified by:
executeJob
in interfaceIJobServiceV2
- Throws:
OperationException
-
executeJob
public javax.ws.rs.core.Response executeJob(Job job) throws OperationException
- Specified by:
executeJob
in interfaceIJobServiceV2
- Throws:
OperationException
-
details
public javax.ws.rs.core.Response details() throws OperationException
- Specified by:
details
in interfaceIJobServiceV2
- Throws:
OperationException
-
details
public javax.ws.rs.core.Response details(String id) throws OperationException
- Specified by:
details
in interfaceIJobServiceV2
- Throws:
OperationException
-
results
public javax.ws.rs.core.Response results(String id) throws OperationException
- Specified by:
results
in interfaceIJobServiceV2
- Throws:
OperationException
-
-