Files
scylladb/service/load_meter.hh
Kefu Chai d28d64f7fe service: remove extraneous space in #pragma once
to be more consistent with the rest of the tree.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>

Closes scylladb/scylladb#21188
2024-10-20 20:27:38 +03:00

40 lines
646 B
C++

/*
* Copyright (C) 2020-present ScyllaDB
*/
/*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
#pragma once
#include <seastar/core/shared_ptr.hh>
#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();
};
}