@Alpha public interface SpecProducer<V>
SpecExecutor
that can execute a Spec.
A handle on the Orchestrator side to send Specs.| Modifier and Type | Method and Description |
|---|---|
Future<?> |
addSpec(V addedSpec)
Add a
Spec for execution on SpecExecutor. |
default Future<?> |
cancelJob(URI jobURI,
Properties properties)
Cancel the job execution identified by jobURI
|
default Future<?> |
deleteSpec(URI deletedSpecURI) |
Future<?> |
deleteSpec(URI deletedSpecURI,
Properties headers)
Delete a
Spec being executed on SpecExecutor. |
default Future<?> |
deserializeAddSpecResponse(String serializedResponse) |
default String |
getExecutionLink(Future<?> future,
String specExecutorUri) |
Future<? extends List<V>> |
listSpecs()
List all
Spec being executed on SpecExecutor. |
default String |
serializeAddSpecResponse(Future<?> response) |
Future<?> |
updateSpec(V updatedSpec)
Update a
Spec being executed on SpecExecutor. |
Future<?> addSpec(V addedSpec)
Spec for execution on SpecExecutor.Future<?> updateSpec(V updatedSpec)
Spec being executed on SpecExecutor.Future<?> deleteSpec(URI deletedSpecURI, Properties headers)
Spec being executed on SpecExecutor.Future<? extends List<V>> listSpecs()
Spec being executed on SpecExecutor.default Future<?> cancelJob(URI jobURI, Properties properties)