Kea  2.1.7-git
isc::dhcp::LeaseFileStats Class Reference

Provides statistics for leases. More...

#include <lease_file_stats.h>

+ Inheritance diagram for isc::dhcp::LeaseFileStats:

Public Member Functions

 LeaseFileStats ()
 Constructor. More...
 
 ~LeaseFileStats ()
 Destructor. More...
 
void clearStatistics ()
 Clears the statistics. More...
 
uint32_t getReadErrs () const
 Gets the number of errors when reading leases. More...
 
uint32_t getReadLeases () const
 Gets the number of leases read. More...
 
uint32_t getReads () const
 Gets the number of attempts to read a lease. More...
 
uint32_t getWriteErrs () const
 Gets the number of errors when writing leases. More...
 
uint32_t getWriteLeases () const
 Gets the number of leases written. More...
 
uint32_t getWrites () const
 Gets the number of attempts to write a lease. More...
 

Protected Attributes

uint32_t read_errs_
 Number of errors when reading. More...
 
uint32_t read_leases_
 Number of leases read. More...
 
uint32_t reads_
 Number of attempts to read a lease. More...
 
uint32_t write_errs_
 Number of errors when writing. More...
 
uint32_t write_leases_
 Number of lease written. More...
 
uint32_t writes_
 Number of attempts to write a lease. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LeaseFileStats()

isc::dhcp::LeaseFileStats::LeaseFileStats ( )
inline

Constructor.

Initializes the stats variables to zeros

Definition at line 23 of file lease_file_stats.h.

References clearStatistics().

+ Here is the call graph for this function:

◆ ~LeaseFileStats()

isc::dhcp::LeaseFileStats::~LeaseFileStats ( )
inline

Destructor.

Definition at line 28 of file lease_file_stats.h.

Member Function Documentation

◆ clearStatistics()

void isc::dhcp::LeaseFileStats::clearStatistics ( )
inline

◆ getReadErrs()

uint32_t isc::dhcp::LeaseFileStats::getReadErrs ( ) const
inline

Gets the number of errors when reading leases.

Definition at line 42 of file lease_file_stats.h.

References read_errs_.

◆ getReadLeases()

uint32_t isc::dhcp::LeaseFileStats::getReadLeases ( ) const
inline

Gets the number of leases read.

Definition at line 37 of file lease_file_stats.h.

References read_leases_.

◆ getReads()

uint32_t isc::dhcp::LeaseFileStats::getReads ( ) const
inline

Gets the number of attempts to read a lease.

Definition at line 32 of file lease_file_stats.h.

References reads_.

◆ getWriteErrs()

uint32_t isc::dhcp::LeaseFileStats::getWriteErrs ( ) const
inline

Gets the number of errors when writing leases.

Definition at line 57 of file lease_file_stats.h.

References write_errs_.

◆ getWriteLeases()

uint32_t isc::dhcp::LeaseFileStats::getWriteLeases ( ) const
inline

Gets the number of leases written.

Definition at line 52 of file lease_file_stats.h.

References write_leases_.

◆ getWrites()

uint32_t isc::dhcp::LeaseFileStats::getWrites ( ) const
inline

Gets the number of attempts to write a lease.

Definition at line 47 of file lease_file_stats.h.

References writes_.

Member Data Documentation

◆ read_errs_

uint32_t isc::dhcp::LeaseFileStats::read_errs_
protected

Number of errors when reading.

Definition at line 79 of file lease_file_stats.h.

Referenced by clearStatistics(), getReadErrs(), isc::dhcp::CSVLeaseFile6::next(), and isc::dhcp::CSVLeaseFile4::next().

◆ read_leases_

uint32_t isc::dhcp::LeaseFileStats::read_leases_
protected

Number of leases read.

Definition at line 76 of file lease_file_stats.h.

Referenced by clearStatistics(), getReadLeases(), isc::dhcp::CSVLeaseFile6::next(), and isc::dhcp::CSVLeaseFile4::next().

◆ reads_

uint32_t isc::dhcp::LeaseFileStats::reads_
protected

Number of attempts to read a lease.

Definition at line 73 of file lease_file_stats.h.

Referenced by clearStatistics(), getReads(), isc::dhcp::CSVLeaseFile6::next(), and isc::dhcp::CSVLeaseFile4::next().

◆ write_errs_

uint32_t isc::dhcp::LeaseFileStats::write_errs_
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().

◆ write_leases_

uint32_t isc::dhcp::LeaseFileStats::write_leases_
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().

◆ writes_

uint32_t isc::dhcp::LeaseFileStats::writes_
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().


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