aboutsummaryrefslogtreecommitdiffstats
path: root/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service
diff options
context:
space:
mode:
authorwasala <przemyslaw.wasala@nokia.com>2018-08-10 13:43:10 +0200
committerwasala <przemyslaw.wasala@nokia.com>2018-08-21 14:50:35 +0200
commite625d742db0cf04038081aac0758396eb3961977 (patch)
treeeb48f3ffa276fafe381e60d697400b54b6e7af8c /prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service
parent062d6042a235f96d7298a322495691ca8919fc54 (diff)
Downloading prhConf fromConsul
*Added backGround task for downloading dynamic Configuration from Consul *This configuration can pass for Kubernetes and heat (bare metal) deployment *Parsing/validation configuration from system environment Change-Id: I937cbda1bc8b715dc3e754bea8a39dd141180e49 Issue-ID: DCAEGEN2-696 Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
Diffstat (limited to 'prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service')
-rw-r--r--prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/HttpClientExecutorService.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/HttpClientExecutorService.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/HttpClientExecutorService.java
new file mode 100644
index 00000000..01081f4d
--- /dev/null
+++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/service/HttpClientExecutorService.java
@@ -0,0 +1,47 @@
+/*
+ * ============LICENSE_START=======================================================
+ * PNF-REGISTRATION-HANDLER
+ * ================================================================================
+ * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
+ * ================================================================================
+ * 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.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.services.prh.service;
+
+import org.onap.dcaegen2.services.prh.model.EnvProperties;
+import org.reactivestreams.Publisher;
+import org.springframework.stereotype.Service;
+
+/**
+ * @author <a href="mailto:przemyslaw.wasala@nokia.com">Przemysław Wąsala</a> on 8/10/18
+ */
+
+@Service
+public class HttpClientExecutorService {
+
+ public String callConsulForConfigBindingServiceEndpoint(EnvProperties envProperties) {
+ return null;
+ }
+
+ public Publisher<String> callConfigBindingServiceForPrhConfiguration(EnvProperties envProperties,
+ String configBindingServiceUri) {
+
+ return null;
+ }
+
+ private static class HttpGetClient {
+
+ }
+}