blob: cb26630fe7e65be2de5cdd237eff0fd18c841cab (
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 Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <cstdint>
namespace search::bmcluster {
/*
* Class containing merge (throttler) stats for a service layer node.
*/
class BmMergeStats
{
uint32_t _active;
uint32_t _queued;
public:
BmMergeStats();
BmMergeStats(uint32_t active, uint32_t queued);
~BmMergeStats();
BmMergeStats& operator+=(const BmMergeStats& rhs);
bool operator==(const BmMergeStats &rhs) const;
uint32_t get_active() const noexcept { return _active; }
uint32_t get_queued() const noexcept { return _queued; }
};
}
|