aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorbjørn Smørgrav <smorgrav@users.noreply.github.com>2018-08-14 15:01:28 +0200
committerGitHub <noreply@github.com>2018-08-14 15:01:28 +0200
commita7e97f295d9c2c6eaec8e69aa46582a8993bce8c (patch)
treee77a0e28610a1f7b13dbca6ef32a33c32644e7f9
parent572d47966292bcb6f9052613d201fda458904447 (diff)
parent381dfa7f0b4d996f24ebb343e95a27493e687c51 (diff)
Merge pull request #6572 from vespa-engine/smorgrav/appstore
Add application store interface for app and tester app
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java
new file mode 100644
index 00000000000..5e9b034747d
--- /dev/null
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java
@@ -0,0 +1,22 @@
+package com.yahoo.vespa.hosted.controller.api.integration.deployment;
+
+import com.yahoo.config.provision.ApplicationId;
+/**
+ * Store for the application package and application tester package.
+ *
+ * This interface will take over most of the responsibility from the ArtifactRepository with time.
+ */
+public interface ApplicationStore {
+
+ /** Returns the tenant application package of the given version. */
+ byte[] getApplicationPackage(ApplicationId application, String applicationVersion);
+
+ /** Stores the given tenant application package of the given version. */
+ void putApplicationPackage(ApplicationId application, String applicationVersion, byte[] applicationPackage);
+
+ /** Stores the given tester application package of the given version. Does NOT contain the services.xml. */
+ void putTesterPackage(ApplicationId tester, String applicationVersion, byte[] testerPackage);
+
+ /** Returns the tester application package of the given version. Does NOT contain the services.xml. */
+ byte[] getTesterPackage(ApplicationId tester, String applicationVersion);
+}