Kea
1.9.9-git
|
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 CustomCounter & | operator++ () |
Increment operator. More... | |
const CustomCounter & | operator++ (int) |
Increment operator. More... | |
const CustomCounter & | operator+= (int val) |
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.
|
inline |
Constructor.
This constructor sets counter name. This name is used in log file to report value of each counter.
name | name of the counter used in log file. |
Definition at line 73 of file bin/perfdhcp/stats_mgr.h.
|
inline |
Return counter name.
Method returns counter name.
Definition at line 107 of file bin/perfdhcp/stats_mgr.h.
|
inline |
Return counter value.
Method returns counter value.
Definition at line 100 of file bin/perfdhcp/stats_mgr.h.
|
inline |
Increment operator.
Definition at line 78 of file bin/perfdhcp/stats_mgr.h.
Referenced by operator++().
|
inline |
Increment operator.
Definition at line 84 of file bin/perfdhcp/stats_mgr.h.
References operator++().
|
inline |
Definition at line 90 of file bin/perfdhcp/stats_mgr.h.