From ea414a16ea792d98ac3fa371b587d5d2fc287050 Mon Sep 17 00:00:00 2001 From: Jon Marius Venstad Date: Fri, 9 Nov 2018 11:51:29 +0100 Subject: Name and doc changes --- .../api/integration/deployment/ApplicationStore.java | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'controller-api/src') 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); -- cgit v1.2.3