From 707fb6d83819058d5736b2dc38bea3c2d9e07a2d Mon Sep 17 00:00:00 2001 From: vasraz Date: Fri, 8 Oct 2021 14:48:08 +0100 Subject: Large csar handling - object store Change-Id: I4e88bd7bfcc1fdbc93d67da2682f2e873ba243c6 Signed-off-by: Vasyl Razinkov Issue-ID: SDC-3754 --- .../java/org/openecomp/sdc/be/csar/storage/ArtifactInfo.java | 4 +--- .../openecomp/sdc/be/csar/storage/ArtifactStorageConfig.java | 1 + .../sdc/be/csar/storage/ArtifactStorageManager.java | 12 +++++++++++- 3 files changed, 13 insertions(+), 4 deletions(-) (limited to 'common-app-api') diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactInfo.java b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactInfo.java index 75847704c8..91426537ef 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactInfo.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactInfo.java @@ -20,13 +20,11 @@ package org.openecomp.sdc.be.csar.storage; -import java.nio.file.Path; - /** * Represents the stored artifact */ public interface ArtifactInfo { - Path getPath(); + String getInfo(); } diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageConfig.java b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageConfig.java index edac694933..0ad73c6590 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageConfig.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageConfig.java @@ -25,4 +25,5 @@ package org.openecomp.sdc.be.csar.storage; */ public interface ArtifactStorageConfig { + String getTempPath(); } diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageManager.java b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageManager.java index da06db0e68..0a4f355642 100644 --- a/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageManager.java +++ b/common-app-api/src/main/java/org/openecomp/sdc/be/csar/storage/ArtifactStorageManager.java @@ -52,6 +52,16 @@ public interface ArtifactStorageManager { * * @return {@code true} if enable, {@code false} otherwise */ - boolean isEnabled(); + default boolean isEnabled() { + return false; + } + /** + * @return Storage Configuration + */ + ArtifactStorageConfig getStorageConfiguration(); + + InputStream get(final ArtifactInfo artifactInfo); + + void delete(ArtifactInfo artifactInfo); } -- cgit 1.2.3-korg