diff options
author | Håkon Hallingstad <hakon@oath.com> | 2018-04-13 18:24:51 +0200 |
---|---|---|
committer | Håkon Hallingstad <hakon@oath.com> | 2018-04-13 18:24:51 +0200 |
commit | 46b8c58361e3c42f6802481c044e9afe382d3b6c (patch) | |
tree | 4adc815b24909623ca0f215913b596ebd5aa8720 /node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/ConfigServerClients.java | |
parent | 77099bae5bcddf36acf2bad25d01bba74e7eccb2 (diff) |
Add /status/v1/health client
Diffstat (limited to 'node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/ConfigServerClients.java')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/ConfigServerClients.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/ConfigServerClients.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/ConfigServerClients.java index f52487c306f..7c15f94852b 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/ConfigServerClients.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/configserver/ConfigServerClients.java @@ -1,15 +1,25 @@ // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.node.admin.configserver; +import com.yahoo.config.provision.HostName; import com.yahoo.vespa.hosted.node.admin.configserver.noderepository.NodeRepository; import com.yahoo.vespa.hosted.node.admin.configserver.orchestrator.Orchestrator; +import com.yahoo.vespa.hosted.node.admin.configserver.state.State; /** + * The available (and implemented) APIs of the config server + * * @author freva */ public interface ConfigServerClients { + /** Get handle to /nodes/v2/ REST API */ NodeRepository nodeRepository(); + + /** Get handle to /orchestrator/v1/ REST API */ Orchestrator orchestrator(); + /** Get handle to the /state/v1 REST API of the specified config server */ + default State state(HostName hostname) { throw new java.lang.UnsupportedOperationException(); } + void stop(); } |