Kea 2.7.5
|
Provides statistics for leases. More...
#include <lease_file_stats.h>
Public Member Functions | |
LeaseFileStats () | |
Constructor. | |
~LeaseFileStats () | |
Destructor. | |
void | clearStatistics () |
Clears the statistics. | |
uint32_t | getReadErrs () const |
Gets the number of errors when reading leases. | |
uint32_t | getReadLeases () const |
Gets the number of leases read. | |
uint32_t | getReads () const |
Gets the number of attempts to read a lease. | |
uint32_t | getWriteErrs () const |
Gets the number of errors when writing leases. | |
uint32_t | getWriteLeases () const |
Gets the number of leases written. | |
uint32_t | getWrites () const |
Gets the number of attempts to write a lease. | |
Protected Attributes | |
uint32_t | read_errs_ |
Number of errors when reading. | |
uint32_t | read_leases_ |
Number of leases read. | |
uint32_t | reads_ |
Number of attempts to read a lease. | |
uint32_t | write_errs_ |
Number of errors when writing. | |
uint32_t | write_leases_ |
Number of lease written. | |
uint32_t | writes_ |
Number of attempts to write a lease. | |
Provides statistics for leases.
This class provides a common space for statistics that we wish to keep about leases. Currently this is for use with lease files but it may be expanded in the future.
Definition at line 18 of file lease_file_stats.h.
|
inline |
Constructor.
Initializes the stats variables to zeros
Definition at line 23 of file lease_file_stats.h.
References clearStatistics().
|
inline |
Destructor.
Definition at line 28 of file lease_file_stats.h.
|
inline |
Clears the statistics.
Definition at line 62 of file lease_file_stats.h.
References read_errs_, read_leases_, reads_, write_errs_, write_leases_, and writes_.
Referenced by LeaseFileStats(), isc::dhcp::CSVLeaseFile4::open(), and isc::dhcp::CSVLeaseFile6::open().
|
inline |
Gets the number of errors when reading leases.
Definition at line 42 of file lease_file_stats.h.
References read_errs_.
|
inline |
Gets the number of leases read.
Definition at line 37 of file lease_file_stats.h.
References read_leases_.
|
inline |
Gets the number of attempts to read a lease.
Definition at line 32 of file lease_file_stats.h.
References reads_.
|
inline |
Gets the number of errors when writing leases.
Definition at line 57 of file lease_file_stats.h.
References write_errs_.
|
inline |
Gets the number of leases written.
Definition at line 52 of file lease_file_stats.h.
References write_leases_.
|
inline |
Gets the number of attempts to write a lease.
Definition at line 47 of file lease_file_stats.h.
References writes_.
|
protected |
Number of errors when reading.
Definition at line 79 of file lease_file_stats.h.
Referenced by clearStatistics(), getReadErrs(), isc::dhcp::CSVLeaseFile4::next(), and isc::dhcp::CSVLeaseFile6::next().
|
protected |
Number of leases read.
Definition at line 76 of file lease_file_stats.h.
Referenced by clearStatistics(), getReadLeases(), isc::dhcp::CSVLeaseFile4::next(), and isc::dhcp::CSVLeaseFile6::next().
|
protected |
Number of attempts to read a lease.
Definition at line 73 of file lease_file_stats.h.
Referenced by clearStatistics(), getReads(), isc::dhcp::CSVLeaseFile4::next(), and isc::dhcp::CSVLeaseFile6::next().
|
protected |
Number of errors when writing.
Definition at line 88 of file lease_file_stats.h.
Referenced by isc::dhcp::CSVLeaseFile4::append(), isc::dhcp::CSVLeaseFile6::append(), clearStatistics(), and getWriteErrs().
|
protected |
Number of lease written.
Definition at line 85 of file lease_file_stats.h.
Referenced by isc::dhcp::CSVLeaseFile4::append(), isc::dhcp::CSVLeaseFile6::append(), clearStatistics(), and getWriteLeases().
|
protected |
Number of attempts to write a lease.
Definition at line 82 of file lease_file_stats.h.
Referenced by isc::dhcp::CSVLeaseFile4::append(), isc::dhcp::CSVLeaseFile6::append(), clearStatistics(), and getWrites().