blob: 52921deb4b9786d3c0fe4fa570d0d9c95542928d (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/storage/common/hostreporter/hostreporter.h>
namespace storage::distributor {
class BucketSpacesStatsProvider;
class MinReplicaProvider;
class DistributorHostInfoReporter : public HostReporter
{
public:
DistributorHostInfoReporter(MinReplicaProvider& minReplicaProvider,
BucketSpacesStatsProvider& bucketSpacesStatsProvider);
DistributorHostInfoReporter(const DistributorHostInfoReporter&) = delete;
DistributorHostInfoReporter& operator=(const DistributorHostInfoReporter&) = delete;
void report(vespalib::JsonStream& output) override;
private:
MinReplicaProvider& _minReplicaProvider;
BucketSpacesStatsProvider& _bucketSpacesStatsProvider;
};
} // storage::distributor
|