summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorHarald Musum <musum@oath.com>2018-04-10 14:20:49 +0200
committerHarald Musum <musum@oath.com>2018-04-10 14:20:49 +0200
commit41835a054af48f67e2e3e6b61ceff020820324da (patch)
tree32c01e9317e73ddec446aee328d895fa7d195d3d /controller-api
parent437b38a442f0c3943546d6e7cf34f0be9139ad3d (diff)
Add config server VIP URI to zone registry
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 25b286bf94c..169f38aaf4c 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
@@ -31,6 +31,9 @@ public interface ZoneRegistry {
/** Returns a list with all known config servers in the given zone, with a secure connection URL */
List<URI> getConfigServerUris(ZoneId zoneId);
+ /** 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 a URL with the logs for the given deployment, if logging is configured for its zone */
Optional<URI> getLogServerUri(DeploymentId deploymentId);