aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/distributor/distributor_host_info_reporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/vespa/storage/distributor/distributor_host_info_reporter.h')
-rw-r--r--storage/src/vespa/storage/distributor/distributor_host_info_reporter.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/storage/src/vespa/storage/distributor/distributor_host_info_reporter.h b/storage/src/vespa/storage/distributor/distributor_host_info_reporter.h
index ab1fbe5feea..52921deb4b9 100644
--- a/storage/src/vespa/storage/distributor/distributor_host_info_reporter.h
+++ b/storage/src/vespa/storage/distributor/distributor_host_info_reporter.h
@@ -2,13 +2,11 @@
#pragma once
#include <vespa/storage/common/hostreporter/hostreporter.h>
-#include <atomic>
namespace storage::distributor {
class BucketSpacesStatsProvider;
class MinReplicaProvider;
-struct OperationStats;
class DistributorHostInfoReporter : public HostReporter
{
@@ -17,32 +15,13 @@ public:
BucketSpacesStatsProvider& bucketSpacesStatsProvider);
DistributorHostInfoReporter(const DistributorHostInfoReporter&) = delete;
- DistributorHostInfoReporter& operator=(
- const DistributorHostInfoReporter&) = delete;
+ DistributorHostInfoReporter& operator=(const DistributorHostInfoReporter&) = delete;
void report(vespalib::JsonStream& output) override;
- /**
- * Set wether per-node latency, replication factors, merge stats etc are
- * to be included in the generated JSON report.
- *
- * Thread safe.
- */
- void enableReporting(bool enabled) noexcept {
- _enabled.store(enabled, std::memory_order_relaxed);
- }
-
- /**
- * Thread safe.
- */
- bool isReportingEnabled() const noexcept {
- return _enabled.load(std::memory_order_relaxed);
- }
-
private:
MinReplicaProvider& _minReplicaProvider;
BucketSpacesStatsProvider& _bucketSpacesStatsProvider;
- std::atomic<bool> _enabled;
};
} // storage::distributor