summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2019-10-09 15:02:26 +0200
committerJon Marius Venstad <venstad@gmail.com>2019-10-09 15:02:26 +0200
commita067eff9ee5a32a5b3f42edb3869a5508b18f7eb (patch)
tree432acaa325188537ac840aef44332b5ce69c9691 /controller-api
parentb8ede085e24ebb386e490966ceb89d6ce3203cbd (diff)
Store prod packages without instance element
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java18
1 files changed, 10 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 8bfe009677c..5cd29fcd48e 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,6 +2,8 @@
package com.yahoo.vespa.hosted.controller.api.integration.deployment;
import com.yahoo.config.provision.ApplicationId;
+import com.yahoo.config.provision.ApplicationName;
+import com.yahoo.config.provision.TenantName;
import com.yahoo.config.provision.zone.ZoneId;
/**
@@ -15,28 +17,28 @@ import com.yahoo.config.provision.zone.ZoneId;
public interface ApplicationStore {
/** Returns the tenant application package of the given version. */
- byte[] get(ApplicationId application, ApplicationVersion applicationVersion);
+ byte[] get(TenantName tenant, ApplicationName application, ApplicationVersion applicationVersion);
/** Stores the given tenant application package of the given version. */
- void put(ApplicationId application, ApplicationVersion applicationVersion, byte[] applicationPackage);
+ void put(TenantName tenant, ApplicationName application, ApplicationVersion applicationVersion, byte[] applicationPackage);
/** Removes applications older than the given version, for the given application, and returns whether something was removed. */
- boolean prune(ApplicationId application, ApplicationVersion olderThanVersion);
+ boolean prune(TenantName tenant, ApplicationName application, ApplicationVersion olderThanVersion);
/** Removes all application packages for the given application, including any development package. */
- void removeAll(ApplicationId application);
+ void removeAll(TenantName tenant, ApplicationName application);
/** Returns the tester application package of the given version. Does NOT contain the services.xml. */
- byte[] get(TesterId tester, ApplicationVersion applicationVersion);
+ byte[] getTester(TenantName tenant, ApplicationName application, ApplicationVersion applicationVersion);
/** Stores the given tester application package of the given version. Does NOT contain the services.xml. */
- void put(TesterId tester, ApplicationVersion applicationVersion, byte[] testerPackage);
+ void putTester(TenantName tenant, ApplicationName application, ApplicationVersion applicationVersion, byte[] testerPackage);
/** Removes tester packages older than the given version, for the given tester, and returns whether something was removed. */
- boolean prune(TesterId tester, ApplicationVersion olderThanVersion);
+ boolean pruneTesters(TenantName tenant, ApplicationName application, ApplicationVersion olderThanVersion);
/** Removes all tester packages for the given tester. */
- void removeAll(TesterId tester);
+ void removeAllTesters(TenantName tenant, ApplicationName application);
/** Stores the given application package as the development package for the given application and zone. */
void putDev(ApplicationId application, ZoneId zone, byte[] applicationPackage);