diff options
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java | 6 |
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 9c111f277cb..4bc80e104bb 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 @@ -21,4 +21,10 @@ public interface ApplicationStore { /** Returns the tester application package of the given version. Does NOT contain the services.xml. */ byte[] getTesterPackage(ApplicationId tester, ApplicationVersion applicationVersion); + /** Removes applications older than the given version, for the given application, and returns whether something was removed. */ + boolean pruneApplicationPackages(ApplicationId application, ApplicationVersion olderThanVersion); + + /** Removes tester packages older than the given version, for the given tester, and returns whether something was removed. */ + boolean pruneTesterPackages(ApplicationId tester, ApplicationVersion olderThanVersion); + } |