From e57152a107add539568d8db3940a75682a76cb31 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 2 May 2017 14:44:04 +0200 Subject: Add missing file --- slobrok/src/vespa/slobrok/server/configshim.cpp | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 slobrok/src/vespa/slobrok/server/configshim.cpp (limited to 'slobrok') diff --git a/slobrok/src/vespa/slobrok/server/configshim.cpp b/slobrok/src/vespa/slobrok/server/configshim.cpp new file mode 100644 index 00000000000..a13b80fe1ca --- /dev/null +++ b/slobrok/src/vespa/slobrok/server/configshim.cpp @@ -0,0 +1,28 @@ +// Copyright 2016 Yahoo Inc. 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), _statePort(0), _configId(""), + _factory(config::ConfigUri::createEmpty()) +{} + +ConfigShim::ConfigShim(uint32_t port, uint32_t statePort_in, const std::string& cfgId) + : _port(port), + _statePort(statePort_in), + _configId(cfgId), + _factory(config::ConfigUri(_configId)) +{} + +ConfigShim::ConfigShim(uint32_t port, const std::string& cfgId, config::IConfigContext::SP cfgCtx) + : _port(port), + _statePort(0), + _configId(cfgId), + _factory(config::ConfigUri(cfgId, cfgCtx)) +{} + +ConfigShim::~ConfigShim() {} + +} -- cgit v1.2.3