]> git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/rocksjni/statisticsjni.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / rocksdb / java / rocksjni / statisticsjni.h
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_NAMESPACE::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
16 #include "monitoring/statistics.h"
17 #include "rocksdb/statistics.h"
18
19 namespace ROCKSDB_NAMESPACE {
20
21 class StatisticsJni : public StatisticsImpl {
22 public:
23 StatisticsJni(std::shared_ptr<Statistics> stats);
24 StatisticsJni(std::shared_ptr<Statistics> stats,
25 const std::set<uint32_t> ignore_histograms);
26 virtual bool HistEnabledForType(uint32_t type) const override;
27
28 private:
29 const std::set<uint32_t> m_ignore_histograms;
30 };
31
32 } // namespace ROCKSDB_NAMESPACE
33
34 #endif // JAVA_ROCKSJNI_STATISTICSJNI_H_