java.lang.Object
es.urjc.etsii.grafo.autoconfig.controller.ExecutionController<S,I>
- Type Parameters:
S
- Solution classI
- Instance class
@RestController
public class ExecutionController<S extends Solution<S,I>,I extends Instance>
extends Object
API endpoints related to experiment and run execution.
Currently, used for IRACE integration using the middleware.sh
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionController
(IraceOrchestrator<S, I> orquestrator) Create a new execution controller -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<List<ExecuteResponse>> batchExecute
(ExecuteRequest request) Execute and return the results for the given IRACE configurationorg.springframework.http.ResponseEntity
<String> execute
(ExecuteRequest request) Execute and return the results for the given IRACE configurationstatic String
validateAndPrepare
(ExecuteRequest request, String integrationKey)
-
Constructor Details
-
ExecutionController
Create a new execution controller- Parameters:
orquestrator
- Irace orquestrator
-
-
Method Details
-
execute
@PostMapping("/execute") public org.springframework.http.ResponseEntity<String> execute(@RequestBody ExecuteRequest request) Execute and return the results for the given IRACE configuration- Parameters:
request
- integration key and run configuration- Returns:
- run result
-
batchExecute
@PostMapping("/batchExecute") public org.springframework.http.ResponseEntity<List<ExecuteResponse>> batchExecute(@RequestBody ExecuteRequest request) throws com.fasterxml.jackson.core.JsonProcessingException Execute and return the results for the given IRACE configuration- Parameters:
request
- integration key and run configuration- Returns:
- run result
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
validateAndPrepare
-