]> git.proxmox.com Git - ceph.git/blame - ceph/src/rocksdb/java/rocksjni/statisticsjni.h
update ceph source to reef 18.1.2
[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
f67539c2 7// ROCKSDB_NAMESPACE::Statistics
11fdf7f2
TL
8
9#ifndef JAVA_ROCKSJNI_STATISTICSJNI_H_
10#define JAVA_ROCKSJNI_STATISTICSJNI_H_
11
12#include <memory>
13#include <set>
14#include <string>
1e59de90 15
11fdf7f2 16#include "monitoring/statistics.h"
1e59de90 17#include "rocksdb/statistics.h"
11fdf7f2 18
f67539c2 19namespace ROCKSDB_NAMESPACE {
11fdf7f2 20
f67539c2
TL
21class 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;
11fdf7f2 27
f67539c2
TL
28 private:
29 const std::set<uint32_t> m_ignore_histograms;
1e59de90 30};
11fdf7f2 31
1e59de90 32} // namespace ROCKSDB_NAMESPACE
11fdf7f2 33
20effc67 34#endif // JAVA_ROCKSJNI_STATISTICSJNI_H_