From 095b4aa10f743b41f2eda31bc57be3657d0868a4 Mon Sep 17 00:00:00 2001 From: Oleg Mitsura Date: Thu, 30 Jan 2020 12:02:46 -0500 Subject: (elAlto) Scheduler for process. Healthcheck not blocked. Issue-ID: CCSDK-2052 Signed-off-by: Oleg Mitsura Change-Id: I7388e593116989e775850922a4ab28a34070da31 --- cds-ui/application/pom.xml | 4 +- cds-ui/client/pom.xml | 4 +- cds-ui/pom.xml | 2 +- cds-ui/server/pom.xml | 4 +- components/model-catalog/proto-definition/pom.xml | 4 +- components/parent/pom.xml | 2 +- components/pom.xml | 2 +- ms/blueprintsprocessor/application/pom.xml | 2 +- ms/blueprintsprocessor/cba-parent/pom.xml | 2 +- ms/blueprintsprocessor/distribution/pom.xml | 2 +- .../functions/ansible-awx-executor/pom.xml | 2 +- .../functions/cli-executor/pom.xml | 2 +- .../functions/config-snapshots/pom.xml | 4 +- .../functions/netconf-executor/pom.xml | 2 +- ms/blueprintsprocessor/functions/pom.xml | 2 +- .../functions/python-executor/pom.xml | 2 +- .../functions/resource-resolution/pom.xml | 2 +- .../functions/restconf-executor/pom.xml | 2 +- .../modules/commons/db-lib/pom.xml | 2 +- .../modules/commons/dmaap-lib/pom.xml | 2 +- .../modules/commons/grpc-lib/pom.xml | 2 +- .../modules/commons/message-lib/pom.xml | 2 +- ms/blueprintsprocessor/modules/commons/pom.xml | 2 +- .../modules/commons/processor-core/pom.xml | 2 +- .../modules/commons/rest-lib/pom.xml | 2 +- .../modules/commons/ssh-lib/pom.xml | 2 +- .../modules/inbounds/configs-api/pom.xml | 4 +- .../modules/inbounds/designer-api/pom.xml | 2 +- ms/blueprintsprocessor/modules/inbounds/pom.xml | 2 +- .../modules/inbounds/resource-api/pom.xml | 2 +- .../modules/inbounds/selfservice-api/pom.xml | 2 +- .../selfservice/api/ExecutionServiceController.kt | 48 +++++++++++++--------- ms/blueprintsprocessor/modules/outbounds/pom.xml | 2 +- ms/blueprintsprocessor/modules/pom.xml | 2 +- .../modules/services/execution-service/pom.xml | 2 +- ms/blueprintsprocessor/modules/services/pom.xml | 2 +- .../modules/services/workflow-service/pom.xml | 2 +- ms/blueprintsprocessor/parent/pom.xml | 2 +- ms/blueprintsprocessor/pom.xml | 2 +- ms/command-executor/pom.xml | 2 +- .../modules/blueprint-core/pom.xml | 2 +- .../modules/blueprint-validation/pom.xml | 2 +- ms/controllerblueprints/modules/pom.xml | 2 +- .../modules/resource-dict/pom.xml | 2 +- ms/controllerblueprints/parent/pom.xml | 2 +- ms/controllerblueprints/pom.xml | 4 +- ms/pom.xml | 4 +- ms/sdclistener/application/pom.xml | 4 +- ms/sdclistener/distribution/pom.xml | 2 +- ms/sdclistener/parent/pom.xml | 2 +- ms/sdclistener/pom.xml | 2 +- pom.xml | 2 +- version.properties | 2 +- 53 files changed, 89 insertions(+), 81 deletions(-) diff --git a/cds-ui/application/pom.xml b/cds-ui/application/pom.xml index e25eec16e..4db1490b9 100644 --- a/cds-ui/application/pom.xml +++ b/cds-ui/application/pom.xml @@ -24,12 +24,12 @@ limitations under the License. org.onap.ccsdk.cds ui - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT .. application - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT pom cds-ui-application diff --git a/cds-ui/client/pom.xml b/cds-ui/client/pom.xml index 39e84ebec..1fc40513f 100644 --- a/cds-ui/client/pom.xml +++ b/cds-ui/client/pom.xml @@ -24,12 +24,12 @@ limitations under the License. org.onap.ccsdk.cds ui - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT .. ui-client - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT pom cds-ui-client diff --git a/cds-ui/pom.xml b/cds-ui/pom.xml index 3540e44da..c094514c9 100644 --- a/cds-ui/pom.xml +++ b/cds-ui/pom.xml @@ -30,7 +30,7 @@ limitations under the License. org.onap.ccsdk.cds ui - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT pom cds-ui-parent diff --git a/cds-ui/server/pom.xml b/cds-ui/server/pom.xml index c8b0637dc..b41adb306 100644 --- a/cds-ui/server/pom.xml +++ b/cds-ui/server/pom.xml @@ -24,12 +24,12 @@ limitations under the License. org.onap.ccsdk.cds ui - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT .. ui-server - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT pom cds-ui-server diff --git a/components/model-catalog/proto-definition/pom.xml b/components/model-catalog/proto-definition/pom.xml index 344e5e5fe..b66ab1d5b 100644 --- a/components/model-catalog/proto-definition/pom.xml +++ b/components/model-catalog/proto-definition/pom.xml @@ -20,13 +20,13 @@ org.onap.ccsdk.cds parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT ../../../ org.onap.ccsdk.cds.components proto-definition - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT jar Controller Blueprints Proto Definition diff --git a/components/parent/pom.xml b/components/parent/pom.xml index 0c018b36f..6d116e45c 100644 --- a/components/parent/pom.xml +++ b/components/parent/pom.xml @@ -21,7 +21,7 @@ org.onap.ccsdk.cds components - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT org.onap.ccsdk.cds.components parent diff --git a/components/pom.xml b/components/pom.xml index f11efe674..8d545149b 100644 --- a/components/pom.xml +++ b/components/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 components diff --git a/ms/blueprintsprocessor/application/pom.xml b/ms/blueprintsprocessor/application/pom.xml index 65091588f..b2a0a10b3 100755 --- a/ms/blueprintsprocessor/application/pom.xml +++ b/ms/blueprintsprocessor/application/pom.xml @@ -22,7 +22,7 @@ org.onap.ccsdk.cds.blueprintsprocessor parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT ../parent application diff --git a/ms/blueprintsprocessor/cba-parent/pom.xml b/ms/blueprintsprocessor/cba-parent/pom.xml index 513a7e7b0..a5317744b 100644 --- a/ms/blueprintsprocessor/cba-parent/pom.xml +++ b/ms/blueprintsprocessor/cba-parent/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds.blueprintsprocessor parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT ../parent cba-parent diff --git a/ms/blueprintsprocessor/distribution/pom.xml b/ms/blueprintsprocessor/distribution/pom.xml index 55c4a7ef3..0629f5fb4 100755 --- a/ms/blueprintsprocessor/distribution/pom.xml +++ b/ms/blueprintsprocessor/distribution/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds.blueprintsprocessor parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT ../parent distribution diff --git a/ms/blueprintsprocessor/functions/ansible-awx-executor/pom.xml b/ms/blueprintsprocessor/functions/ansible-awx-executor/pom.xml index 5f03b31d4..53149a476 100644 --- a/ms/blueprintsprocessor/functions/ansible-awx-executor/pom.xml +++ b/ms/blueprintsprocessor/functions/ansible-awx-executor/pom.xml @@ -18,7 +18,7 @@ functions org.onap.ccsdk.cds.blueprintsprocessor - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 diff --git a/ms/blueprintsprocessor/functions/cli-executor/pom.xml b/ms/blueprintsprocessor/functions/cli-executor/pom.xml index 52b3cfc46..7017c85ee 100644 --- a/ms/blueprintsprocessor/functions/cli-executor/pom.xml +++ b/ms/blueprintsprocessor/functions/cli-executor/pom.xml @@ -18,7 +18,7 @@ functions org.onap.ccsdk.cds.blueprintsprocessor - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 org.onap.ccsdk.cds.blueprintsprocessor.functions diff --git a/ms/blueprintsprocessor/functions/config-snapshots/pom.xml b/ms/blueprintsprocessor/functions/config-snapshots/pom.xml index f0f0170ca..17910cace 100644 --- a/ms/blueprintsprocessor/functions/config-snapshots/pom.xml +++ b/ms/blueprintsprocessor/functions/config-snapshots/pom.xml @@ -18,13 +18,13 @@ functions org.onap.ccsdk.cds.blueprintsprocessor - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 org.onap.ccsdk.cds.blueprintsprocessor.functions config-snapshots - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT Blueprints Processor Function - Config Snapshots Blueprints Processor Function - Config Snapshots diff --git a/ms/blueprintsprocessor/functions/netconf-executor/pom.xml b/ms/blueprintsprocessor/functions/netconf-executor/pom.xml index 6fb9e3893..4efeae3ea 100644 --- a/ms/blueprintsprocessor/functions/netconf-executor/pom.xml +++ b/ms/blueprintsprocessor/functions/netconf-executor/pom.xml @@ -18,7 +18,7 @@ org.onap.ccsdk.cds.blueprintsprocessor functions - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 org.onap.ccsdk.cds.blueprintsprocessor.functions diff --git a/ms/blueprintsprocessor/functions/pom.xml b/ms/blueprintsprocessor/functions/pom.xml index b457dc9ee..425e33dba 100755 --- a/ms/blueprintsprocessor/functions/pom.xml +++ b/ms/blueprintsprocessor/functions/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds.blueprintsprocessor parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT ../parent 4.0.0 diff --git a/ms/blueprintsprocessor/functions/python-executor/pom.xml b/ms/blueprintsprocessor/functions/python-executor/pom.xml index 740ef2567..d166505ad 100644 --- a/ms/blueprintsprocessor/functions/python-executor/pom.xml +++ b/ms/blueprintsprocessor/functions/python-executor/pom.xml @@ -18,7 +18,7 @@ functions org.onap.ccsdk.cds.blueprintsprocessor - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 diff --git a/ms/blueprintsprocessor/functions/resource-resolution/pom.xml b/ms/blueprintsprocessor/functions/resource-resolution/pom.xml index 33b83909e..7c94ccb41 100644 --- a/ms/blueprintsprocessor/functions/resource-resolution/pom.xml +++ b/ms/blueprintsprocessor/functions/resource-resolution/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds.blueprintsprocessor functions - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT org.onap.ccsdk.cds.blueprintsprocessor.functions resource-resolution diff --git a/ms/blueprintsprocessor/functions/restconf-executor/pom.xml b/ms/blueprintsprocessor/functions/restconf-executor/pom.xml index ea1ea0e5e..45cbe70dc 100644 --- a/ms/blueprintsprocessor/functions/restconf-executor/pom.xml +++ b/ms/blueprintsprocessor/functions/restconf-executor/pom.xml @@ -18,7 +18,7 @@ functions org.onap.ccsdk.cds.blueprintsprocessor - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 org.onap.ccsdk.cds.blueprintsprocessor.functions diff --git a/ms/blueprintsprocessor/modules/commons/db-lib/pom.xml b/ms/blueprintsprocessor/modules/commons/db-lib/pom.xml index 0bdb2421c..194090ed1 100644 --- a/ms/blueprintsprocessor/modules/commons/db-lib/pom.xml +++ b/ms/blueprintsprocessor/modules/commons/db-lib/pom.xml @@ -20,7 +20,7 @@ org.onap.ccsdk.cds.blueprintsprocessor commons - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT db-lib diff --git a/ms/blueprintsprocessor/modules/commons/dmaap-lib/pom.xml b/ms/blueprintsprocessor/modules/commons/dmaap-lib/pom.xml index 1fd3a0faa..e0b06e8e7 100644 --- a/ms/blueprintsprocessor/modules/commons/dmaap-lib/pom.xml +++ b/ms/blueprintsprocessor/modules/commons/dmaap-lib/pom.xml @@ -23,7 +23,7 @@ org.onap.ccsdk.cds.blueprintsprocessor commons - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT dmaap-lib diff --git a/ms/blueprintsprocessor/modules/commons/grpc-lib/pom.xml b/ms/blueprintsprocessor/modules/commons/grpc-lib/pom.xml index cf30fe82c..059001755 100644 --- a/ms/blueprintsprocessor/modules/commons/grpc-lib/pom.xml +++ b/ms/blueprintsprocessor/modules/commons/grpc-lib/pom.xml @@ -18,7 +18,7 @@ commons org.onap.ccsdk.cds.blueprintsprocessor - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 diff --git a/ms/blueprintsprocessor/modules/commons/message-lib/pom.xml b/ms/blueprintsprocessor/modules/commons/message-lib/pom.xml index fcce622cf..8beb8e44d 100644 --- a/ms/blueprintsprocessor/modules/commons/message-lib/pom.xml +++ b/ms/blueprintsprocessor/modules/commons/message-lib/pom.xml @@ -18,7 +18,7 @@ commons org.onap.ccsdk.cds.blueprintsprocessor - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 diff --git a/ms/blueprintsprocessor/modules/commons/pom.xml b/ms/blueprintsprocessor/modules/commons/pom.xml index 10746a0d9..1ebee2993 100755 --- a/ms/blueprintsprocessor/modules/commons/pom.xml +++ b/ms/blueprintsprocessor/modules/commons/pom.xml @@ -22,7 +22,7 @@ org.onap.ccsdk.cds.blueprintsprocessor modules - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT commons diff --git a/ms/blueprintsprocessor/modules/commons/processor-core/pom.xml b/ms/blueprintsprocessor/modules/commons/processor-core/pom.xml index db14b6373..930bccdf6 100644 --- a/ms/blueprintsprocessor/modules/commons/processor-core/pom.xml +++ b/ms/blueprintsprocessor/modules/commons/processor-core/pom.xml @@ -21,7 +21,7 @@ org.onap.ccsdk.cds.blueprintsprocessor commons - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT processor-core diff --git a/ms/blueprintsprocessor/modules/commons/rest-lib/pom.xml b/ms/blueprintsprocessor/modules/commons/rest-lib/pom.xml index 0fc679727..f9a56c7ea 100644 --- a/ms/blueprintsprocessor/modules/commons/rest-lib/pom.xml +++ b/ms/blueprintsprocessor/modules/commons/rest-lib/pom.xml @@ -21,7 +21,7 @@ org.onap.ccsdk.cds.blueprintsprocessor commons - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT rest-lib diff --git a/ms/blueprintsprocessor/modules/commons/ssh-lib/pom.xml b/ms/blueprintsprocessor/modules/commons/ssh-lib/pom.xml index ff1224bfe..4d0ef064b 100644 --- a/ms/blueprintsprocessor/modules/commons/ssh-lib/pom.xml +++ b/ms/blueprintsprocessor/modules/commons/ssh-lib/pom.xml @@ -18,7 +18,7 @@ commons org.onap.ccsdk.cds.blueprintsprocessor - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 diff --git a/ms/blueprintsprocessor/modules/inbounds/configs-api/pom.xml b/ms/blueprintsprocessor/modules/inbounds/configs-api/pom.xml index 4fd567de4..8026a599e 100644 --- a/ms/blueprintsprocessor/modules/inbounds/configs-api/pom.xml +++ b/ms/blueprintsprocessor/modules/inbounds/configs-api/pom.xml @@ -19,12 +19,12 @@ org.onap.ccsdk.cds.blueprintsprocessor inbounds - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT org.onap.ccsdk.cds.blueprintsprocessor configs-api - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT jar Blueprints Processor Resource Configurations API Blueprints Processor Resource Configurations API diff --git a/ms/blueprintsprocessor/modules/inbounds/designer-api/pom.xml b/ms/blueprintsprocessor/modules/inbounds/designer-api/pom.xml index e9bda82d6..efd052bbe 100644 --- a/ms/blueprintsprocessor/modules/inbounds/designer-api/pom.xml +++ b/ms/blueprintsprocessor/modules/inbounds/designer-api/pom.xml @@ -18,7 +18,7 @@ inbounds org.onap.ccsdk.cds.blueprintsprocessor - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 designer-api diff --git a/ms/blueprintsprocessor/modules/inbounds/pom.xml b/ms/blueprintsprocessor/modules/inbounds/pom.xml index fe139128e..46e20d96b 100644 --- a/ms/blueprintsprocessor/modules/inbounds/pom.xml +++ b/ms/blueprintsprocessor/modules/inbounds/pom.xml @@ -20,7 +20,7 @@ org.onap.ccsdk.cds.blueprintsprocessor modules - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT inbounds diff --git a/ms/blueprintsprocessor/modules/inbounds/resource-api/pom.xml b/ms/blueprintsprocessor/modules/inbounds/resource-api/pom.xml index 8f8d86f2e..5a2994667 100644 --- a/ms/blueprintsprocessor/modules/inbounds/resource-api/pom.xml +++ b/ms/blueprintsprocessor/modules/inbounds/resource-api/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds.blueprintsprocessor inbounds - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT resource-api diff --git a/ms/blueprintsprocessor/modules/inbounds/selfservice-api/pom.xml b/ms/blueprintsprocessor/modules/inbounds/selfservice-api/pom.xml index 583e179ac..6197770af 100755 --- a/ms/blueprintsprocessor/modules/inbounds/selfservice-api/pom.xml +++ b/ms/blueprintsprocessor/modules/inbounds/selfservice-api/pom.xml @@ -22,7 +22,7 @@ org.onap.ccsdk.cds.blueprintsprocessor inbounds - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT selfservice-api diff --git a/ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/ExecutionServiceController.kt b/ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/ExecutionServiceController.kt index cc1229623..0b1fd18d3 100644 --- a/ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/ExecutionServiceController.kt +++ b/ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/ExecutionServiceController.kt @@ -35,15 +35,17 @@ import org.springframework.http.ResponseEntity import org.springframework.http.codec.multipart.FilePart import org.springframework.security.access.prepost.PreAuthorize import org.springframework.web.bind.annotation.* +import reactor.core.publisher.Mono +import reactor.core.scheduler.Schedulers import java.util.concurrent.Phaser import javax.annotation.PreDestroy @RestController @RequestMapping("/api/v1/execution-service") @Api(value = "/api/v1/execution-service", - description = "Interaction with CBA.") + description = "Interaction with CBA.") open class ExecutionServiceController { - + private val scheduler = Schedulers.newElastic("bpthread") private val log = logger(ExecutionServiceController::class) private val ph = Phaser(1) @@ -52,8 +54,8 @@ open class ExecutionServiceController { lateinit var executionServiceHandler: ExecutionServiceHandler @RequestMapping(path = ["/health-check"], - method = [RequestMethod.GET], - produces = [MediaType.APPLICATION_JSON_VALUE]) + method = [RequestMethod.GET], + produces = [MediaType.APPLICATION_JSON_VALUE]) @ResponseBody @ApiOperation(value = "Health Check", hidden = true) fun executionServiceControllerHealthCheck(): JsonNode = runBlocking { @@ -64,8 +66,8 @@ open class ExecutionServiceController { @ResponseBody @PreAuthorize("hasRole('USER')") @ApiOperation(value = "Upload a CBA", - notes = "Upload the CBA package. This will also run validation on the CBA.", - produces = MediaType.APPLICATION_JSON_VALUE) + notes = "Upload the CBA package. This will also run validation on the CBA.", + produces = MediaType.APPLICATION_JSON_VALUE) fun upload(@ApiParam(value = "The ZIP file containing the overall CBA package.", required = true) @RequestPart("file") filePart: FilePart): JsonNode = runBlocking { val uploadId = executionServiceHandler.upload(filePart) @@ -74,8 +76,8 @@ open class ExecutionServiceController { @DeleteMapping("/name/{name}/version/{version}") @ApiOperation(value = "Delete a CBA", - notes = "Delete the CBA package identified by its name and version.", - produces = MediaType.APPLICATION_JSON_VALUE) + notes = "Delete the CBA package identified by its name and version.", + produces = MediaType.APPLICATION_JSON_VALUE) @PreAuthorize("hasRole('USER')") fun deleteBlueprint(@ApiParam(value = "Name of the CBA.", required = true) @PathVariable(value = "name") name: String, @@ -86,24 +88,30 @@ open class ExecutionServiceController { @RequestMapping(path = ["/process"], method = [RequestMethod.POST], produces = [MediaType.APPLICATION_JSON_VALUE]) @ApiOperation(value = "Execute a CBA workflow (action)", - notes = "Execute the appropriate CBA's action based on the ExecutionServiceInput object passed as input.", - produces = MediaType.APPLICATION_JSON_VALUE, - response = ExecutionServiceOutput::class) + notes = "Execute the appropriate CBA's action based on the ExecutionServiceInput object passed as input.", + produces = MediaType.APPLICATION_JSON_VALUE, + response = ExecutionServiceOutput::class) @ResponseBody @PreAuthorize("hasRole('USER')") fun process(@ApiParam(value = "ExecutionServiceInput payload.", required = true) - @RequestBody executionServiceInput: ExecutionServiceInput): ResponseEntity = - runBlocking { - if (executionServiceInput.actionIdentifiers.mode == ACTION_MODE_ASYNC) { - throw IllegalStateException("Can't process async request through the REST endpoint. Use gRPC for async processing.") - } + @RequestBody executionServiceInput: ExecutionServiceInput): Mono> { + return Mono.fromSupplier { this.bpProcessBlockingWrapper(executionServiceInput) } + .subscribeOn(scheduler) + } - ph.register() - val processResult = executionServiceHandler.doProcess(executionServiceInput) - ph.arriveAndDeregister() - ResponseEntity(processResult, determineHttpStatusCode(processResult.status.code)) + private fun bpProcessBlockingWrapper(executionServiceInput: ExecutionServiceInput): ResponseEntity { + return runBlocking { + if (executionServiceInput.actionIdentifiers.mode == ACTION_MODE_ASYNC) { + throw IllegalStateException("Can't process async request through the REST endpoint. Use gRPC for async processing.") } + ph.register() + val processResult = executionServiceHandler.doProcess(executionServiceInput) + ph.arriveAndDeregister() + ResponseEntity(processResult, determineHttpStatusCode(processResult.status.code)) + } + } + @PreDestroy fun preDestroy() { val name = "ExecutionServiceController" diff --git a/ms/blueprintsprocessor/modules/outbounds/pom.xml b/ms/blueprintsprocessor/modules/outbounds/pom.xml index d2b09e210..68057050e 100644 --- a/ms/blueprintsprocessor/modules/outbounds/pom.xml +++ b/ms/blueprintsprocessor/modules/outbounds/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds.blueprintsprocessor modules - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT outbounds diff --git a/ms/blueprintsprocessor/modules/pom.xml b/ms/blueprintsprocessor/modules/pom.xml index c7302db2d..051ae5ed4 100644 --- a/ms/blueprintsprocessor/modules/pom.xml +++ b/ms/blueprintsprocessor/modules/pom.xml @@ -21,7 +21,7 @@ org.onap.ccsdk.cds.blueprintsprocessor parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT ../parent diff --git a/ms/blueprintsprocessor/modules/services/execution-service/pom.xml b/ms/blueprintsprocessor/modules/services/execution-service/pom.xml index bd586649b..54cfda0ad 100644 --- a/ms/blueprintsprocessor/modules/services/execution-service/pom.xml +++ b/ms/blueprintsprocessor/modules/services/execution-service/pom.xml @@ -20,7 +20,7 @@ org.onap.ccsdk.cds.blueprintsprocessor services - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT execution-service diff --git a/ms/blueprintsprocessor/modules/services/pom.xml b/ms/blueprintsprocessor/modules/services/pom.xml index 6112fecef..b6d2da3cf 100755 --- a/ms/blueprintsprocessor/modules/services/pom.xml +++ b/ms/blueprintsprocessor/modules/services/pom.xml @@ -22,7 +22,7 @@ org.onap.ccsdk.cds.blueprintsprocessor modules - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT services diff --git a/ms/blueprintsprocessor/modules/services/workflow-service/pom.xml b/ms/blueprintsprocessor/modules/services/workflow-service/pom.xml index 807996389..19ea37bab 100644 --- a/ms/blueprintsprocessor/modules/services/workflow-service/pom.xml +++ b/ms/blueprintsprocessor/modules/services/workflow-service/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds.blueprintsprocessor services - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT 4.0.0 diff --git a/ms/blueprintsprocessor/parent/pom.xml b/ms/blueprintsprocessor/parent/pom.xml index 478c44fce..07f05d57c 100755 --- a/ms/blueprintsprocessor/parent/pom.xml +++ b/ms/blueprintsprocessor/parent/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds blueprintsprocessor - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT org.onap.ccsdk.cds.blueprintsprocessor parent diff --git a/ms/blueprintsprocessor/pom.xml b/ms/blueprintsprocessor/pom.xml index c227dff18..f312fe2cf 100755 --- a/ms/blueprintsprocessor/pom.xml +++ b/ms/blueprintsprocessor/pom.xml @@ -20,7 +20,7 @@ org.onap.ccsdk.cds ms - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT .. blueprintsprocessor diff --git a/ms/command-executor/pom.xml b/ms/command-executor/pom.xml index 01095bec0..334bc875e 100755 --- a/ms/command-executor/pom.xml +++ b/ms/command-executor/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds ms - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT .. command-executor diff --git a/ms/controllerblueprints/modules/blueprint-core/pom.xml b/ms/controllerblueprints/modules/blueprint-core/pom.xml index 59e4e329e..07b269b60 100644 --- a/ms/controllerblueprints/modules/blueprint-core/pom.xml +++ b/ms/controllerblueprints/modules/blueprint-core/pom.xml @@ -20,7 +20,7 @@ org.onap.ccsdk.cds.controllerblueprints modules - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT blueprint-core Controller Blueprints Core diff --git a/ms/controllerblueprints/modules/blueprint-validation/pom.xml b/ms/controllerblueprints/modules/blueprint-validation/pom.xml index 3109f5f61..59a89a41e 100644 --- a/ms/controllerblueprints/modules/blueprint-validation/pom.xml +++ b/ms/controllerblueprints/modules/blueprint-validation/pom.xml @@ -21,7 +21,7 @@ org.onap.ccsdk.cds.controllerblueprints modules - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT blueprint-validation Controller Blueprints Validation Service diff --git a/ms/controllerblueprints/modules/pom.xml b/ms/controllerblueprints/modules/pom.xml index 3524569c7..9de18161f 100644 --- a/ms/controllerblueprints/modules/pom.xml +++ b/ms/controllerblueprints/modules/pom.xml @@ -20,7 +20,7 @@ org.onap.ccsdk.cds.controllerblueprints parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT ../parent modules diff --git a/ms/controllerblueprints/modules/resource-dict/pom.xml b/ms/controllerblueprints/modules/resource-dict/pom.xml index 2fc2af475..2e16bf068 100644 --- a/ms/controllerblueprints/modules/resource-dict/pom.xml +++ b/ms/controllerblueprints/modules/resource-dict/pom.xml @@ -21,7 +21,7 @@ org.onap.ccsdk.cds.controllerblueprints modules - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT resource-dict Controller Blueprints Resource Dictionary diff --git a/ms/controllerblueprints/parent/pom.xml b/ms/controllerblueprints/parent/pom.xml index 2a47ff1c5..3d5132dad 100644 --- a/ms/controllerblueprints/parent/pom.xml +++ b/ms/controllerblueprints/parent/pom.xml @@ -21,7 +21,7 @@ org.onap.ccsdk.cds controllerblueprints - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT org.onap.ccsdk.cds.controllerblueprints parent diff --git a/ms/controllerblueprints/pom.xml b/ms/controllerblueprints/pom.xml index 7f32fbc5a..db646ce0c 100644 --- a/ms/controllerblueprints/pom.xml +++ b/ms/controllerblueprints/pom.xml @@ -18,13 +18,13 @@ org.onap.ccsdk.cds ms - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT .. 4.0.0 controllerblueprints Controller Blueprints Root - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT ControllerBlueprints UTF-8 diff --git a/ms/pom.xml b/ms/pom.xml index 9d92c90fb..4e1895376 100644 --- a/ms/pom.xml +++ b/ms/pom.xml @@ -20,12 +20,12 @@ org.onap.ccsdk.cds parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT .. ms - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT pom Micro-services Root diff --git a/ms/sdclistener/application/pom.xml b/ms/sdclistener/application/pom.xml index 13a9f9007..79deed820 100644 --- a/ms/sdclistener/application/pom.xml +++ b/ms/sdclistener/application/pom.xml @@ -19,13 +19,13 @@ org.onap.ccsdk.cds.sdclistener parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT ../parent application jar - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT SDC Listener Application diff --git a/ms/sdclistener/distribution/pom.xml b/ms/sdclistener/distribution/pom.xml index f70f318af..f76cf8a4f 100755 --- a/ms/sdclistener/distribution/pom.xml +++ b/ms/sdclistener/distribution/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds.sdclistener parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT ../parent distribution diff --git a/ms/sdclistener/parent/pom.xml b/ms/sdclistener/parent/pom.xml index 683517960..d179a2691 100755 --- a/ms/sdclistener/parent/pom.xml +++ b/ms/sdclistener/parent/pom.xml @@ -21,7 +21,7 @@ org.onap.ccsdk.cds sdclistener - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT org.onap.ccsdk.cds.sdclistener parent diff --git a/ms/sdclistener/pom.xml b/ms/sdclistener/pom.xml index e944f221a..5704c5d05 100644 --- a/ms/sdclistener/pom.xml +++ b/ms/sdclistener/pom.xml @@ -19,7 +19,7 @@ org.onap.ccsdk.cds ms - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT .. diff --git a/pom.xml b/pom.xml index 6887e3289..54b81246b 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ limitations under the License. org.onap.ccsdk.cds parent - 0.6.5-SNAPSHOT + 0.6.6-SNAPSHOT pom cds-parent diff --git a/version.properties b/version.properties index 90e38c38b..9e22a72ee 100644 --- a/version.properties +++ b/version.properties @@ -6,7 +6,7 @@ release_name=0 sprint_number=6 -feature_revision=5 +feature_revision=6 base_version=${release_name}.${sprint_number}.${feature_revision} -- cgit 1.2.3-korg