Kea  1.9.9-git
isc::perfdhcp::CustomCounter Class Reference

Custom Counter. More...

#include <stats_mgr.h>

Public Member Functions

 CustomCounter (const std::string &name)
 Constructor. More...
const std::string & getName () const
 Return counter name. More...
uint64_t getValue () const
 Return counter value. More...
const CustomCounteroperator++ ()
 Increment operator. More...
const CustomCounteroperator++ (int)
 Increment operator. More...
const CustomCounteroperator+= (int val)

Detailed Description

Custom Counter.

This class represents custom statistics counters. Client class may create unlimited number of counters. Such counters are being stored in map in Statistics Manager and access using unique string key.

Definition at line 65 of file bin/perfdhcp/stats_mgr.h.

Constructor & Destructor Documentation

isc::perfdhcp::CustomCounter::CustomCounter ( const std::string &  name)


This constructor sets counter name. This name is used in log file to report value of each counter.

namename of the counter used in log file.

Definition at line 73 of file bin/perfdhcp/stats_mgr.h.

Member Function Documentation

const std::string& isc::perfdhcp::CustomCounter::getName ( ) const

Return counter name.

Method returns counter name.

counter name.

Definition at line 107 of file bin/perfdhcp/stats_mgr.h.

uint64_t isc::perfdhcp::CustomCounter::getValue ( ) const

Return counter value.

Method returns counter value.

counter value.

Definition at line 100 of file bin/perfdhcp/stats_mgr.h.

const CustomCounter& isc::perfdhcp::CustomCounter::operator++ ( )

Increment operator.

Definition at line 78 of file bin/perfdhcp/stats_mgr.h.

Referenced by operator++().

const CustomCounter& isc::perfdhcp::CustomCounter::operator++ ( int  )

Increment operator.

Definition at line 84 of file bin/perfdhcp/stats_mgr.h.

References operator++().

+ Here is the call graph for this function:

const CustomCounter& isc::perfdhcp::CustomCounter::operator+= ( int  val)

Definition at line 90 of file bin/perfdhcp/stats_mgr.h.

The documentation for this class was generated from the following file: