diff options
author | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2018-11-09 11:51:29 +0100 |
---|---|---|
committer | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2018-11-09 11:51:29 +0100 |
commit | ea414a16ea792d98ac3fa371b587d5d2fc287050 (patch) | |
tree | b5d11b5a28e1facec52e6f7b0a14216cf4212d48 /controller-api/src | |
parent | ace32c042f49cc83ce5238abd1ec9f9e067b2055 (diff) |
Name and doc changes
Diffstat (limited to 'controller-api/src')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java | 20 |
1 files changed, 12 insertions, 8 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 8a3b706bab8..11886f7dd18 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 @@ -2,33 +2,37 @@ package com.yahoo.vespa.hosted.controller.api.integration.deployment; import com.yahoo.config.provision.ApplicationId; + /** - * Store for the application package and application tester package. + * Store for the application and tester packages. + * + * This will replace ArtifactRepository for tenant applications. * - * This interface will take over most of the responsibility from the ArtifactRepository with time. + * @author smorgrav + * @author jonmv */ public interface ApplicationStore { /** Returns the tenant application package of the given version. */ - byte[] getApplicationPackage(ApplicationId application, ApplicationVersion applicationVersion); + byte[] get(ApplicationId application, ApplicationVersion applicationVersion); /** Stores the given tenant application package of the given version. */ - void putApplicationPackage(ApplicationId application, ApplicationVersion applicationVersion, byte[] applicationPackage); + void put(ApplicationId application, ApplicationVersion applicationVersion, byte[] applicationPackage); /** Removes applications older than the given version, for the given application, and returns whether something was removed. */ - boolean pruneApplicationPackages(ApplicationId application, ApplicationVersion olderThanVersion); + boolean prune(ApplicationId application, ApplicationVersion olderThanVersion); /** Removes all application packages for the given application. */ void removeAll(ApplicationId application); /** Returns the tester application package of the given version. Does NOT contain the services.xml. */ - byte[] getTesterPackage(TesterId tester, ApplicationVersion applicationVersion); + byte[] get(TesterId tester, ApplicationVersion applicationVersion); /** Stores the given tester application package of the given version. Does NOT contain the services.xml. */ - void putTesterPackage(TesterId tester, ApplicationVersion applicationVersion, byte[] testerPackage); + void put(TesterId tester, ApplicationVersion applicationVersion, byte[] testerPackage); /** Removes tester packages older than the given version, for the given tester, and returns whether something was removed. */ - boolean pruneTesterPackages(TesterId tester, ApplicationVersion olderThanVersion); + boolean prune(TesterId tester, ApplicationVersion olderThanVersion); /** Removes all tester packages for the given tester. */ void removeAll(TesterId tester); |