summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-09-01 17:22:43 +0200
committerJon Marius Venstad <venstad@gmail.com>2020-09-01 17:22:43 +0200
commit30f02e92849dcdb1b1de17810d46a761eb03bc19 (patch)
treea76f0c4a2f3e38c9c8d9bd48099c748790ded66f /controller-api
parentcaf58f5b7ed8cdda43ec73706986b9e41dd019ed (diff)
Add and use API for storing deployment meeta data
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java11
1 files changed, 11 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 a86dc6895ae..28a803fd43d 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
@@ -6,6 +6,8 @@ import com.yahoo.config.provision.ApplicationName;
import com.yahoo.config.provision.TenantName;
import com.yahoo.config.provision.zone.ZoneId;
+import java.time.Instant;
+import java.util.Collection;
import java.util.Optional;
/**
@@ -51,4 +53,13 @@ public interface ApplicationStore {
/** Returns the development package for the given application and zone. */
byte[] getDev(ApplicationId application, ZoneId zone);
+ /** Stores the given application meta data with the current time as part of the path. */
+ void putMeta(TenantName tenant, ApplicationName application, Instant now, byte[] metaZip);
+
+ /** Marks the given application as deleted, and eligible for meta data GC at a later time. */
+ void putMetaTombstone(TenantName tenant, ApplicationName application, Instant now);
+
+ /** Prunes meta data such that only what was active at the given instant, and anything newer, is retained. */
+ void pruneMeta(Instant oldest);
+
}