]> git.proxmox.com Git - ceph.git/blame - ceph/src/rocksdb/java/rocksjni/statisticsjni.h
bump version to 15.2.11-pve1
[ceph.git] / ceph / src / rocksdb / java / rocksjni / statisticsjni.h
CommitLineData
11fdf7f2
TL
1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2// This source code is licensed under both the GPLv2 (found in the
3// COPYING file in the root directory) and Apache 2.0 License
4// (found in the LICENSE.Apache file in the root directory).
5//
6// This file implements the callback "bridge" between Java and C++ for
7// rocksdb::Statistics
8
9#ifndef JAVA_ROCKSJNI_STATISTICSJNI_H_
10#define JAVA_ROCKSJNI_STATISTICSJNI_H_
11
12#include <memory>
13#include <set>
14#include <string>
15#include "rocksdb/statistics.h"
16#include "monitoring/statistics.h"
17
18namespace rocksdb {
19
20 class StatisticsJni : public StatisticsImpl {
21 public:
22 StatisticsJni(std::shared_ptr<Statistics> stats);
23 StatisticsJni(std::shared_ptr<Statistics> stats,
24 const std::set<uint32_t> ignore_histograms);
25 virtual bool HistEnabledForType(uint32_t type) const override;
26
27 private:
28 const std::set<uint32_t> m_ignore_histograms;
29 };
30
31} // namespace rocksdb
32
33// @lint-ignore TXT4 T25377293 Grandfathered in
34#endif // JAVA_ROCKSJNI_STATISTICSJNI_H_