diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-09-26 09:06:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 09:06:03 -0700 |
commit | 24e8e9b795a1ab7454977792a56cb9704f182dba (patch) | |
tree | 2ae8b2ba7a4cbe9fd71fefd7c28b18b501111e28 /controller-api | |
parent | 07f06a4eaf43254c933d42712c14dd4533f8e2a8 (diff) | |
parent | 1e60423adf1372318529647ebfc6d37a9400ddb0 (diff) |
Merge pull request #7098 from vespa-engine/frodelu/combined-api-uris
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.java | 3 |
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); |