blob: c530922ad180e28f737879079cb162cf35867b58 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/config-stor-distribution.h>
#include <memory>
namespace storage::lib { class Distribution; }
namespace storage {
struct GlobalBucketSpaceDistributionConverter {
using DistributionConfig = vespa::config::content::StorDistributionConfig;
static std::shared_ptr<DistributionConfig> convert_to_global(const DistributionConfig&);
static std::shared_ptr<lib::Distribution> convert_to_global(const lib::Distribution&);
// Helper functions which may be of use outside this class
static std::unique_ptr<DistributionConfig> string_to_config(const vespalib::string&);
static vespalib::string config_to_string(const DistributionConfig&);
};
}
|