summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-10-23 22:50:15 +0200
committerGitHub <noreply@github.com>2018-10-23 22:50:15 +0200
commit3f6ee1763741cdb5f3148931883d665f58adcfb1 (patch)
tree3379cf87ee8c99f2258cc33c31a603f641b95a5b /controller-api
parent4522ba150e4033fcfad6b8231c3a9557339c1502 (diff)
parent6ed0d7389b1569fa1a4ebcc963bdcd96477afb3a (diff)
Merge pull request #7416 from vespa-engine/revert-7116-revert-7098-frodelu/combined-api-uris
Take #2: Adding getConfigServerApiUris() with 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);