Files
scylladb/service/load_meter.hh
Kefu Chai b3e2561ed8 service: do not include unused headers
these unused includes were identified by clang-include-cleaner. after
auditing these source files, all of the reports have been confirmed.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
2025-03-20 11:18:16 +08:00

39 lines
631 B
C++

/*
* Copyright (C) 2020-present ScyllaDB
*/
/*
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0
*/
#pragma once
#include <seastar/core/distributed.hh>
#include "service/load_broadcaster.hh"
using namespace seastar;
namespace replica {
class database;
}
namespace gms { class gossiper; }
namespace service {
class load_meter {
private:
shared_ptr<load_broadcaster> _lb;
/** raw load value */
double get_load() const;
public:
future<std::map<sstring, double>> get_load_map();
future<> init(distributed<replica::database>& db, gms::gossiper& gossiper);
future<> exit();
};
}