Kea
1.9.9-git
|
Contains a single row of lease statistical data. More...
#include <lease_mgr.h>
Public Member Functions | |
LeaseStatsRow () | |
Default constructor. More... | |
LeaseStatsRow (const SubnetID &subnet_id, const uint32_t lease_state, const int64_t state_count) | |
Constructor. More... | |
LeaseStatsRow (const SubnetID &subnet_id, const Lease::Type &lease_type, const uint32_t lease_state, const int64_t state_count) | |
Constructor. More... | |
bool | operator< (const LeaseStatsRow &rhs) const |
Less-than operator. More... | |
Public Attributes | |
uint32_t | lease_state_ |
The lease_state to which the count applies. More... | |
Lease::Type | lease_type_ |
The lease_type to which the count applies. More... | |
int64_t | state_count_ |
state_count The count of leases in the lease state More... | |
SubnetID | subnet_id_ |
The subnet ID to which this data applies. More... | |
Contains a single row of lease statistical data.
The contents of the row consist of a subnet ID, a lease type, a lease state, and the number of leases in that state for that type for that subnet ID.
Definition at line 61 of file lease_mgr.h.
|
inline |
Default constructor.
Definition at line 63 of file lease_mgr.h.
|
inline |
Constructor.
Constructor which defaults the type to TYPE_NA.
subnet_id | The subnet id to which this data applies |
lease_state | The lease state counted |
state_count | The count of leases in the lease state |
Definition at line 75 of file lease_mgr.h.
|
inline |
Constructor.
subnet_id | The subnet id to which this data applies |
lease_type | The lease type for this state count |
lease_state | The lease state counted |
state_count | The count of leases in the lease state |
Definition at line 87 of file lease_mgr.h.
|
inline |
Less-than operator.
Definition at line 94 of file lease_mgr.h.
References lease_state_, lease_type_, and subnet_id_.
uint32_t isc::dhcp::LeaseStatsRow::lease_state_ |
The lease_state to which the count applies.
Definition at line 118 of file lease_mgr.h.
Referenced by isc::dhcp::PgSqlLeaseStatsQuery::getNextRow(), isc::dhcp::MySqlLeaseStatsQuery::getNextRow(), isc::dhcp::CqlLeaseStatsQuery::getNextRow(), isc::stat_cmds::LeaseStatCmdsImpl::makeResultSet4(), isc::stat_cmds::LeaseStatCmdsImpl::makeResultSet6(), operator<(), isc::dhcp::LeaseMgr::recountLeaseStats4(), and isc::dhcp::LeaseMgr::recountLeaseStats6().
Lease::Type isc::dhcp::LeaseStatsRow::lease_type_ |
The lease_type to which the count applies.
Definition at line 116 of file lease_mgr.h.
Referenced by isc::dhcp::PgSqlLeaseStatsQuery::getNextRow(), isc::dhcp::MySqlLeaseStatsQuery::getNextRow(), isc::dhcp::CqlLeaseStatsQuery::getNextRow(), isc::stat_cmds::LeaseStatCmdsImpl::makeResultSet6(), operator<(), and isc::dhcp::LeaseMgr::recountLeaseStats6().
int64_t isc::dhcp::LeaseStatsRow::state_count_ |
state_count The count of leases in the lease state
Definition at line 120 of file lease_mgr.h.
Referenced by isc::dhcp::PgSqlLeaseStatsQuery::getNextRow(), isc::dhcp::MySqlLeaseStatsQuery::getNextRow(), isc::dhcp::CqlLeaseStatsQuery::getNextRow(), isc::stat_cmds::LeaseStatCmdsImpl::makeResultSet4(), isc::stat_cmds::LeaseStatCmdsImpl::makeResultSet6(), isc::dhcp::LeaseMgr::recountLeaseStats4(), and isc::dhcp::LeaseMgr::recountLeaseStats6().
SubnetID isc::dhcp::LeaseStatsRow::subnet_id_ |
The subnet ID to which this data applies.
Definition at line 114 of file lease_mgr.h.
Referenced by isc::dhcp::PgSqlLeaseStatsQuery::getNextRow(), isc::dhcp::MySqlLeaseStatsQuery::getNextRow(), isc::dhcp::CqlLeaseStatsQuery::getNextRow(), isc::stat_cmds::LeaseStatCmdsImpl::makeResultSet4(), isc::stat_cmds::LeaseStatCmdsImpl::makeResultSet6(), operator<(), isc::dhcp::LeaseMgr::recountLeaseStats4(), and isc::dhcp::LeaseMgr::recountLeaseStats6().