blob: 7c15f94852bc546316b5940ba4e8566590a0a9f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
}
|