blob: 21da0a9918a57f91858450ba2bcdf6f4ce29a93e (
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 Yahoo. 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;
};
}
|