#ifndef D2_STATS_H
#define D2_STATS_H
-#include <set>
+#include <list>
#include <string>
namespace isc {
/// - ncr-received
/// - ncr-invalid
/// - ncr-error
- static std::set<std::string> ncr;
+ static const std::list<std::string> ncr;
/// @brief Global DNS update statistics names.
///
/// - update-success
/// - update-timeout
/// - update-error
- static std::set<std::string> update;
+ static const std::list<std::string> update;
/// @brief Key DNS update statistics names.
///
/// - update-success
/// - update-timeout
/// - update-error
- static std::set<std::string> key;
+ static const std::list<std::string> key;
/// @brief Initialize D2 statistics.
///
initStats();
}
+D2TsigKey::~D2TsigKey() {
+ removeStats();
+}
+
void
D2TsigKey::initStats() {
StatsMgr& stats_mgr = StatsMgr::instance();
}
}
-D2TsigKey::~D2TsigKey() {
+void
+D2TsigKey::removeStats() {
StatsMgr& stats_mgr = StatsMgr::instance();
const string& kname = getKeyName().toText();
for (const auto& name : D2Stats::key) {