aboutsummaryrefslogtreecommitdiffstats
path: root/slobrok/src/vespa/slobrok/server/configshim.cpp
blob: 1472aaa9b533aa4b5936a5f12e08debdb1b87b48 (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
28
29
30
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "configshim.h"

namespace slobrok {

ConfigShim::ConfigShim(uint32_t port)
    : _port(port),
      _enableStateServer(false),
      _configId(""),
      _factory(config::ConfigUri::createEmpty())
{}

ConfigShim::ConfigShim(uint32_t port, const std::string& cfgId)
    : _port(port),
      _enableStateServer(false),
      _configId(cfgId),
      _factory(config::ConfigUri(_configId))
{}

ConfigShim::ConfigShim(uint32_t port, const std::string& cfgId, std::shared_ptr<config::IConfigContext> cfgCtx)
    : _port(port),
      _enableStateServer(false),
      _configId(cfgId),
      _factory(config::ConfigUri(cfgId, std::move(cfgCtx)))
{}

ConfigShim::~ConfigShim() = default;

}