]>
git.proxmox.com Git - ceph.git/blob - 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).
6 // This file implements the callback "bridge" between Java and C++ for
7 // ROCKSDB_NAMESPACE::Statistics
9 #ifndef JAVA_ROCKSJNI_STATISTICSJNI_H_
10 #define JAVA_ROCKSJNI_STATISTICSJNI_H_
16 #include "monitoring/statistics.h"
17 #include "rocksdb/statistics.h"
19 namespace ROCKSDB_NAMESPACE
{
21 class StatisticsJni
: public StatisticsImpl
{
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
;
29 const std::set
<uint32_t> m_ignore_histograms
;
32 } // namespace ROCKSDB_NAMESPACE
34 #endif // JAVA_ROCKSJNI_STATISTICSJNI_H_