aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortoby <smorgrav@yahoo-inc.com>2018-08-14 14:46:45 +0200
committertoby <smorgrav@yahoo-inc.com>2018-08-14 14:49:40 +0200
commit381dfa7f0b4d996f24ebb343e95a27493e687c51 (patch)
treee139c923bf4718f34d8093df2b3e903d35131178
parent56451839bdf2774d5c002b9049cfb8ff85cf3aa4 (diff)
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);
+}