27 const void* secret,
size_t secret_len,
size_t digestbits)
28 :
TSIGKey(key_name, algorithm_name, secret, secret_len, digestbits) {
37D2TsigKey::initStats() {
42 stats_mgr.
setValue(sname,
static_cast<int64_t
>(0));
47D2TsigKey::removeStats() {
62 stats_mgr.
reset(sname);
static const std::list< std::string > key
Key DNS update statistics names.
D2TsigKey(const std::string &key_spec)
Constructor.
virtual void resetStats()
Reset statistics.
virtual dns::TSIGContextPtr createContext()
Create TSIG context.
virtual ~D2TsigKey()
Destructor.
The Name class encapsulates DNS names.
std::string toText(bool omit_final_dot=false) const
Convert the Name to a string.
const Name & getKeyName() const
Getter Methods.
Statistics Manager class.
static StatsMgr & instance()
Statistics Manager accessor method.
static std::string generateName(const std::string &context, Type index, const std::string &stat_name)
Generates statistic name in a given context.
bool reset(const std::string &name)
Resets specified statistic.
bool del(const std::string &name)
Removes specified statistic.
void setValue(const std::string &name, const int64_t value)
Records absolute integer observation.
boost::shared_ptr< TSIGContext > TSIGContextPtr
Defines the logger used by the top-level component of kea-lfc.