summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2019-10-10 09:32:31 +0200
committerGitHub <noreply@github.com>2019-10-10 09:32:31 +0200
commitbd2a77e32e6138418981c6c202b371811fd08e54 (patch)
tree2c34a9b01212206892d3fff32ba065374195ccbc /controller-api
parent6d15182af7a9a73a83efaf24575fc27787a9de03 (diff)
parenta067eff9ee5a32a5b3f42edb3869a5508b18f7eb (diff)
Merge pull request #10933 from vespa-engine/jvenstad/more-dep-orch-cleanup
Jvenstad/more dep orch cleanup
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java18
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java2
2 files changed, 11 insertions, 9 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);
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java
index 9881002659d..510171512f9 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/JobType.java
@@ -20,7 +20,7 @@ import static com.yahoo.config.provision.SystemName.main;
/** Job types that exist in the build system */
public enum JobType {
// | enum name ------------| job name ------------------| Zone in main system ---------------------------------------| Zone in CD system -------------------------------------------
- component ("component",
+ component ("component", // TODO jonmv: remove when no longer present in serialized data
Map.of()),
systemTest ("system-test",