diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2019-10-24 15:19:41 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2019-10-24 15:19:41 +0200 |
commit | bbaeb599e433f0d3cb41621d2ec6c324183ce707 (patch) | |
tree | 1e9c35994c73ab844cb8583881adbe658f98e06e /controller-api | |
parent | 090545c72987caae213384f7dbdcbc95016b39e3 (diff) |
Change return type of 'getConfigServerVipUri' to 'URI'
Configservers in all zones are behind a VIP/load balancer.
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java | 4 |
1 files changed, 2 insertions, 2 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 72f9f5b7ce2..bb201a323a2 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 @@ -39,8 +39,8 @@ public interface ZoneRegistry { /** Returns the API endpoints of all known config servers in the given zone */ 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 the URI for the config server VIP in the given zone */ + URI getConfigServerVipUri(ZoneId zoneId); /** Returns all possible API endpoints of all known config servers and config server VIPs in the given zone */ List<URI> getConfigServerApiUris(ZoneId zoneId); |