summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@verizonmedia.com>2021-09-09 16:10:26 +0200
committerValerij Fredriksen <valerijf@verizonmedia.com>2021-09-09 21:41:11 +0200
commit381fa00f92922e011442a1ac8510986d4a5f0f64 (patch)
tree3142c45cc7d22424e1f79c4e0d684b8dfecf9dab /controller-api
parentc427272000b342d8aa38c907e3639e5498c841eb (diff)
Prune diffs
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java6
1 files changed, 6 insertions, 0 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 6620cd4d0e3..4295fff9ae3 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
@@ -24,6 +24,9 @@ public interface ApplicationStore {
/** Returns the application package diff, compared to the previous build, for the given tenant, application and build number */
Optional<String> getDiff(TenantName tenantName, ApplicationName applicationName, long buildNumber);
+ /** Removes diffs for packages before the given build number */
+ void pruneDiffs(TenantName tenantName, ApplicationName applicationName, long beforeBuildNumber);
+
/** Find application package by given build number */
Optional<byte[]> find(TenantName tenant, ApplicationName application, long buildNumber);
@@ -51,6 +54,9 @@ public interface ApplicationStore {
/** Returns the application package diff, compared to the previous build, for the given deployment and build number */
Optional<String> getDevDiff(DeploymentId deploymentId, long buildNumber);
+ /** Removes diffs for dev packages before the given build number */
+ void pruneDevDiffs(DeploymentId deploymentId, long beforeBuildNumber);
+
/** Stores the given application package as the development package for the given deployment and version and diff since previous version. */
void putDev(DeploymentId deploymentId, ApplicationVersion version, byte[] applicationPackage, String diff);