-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstats_table_impl.h
58 lines (45 loc) · 1.59 KB
/
stats_table_impl.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* @file stats_table_impl.h
* @author matthewv
* @date Jan 8, 2023
* @date Copyright 2012-2014
*
* @brief
*/
#ifndef STATS_TABLE_IMPL_H
#define STATS_TABLE_IMPL__H
#include "libmevent/meventmgr.h"
#include "rocksdb/cache.h"
#include "rocksdb/advanced_cache.h"
#include "rocksdb/db.h"
#include "rocksdb/statistics.h"
#include "snmpagent/snmp_agent.h"
class StatsTableImpl : public StatsTable {
/****************************************************************
* Member objects
****************************************************************/
public:
protected:
MEventMgrPtr m_Mgr;
SnmpAgentPtr m_Agent; //!< snmp manager instance
private:
/****************************************************************
* Member functions
****************************************************************/
public:
StatsTableImpl() = delete;
StatsTableImpl(bool StartWorker = true);
virtual ~StatsTableImpl();
bool AddTable(const std::shared_ptr<rocksdb::Statistics> &stats,
unsigned TableId, const std::string &name) override;
bool AddTable(const std::shared_ptr<rocksdb::Cache> &cache,
unsigned TableId, const std::string &name) override;
bool AddTable(rocksdb::DB * dbase,
unsigned TableId, const std::string &name) override;
protected:
void UpdateTableNameList(unsigned TableId, const std::string &name);
private:
StatsTableImpl(const StatsTableImpl &); //!< disabled: copy operator
StatsTableImpl &operator=(const StatsTableImpl &); //!< disabled: assignment operator
}; // StatsTable
#endif // ifndef STATS_TABLE_IMPL_H