From 0f5f50f33c0d8e7caad7d49c66eb62e3feb6521e Mon Sep 17 00:00:00 2001 From: Frode Lundgren Date: Fri, 28 Sep 2018 12:54:10 +0200 Subject: Revert "Revert "Adding getConfigServerApiUris() to include both cfg servers and VIP [VESPA-12701]"" --- .../vespa/hosted/controller/api/integration/zone/ZoneRegistry.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'controller-api') 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 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 getConfigServerApiUris(ZoneId zoneId); + /** Returns a URL with the logs for the given deployment, if logging is configured for its zone */ Optional getLogServerUri(DeploymentId deploymentId); -- cgit v1.2.3