aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorFrode Lundgren <frodelu@frode.lu>2018-09-28 12:54:10 +0200
committerFrode Lundgren <frodelu@yahoo-inc.com>2018-10-23 11:47:17 +0200
commit0f5f50f33c0d8e7caad7d49c66eb62e3feb6521e (patch)
tree4d0640923285758318ef678711da484e47dc38b6 /controller-api
parent123c5a40b52018090a9a7d36ab2699b85bd12328 (diff)
Revert "Revert "Adding getConfigServerApiUris() to include both cfg servers and VIP [VESPA-12701]""
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java
index e7ef3e52eb5..f35c5b1c310 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java
@@ -34,6 +34,9 @@ public interface ZoneRegistry {
/** Returns the URI for the config server VIP in the given zone, or Optional.empty() if no VIP exists */
default Optional<URI> getConfigServerVipUri(ZoneId zoneId) { return Optional.empty(); }
+ /** Returns all possible API endpoints of all known config servers and config server VIPs in the given zone */
+ List<URI> getConfigServerApiUris(ZoneId zoneId);
+
/** Returns a URL with the logs for the given deployment, if logging is configured for its zone */
Optional<URI> getLogServerUri(DeploymentId deploymentId);