summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorn.christian@seime.no>2019-10-25 10:51:52 +0200
committerGitHub <noreply@github.com>2019-10-25 10:51:52 +0200
commit3501bdb0fda6d51a09ff7a50b6250e7130bdf900 (patch)
tree5da4917d385e2a1f8b237fc18de64a46fab9e860 /controller-api
parent396e8a825afb061dffe85c3bdacc408ce2c159fd (diff)
Revert "Revert "Bjorncs/system flags handler""
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java7
1 files changed, 5 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..d808b4b7adb 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);
@@ -87,4 +87,7 @@ public interface ZoneRegistry {
/** Returns a URL used to generate flashy badges from strings. */
URI badgeUrl();
+ /** Returns a URL to the controller's api endpoint */
+ URI apiUrl();
+
}