diff options
author | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2018-11-08 13:42:04 +0100 |
---|---|---|
committer | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2018-11-08 13:42:04 +0100 |
commit | 2eb9454e7c64abe8226ab30715c5d10965f707ba (patch) | |
tree | 8c5e6b77f6f094b28594569fb1ac0d4650088cf8 /controller-api/src/main | |
parent | e7be8a3fb437ed3e40bc321af58a84d77855f6f4 (diff) |
Add method for GC in ApplicationStore, and update mock
Diffstat (limited to 'controller-api/src/main')
-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); + } |