summaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java
diff options
context:
space:
mode:
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java')
-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);