a-la-carte services new instantiation ui
[vid.git] / vid-app-common / src / main / java / org / onap / vid / asdc / AsdcClient.java
index d26a1b2..44257a6 100644 (file)
@@ -2,7 +2,8 @@
  * ============LICENSE_START=======================================================
  * VID
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2019 Nokia. 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.
 
 package org.onap.vid.asdc;
 
-import org.onap.vid.asdc.beans.Service;
-
+import io.joshworks.restclient.http.HttpResponse;
+import java.io.InputStream;
 import java.nio.file.Path;
 import java.util.UUID;
+import org.onap.vid.aai.HttpResponseWithRequestInfo;
+import org.onap.vid.asdc.beans.Service;
 
 /**
  * The Interface AsdcClient.
@@ -32,6 +35,7 @@ public interface AsdcClient {
        class URIS{
                public static final String METADATA_URL_TEMPLATE = "%s%s/%s/metadata";
                public static final String TOSCA_MODEL_URL_TEMPLATE = "%s%s/%s/toscaModel";
+               public static final String HEALTH_CHECK_ENDPOINT = "sdc2/rest/healthCheck";
        }
        /**
         * Gets the service.
@@ -51,4 +55,10 @@ public interface AsdcClient {
         */
        Path getServiceToscaModel(UUID uuid) throws AsdcCatalogException;
 
+
+       HttpResponseWithRequestInfo<InputStream> getServiceInputStream(UUID serviceUuid, boolean warpException);
+
+       HttpResponse<String> checkSDCConnectivity();
+
+       String getBaseUrl();
 }