Renaming Files having BluePrint to have Blueprint
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / inbounds / selfservice-api / src / main / kotlin / org / onap / ccsdk / cds / blueprintsprocessor / selfservice / api / BlueprintProcessingGRPCHandler.kt
@@ -20,10 +20,10 @@ package org.onap.ccsdk.cds.blueprintsprocessor.selfservice.api
 import io.grpc.Status
 import io.grpc.stub.StreamObserver
 import kotlinx.coroutines.runBlocking
-import org.onap.ccsdk.cds.blueprintsprocessor.core.BluePrintCoreConfiguration
+import org.onap.ccsdk.cds.blueprintsprocessor.core.BlueprintCoreConfiguration
 import org.onap.ccsdk.cds.blueprintsprocessor.core.utils.toJava
-import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintProcessorException
-import org.onap.ccsdk.cds.controllerblueprints.processing.api.BluePrintProcessingServiceGrpc
+import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintProcessorException
+import org.onap.ccsdk.cds.controllerblueprints.processing.api.BlueprintProcessingServiceGrpc
 import org.onap.ccsdk.cds.controllerblueprints.processing.api.ExecutionServiceInput
 import org.onap.ccsdk.cds.controllerblueprints.processing.api.ExecutionServiceOutput
 import org.onap.ccsdk.cds.error.catalog.core.ErrorCatalogCodes
@@ -37,14 +37,14 @@ import java.util.concurrent.Phaser
 import javax.annotation.PreDestroy
 
 @Service
-open class BluePrintProcessingGRPCHandler(
-    private val bluePrintCoreConfiguration: BluePrintCoreConfiguration,
+open class BlueprintProcessingGRPCHandler(
+    private val bluePrintCoreConfiguration: BlueprintCoreConfiguration,
     private val executionServiceHandler: ExecutionServiceHandler,
     private val errorCatalogService: ErrorCatalogService
 ) :
-    BluePrintProcessingServiceGrpc.BluePrintProcessingServiceImplBase() {
+    BlueprintProcessingServiceGrpc.BlueprintProcessingServiceImplBase() {
 
-    private val log = LoggerFactory.getLogger(BluePrintProcessingGRPCHandler::class.java)
+    private val log = LoggerFactory.getLogger(BlueprintProcessingGRPCHandler::class.java)
 
     private val ph = Phaser(1)
 
@@ -69,7 +69,7 @@ open class BluePrintProcessingGRPCHandler(
 
             override fun onError(error: Throwable) {
                 log.debug("Fail to process message", error)
-                if (error is BluePrintProcessorException) onErrorCatalog(error) else onError(error)
+                if (error is BlueprintProcessorException) onErrorCatalog(error) else onError(error)
             }
 
             fun onError(error: Exception) {
@@ -81,7 +81,7 @@ open class BluePrintProcessingGRPCHandler(
                 )
             }
 
-            fun onErrorCatalog(error: BluePrintProcessorException) {
+            fun onErrorCatalog(error: BlueprintProcessorException) {
                 if (error.protocol == "") {
                     error.grpc(ErrorCatalogCodes.GENERIC_FAILURE)
                 }
@@ -103,7 +103,7 @@ open class BluePrintProcessingGRPCHandler(
 
     @PreDestroy
     fun preDestroy() {
-        val name = "BluePrintProcessingGRPCHandler"
+        val name = "BlueprintProcessingGRPCHandler"
         log.info("Starting to shutdown $name waiting for in-flight requests to finish ...")
         ph.arriveAndAwaitAdvance()
         log.info("Done waiting in $name")