summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorJon Marius Venstad <jvenstad@yahoo-inc.com>2017-12-12 10:44:21 +0100
committerJon Marius Venstad <jvenstad@yahoo-inc.com>2017-12-12 10:44:21 +0100
commit969f6c3d336dd1c9a83e90692e4b142200b9913b (patch)
tree1d5d6688bd70dbbecc5aa8bffa008c3fab19238e /controller-api
parent92b40e23e7867b143a8a23b4dcb88fda6de8e13a (diff)
Fix mock, move kibana stuff to hosted and add some doc
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java25
1 files changed, 21 insertions, 4 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 4189ecb7c6e..9211fa97204 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
@@ -20,14 +20,31 @@ import java.util.Optional;
*/
public interface ZoneRegistry {
- SystemName system();
- List<ZoneId> zones();
+ /** Returns whether the system of this registry contains the given zone. */
boolean hasZone(ZoneId zoneId);
+
+ /** Returns a list containing the id of all zones in this registry. */
+ List<ZoneId> zones();
+
+ /** Returns the default region for the given environment. */
+ RegionName getDefaultRegion(Environment environment);
+
+ /** Returns a list with all known config servers in the given zone. */
List<URI> getConfigServerUris(ZoneId zoneId);
- Optional<URI> getLogServerUri(ZoneId zoneId);
+
+ /** Returns a URL with the logs for the given deployment, if loggin is configured for its zone. */
+ Optional<URI> getLogServerUri(DeploymentId deploymentId);
+
+ /** Returns the time to live for deployments in the given zone. */
Duration getDeploymentTimeToLive(ZoneId zoneId);
- RegionName getDefaultRegion(Environment environment);
+
+ /** Returns a URL pointing at monitoring resources for the given deployment. */
URI getMonitoringSystemUri(DeploymentId deploymentId);
+
+ /** Returns the URL of the dashboard for the system of this registry. */
URI getDashboardUri();
+ /** Returns the system of this registry. */
+ SystemName system();
+
}