Kea  2.1.7-git
isc::dhcp::AllocEngine::RandomAllocator Class Reference

Random allocator that picks address randomly. More...

#include <alloc_engine.h>

+ Inheritance diagram for isc::dhcp::AllocEngine::RandomAllocator:

Public Member Functions

 RandomAllocator (Lease::Type type)
 Default constructor (does nothing) More...
 
- Public Member Functions inherited from isc::dhcp::AllocEngine::Allocator
 Allocator (Lease::Type pool_type)
 Default constructor. More...
 
virtual ~Allocator ()
 Virtual destructor. More...
 
virtual isc::asiolink::IOAddress pickAddress (const SubnetPtr &subnet, const ClientClasses &client_classes, const DuidPtr &duid, const isc::asiolink::IOAddress &hint)
 Picks one address out of available pools in a given subnet. More...
 

Additional Inherited Members

- Protected Attributes inherited from isc::dhcp::AllocEngine::Allocator
Lease::Type pool_type_
 Defines pool type allocation. More...
 

Detailed Description

Random allocator that picks address randomly.

Todo:
: This is a skeleton class for now and is missing an implementation.

Definition at line 238 of file alloc_engine.h.

Constructor & Destructor Documentation

◆ RandomAllocator()

isc::dhcp::AllocEngine::RandomAllocator::RandomAllocator ( Lease::Type  type)

Default constructor (does nothing)

Parameters
type- specifies allocation type

Definition at line 302 of file alloc_engine.cc.

References isc_throw.


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