summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorJon Marius Venstad <jvenstad@yahoo-inc.com>2019-05-31 14:26:41 +0200
committerJon Marius Venstad <jvenstad@yahoo-inc.com>2019-05-31 14:26:41 +0200
commit5482c9e52aaac5d8e2b473218bfcc967954d977b (patch)
tree2c5bc42f1217992219229b197e05697e55ea10b3 /controller-api
parent9595ead354b4fd235de80981b03c40bf6d9995af (diff)
Supply Vespa version to config convergence
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java
index 43ae29ee922..03b3d586b73 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java
@@ -1,6 +1,7 @@
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.configserver;
+import com.yahoo.component.Version;
import com.yahoo.config.provision.ApplicationId;
import com.yahoo.config.provision.zone.ZoneId;
import com.yahoo.vespa.hosted.controller.api.application.v4.model.DeployOptions;
@@ -72,7 +73,12 @@ public interface ConfigServer {
NodeRepository nodeRepository();
/** Get service convergence status for given deployment */
- Optional<ServiceConvergence> serviceConvergence(DeploymentId deployment);
+ default Optional<ServiceConvergence> serviceConvergence(DeploymentId deployment) {
+ return serviceConvergence(deployment, Optional.empty());
+ }
+
+ /** Get service convergence status for given deployment, using the nodes in the model at the given Vespa version. */
+ Optional<ServiceConvergence> serviceConvergence(DeploymentId deployment, Optional<Version> version);
/** Get all load balancers in given zone */
List<LoadBalancer> getLoadBalancers(ZoneId zone);