aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/dcaegen2-services/common
AgeCommit message (Expand)AuthorFilesLines
2022-01-06[DCAEGEN2] Use common.log templateMaciej Wereski3-127/+6
2021-12-09[DCAEGEN2] Update healthcheck to version 2.4.0Jack Lucas1-2/+4
2021-12-07[GLOBAL] Migrate to helm v3efiacor3-24/+11
2021-11-19[DCAEGEN2] Updates for R10Jack Lucas1-0/+3
2021-10-15[COMMON] Bump ONAP versionSylvain Desbureaux2-2/+4
2021-10-11Merge "[DCAEGEN2-SERVICES] Update chart with service account"Sylvain Desbureaux1-0/+1
2021-09-26[COMMON] Add and run pre-commit linters via toxguillaume.lambert1-1/+1
2021-09-26[DCAEGEN
/*
 * Copyright © 2017-2018 AT&T Intellectual Property.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.onap.ccsdk.apps.blueprintsprocessor.selfservice.api

import com.google.protobuf.util.JsonFormat
import io.grpc.stub.StreamObserver
import org.onap.ccsdk.apps.blueprintsprocessor.core.BluePrintCoreConfiguration
import org.onap.ccsdk.apps.controllerblueprints.processing.api.BluePrintProcessingServiceGrpc
import org.onap.ccsdk.apps.controllerblueprints.processing.api.ExecutionServiceInput
import org.onap.ccsdk.apps.controllerblueprints.processing.api.ExecutionServiceOutput
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Service

@Service
class BluePrintProcessingGRPCHandler(private val bluePrintCoreConfiguration: BluePrintCoreConfiguration)
    : BluePrintProcessingServiceGrpc.BluePrintProcessingServiceImplBase() {
    private val log = LoggerFactory.getLogger(BluePrintProcessingGRPCHandler::class.java)

    override fun process(request: ExecutionServiceInput,
                         responseObserver: StreamObserver<ExecutionServiceOutput>) {

        val json = JsonFormat.printer().print(request)

        //log.info("Received GRPC request ${json}")
        //TODO( Handle Processing Response")
        val response = ExecutionServiceOutput.newBuilder().setCommonHeader(request.commonHeader).build()
        responseObserver.onNext(response)
        responseObserver.onCompleted()
    }
}
an class='libravatar'>Remigiusz Janeczek2-2/+55 2021-04-30[DCAE] Common template update for policy sidecarvv770d1-0/+65 2021-04-30Merge "[DCEAGEN] Add app-config volume mount to common dceagen2 template"Sylvain Desbureaux1-2/+2 2021-04-29[DCEAGEN] Add app-config volume mount to common dceagen2 templateBartosz Gardziejewski1-2/+2 2021-04-29[DCAEGEN2] Set env variables from secretsJack Lucas1-6/+51 2021-03-24[DOC][COMMON] Prepare Honolulu releaseSylvain Desbureaux2-2/+2 2021-03-21[DCAEGEN2] Deploy DCAE microservices via HelmJack Lucas8-0/+560