summaryrefslogtreecommitdiffstats
path: root/config-proxy/src/main/java/com/yahoo/vespa/config/proxy/ConfigSourceClient.java
blob: b4005730ca4770f108edbdb40d6d296dc85ccaee (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
26
27
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.proxy;

import com.yahoo.vespa.config.RawConfig;
import com.yahoo.vespa.config.protocol.JRTServerConfigRequest;

import java.util.List;

/**
 * A client to a config source, which could be an RPC config server or some other backing for
 * getting config.
 *
 * @author hmusum
 * @since 5.1.9
 */
interface ConfigSourceClient {

    RawConfig getConfig(RawConfig input, JRTServerConfigRequest request);

    void cancel();

    void shutdownSourceConnections();

    String getActiveSourceConnection();

    List<String> getSourceConnections();
}