blob: 6c3edba94367e81e12d6cb9a41f156dfc4f1a9e9 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/document/bucket/bucketid.h>
#include <vespa/vespalib/stllike/string.h>
#include <cstdint>
#include <vector>
#include <memory>
namespace storage::lib { class ClusterStateBundle; }
namespace storage::distributor {
class ClusterInformation
{
public:
using CSP = std::shared_ptr<const ClusterInformation>;
virtual ~ClusterInformation() = default;
virtual uint16_t getDistributorIndex() const = 0;
virtual const lib::ClusterStateBundle& getClusterStateBundle() const = 0;
virtual const char* getStorageUpStates() const = 0;
uint16_t getStorageNodeCount() const;
};
}
|