diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2020-09-03 15:35:23 +0200 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2020-09-03 15:35:23 +0200 |
commit | 44da4cfa11687ee78f91086302db26c574b1f642 (patch) | |
tree | 12120d6fcdb7076e883733795f15c21672effa7d /controller-api | |
parent | 44ff5b1d1caddc5f0e3db3da54a2654e765f7305 (diff) |
Store meta data for deployment and deactivation of manual deployments
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java | 8 |
1 files changed, 7 insertions, 1 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 28a803fd43d..dd9f8c38802 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 @@ -5,9 +5,9 @@ import com.yahoo.config.provision.ApplicationId; import com.yahoo.config.provision.ApplicationName; import com.yahoo.config.provision.TenantName; import com.yahoo.config.provision.zone.ZoneId; +import com.yahoo.vespa.hosted.controller.api.identifiers.DeploymentId; import java.time.Instant; -import java.util.Collection; import java.util.Optional; /** @@ -59,6 +59,12 @@ public interface ApplicationStore { /** Marks the given application as deleted, and eligible for meta data GC at a later time. */ void putMetaTombstone(TenantName tenant, ApplicationName application, Instant now); + /** Stores the given manual deployment meta data with the current time as part of the path. */ + void putMeta(DeploymentId id, Instant now, byte[] metaZip); + + /** Marks the given manual deployment as deleted, and eligible for meta data GC at a later time. */ + void putMetaTombstone(DeploymentId id, Instant now); + /** Prunes meta data such that only what was active at the given instant, and anything newer, is retained. */ void pruneMeta(Instant oldest); |