diff options
author | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2019-05-08 15:17:26 +0200 |
---|---|---|
committer | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2019-05-09 11:18:39 +0200 |
commit | 94850730a44f6ca7a932ab56bc886eac73eefa49 (patch) | |
tree | 4856783b04f0b42f9e1cf1a250463e704a84fbbd /controller-api/src | |
parent | 7959eb47094ea185d3ab02d68c5db5091390402d (diff) |
Expand ApplicationStore with dev package storage and retrieval
Diffstat (limited to 'controller-api/src')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java | 8 |
1 files changed, 7 insertions, 1 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 index 11886f7dd18..426a3a17296 100644 --- 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 @@ -22,7 +22,7 @@ public interface ApplicationStore { /** Removes applications older than the given version, for the given application, and returns whether something was removed. */ boolean prune(ApplicationId application, ApplicationVersion olderThanVersion); - /** Removes all application packages for the given application. */ + /** Removes all application packages for the given application, including any development package. */ void removeAll(ApplicationId application); /** Returns the tester application package of the given version. Does NOT contain the services.xml. */ @@ -37,4 +37,10 @@ public interface ApplicationStore { /** Removes all tester packages for the given tester. */ void removeAll(TesterId tester); + /** Stores the given application package as the development package for the given application. */ + void putDev(ApplicationId application, byte[] applicationPackage); + + /** Returns the development package for the given application. */ + byte[] getDev(ApplicationId application); + } |