|  | Kea 3.0.0
    | 
Provides configuration and control flow for processing queries. More...
#include <lease_query_impl.h>
| Public Member Functions | |
| LeaseQueryImpl (uint16_t family, const isc::data::ConstElementPtr config) | |
| Constructor. | |
| virtual | ~LeaseQueryImpl () | 
| Destructor. | |
| uint16_t | getFamily () | 
| Returns the protocol family of the impl. | |
| isc::asiolink::IOServicePtr | getIOService () | 
| Get the hook I/O service. | |
| size_t | getNumRequesters () const | 
| Returns the number of valid requester. | |
| bool | isRequester (const isc::asiolink::IOAddress &address) const | 
| Checks if the given address belongs to a valid requester. | |
| virtual void | processQuery (isc::dhcp::PktPtr base_query) const =0 | 
| Processes a single client Lease Query. | |
| void | setIOService (isc::asiolink::IOServicePtr io_service) | 
| Set the hook I/O service. | |
| Static Public Attributes | |
| static const isc::data::SimpleKeywords | LEASE_QUERY_KEYWORDS | 
| Keywords for Lease Query configuration. | |
| static size_t | PageSize = 100 | 
| Page size to commands. | |
| static bool | terminated_ = false | 
| Terminated flag. | |
Provides configuration and control flow for processing queries.
Definition at line 81 of file lease_query_impl.h.
| LeaseQueryImpl::LeaseQueryImpl | ( | uint16_t | family, | 
| const isc::data::ConstElementPtr | config ) | 
Constructor.
| family | protocol family we're handling (AF_INET or AF_INET6) | 
| config | input configuration | 
Definition at line 49 of file lease_query_impl.cc.
References if(), isc_throw, Element::list, and Element::map.
Referenced by isc::lease_query::LeaseQueryImpl4::LeaseQueryImpl4(), and isc::lease_query::LeaseQueryImpl6::LeaseQueryImpl6().
| 
 | virtual | 
Destructor.
Definition at line 84 of file lease_query_impl.cc.
| 
 | inline | 
Returns the protocol family of the impl.
Definition at line 120 of file lease_query_impl.h.
| 
 | inline | 
Get the hook I/O service.
Definition at line 127 of file lease_query_impl.h.
Referenced by dhcp4_srv_configured(), and dhcp6_srv_configured().
| 
 | inline | 
Returns the number of valid requester.
Definition at line 100 of file lease_query_impl.h.
| bool LeaseQueryImpl::isRequester | ( | const isc::asiolink::IOAddress & | address | ) | const | 
Checks if the given address belongs to a valid requester.
| address | address to verify | 
Definition at line 89 of file lease_query_impl.cc.
Referenced by isc::lease_query::LeaseQueryImpl4::processQuery(), and isc::lease_query::LeaseQueryImpl6::processQuery().
| 
 | pure virtual | 
Processes a single client Lease Query.
| base_query | lease query to process. (Implementations must use dynamic_casting). | 
Implemented in isc::lease_query::LeaseQueryImpl4, and isc::lease_query::LeaseQueryImpl6.
Referenced by buffer4_receive(), and buffer6_receive().
| 
 | inline | 
Set the hook I/O service.
| io_service | the hook I/O service. | 
Definition at line 134 of file lease_query_impl.h.
| 
 | static | 
Keywords for Lease Query configuration.
Definition at line 117 of file lease_query_impl.h.
| 
 | static | 
Page size to commands.
Definition at line 142 of file lease_query_impl.h.
Referenced by isc::lease_query::BulkLeaseQueryService::AdvancedConfig::parse(), isc::lease_query::LeaseQueryImpl4::upgradeHandler(), and isc::lease_query::LeaseQueryImpl6::upgradeHandler().
| 
 | static | 
Terminated flag.
Definition at line 139 of file lease_query_impl.h.
Referenced by isc::lease_query::BulkLeaseQueryService::acceptFilter(), load(), and unload().