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

Packet Queue Manager for DHPCv4 servers. More...

#include <packet_queue_mgr4.h>

+ Inheritance diagram for isc::dhcp::PacketQueueMgr4:

Public Member Functions

 PacketQueueMgr4 ()
 It registers a default factory for DHCPv4 queues. More...
 
virtual ~PacketQueueMgr4 ()
 virtual Destructor More...
 
- Public Member Functions inherited from isc::dhcp::PacketQueueMgr< PacketQueue4Ptr >
 PacketQueueMgr ()
 Constructor. More...
 
void createPacketQueue (data::ConstElementPtr parameters)
 Create an instance of a packet queue. More...
 
void destroyPacketQueue ()
 Destroys the current packet queue. More...
 
PacketQueue4Ptr getPacketQueue () const
 Returns underlying packet queue. More...
 
bool registerPacketQueueFactory (const std::string &queue_type, Factory factory)
 Registers new queue factory function for a given queue type. More...
 
bool unregisterPacketQueueFactory (const std::string &queue_type)
 Unregisters the queue factory function for a given type. More...
 

Static Public Attributes

static const std::string DEFAULT_QUEUE_TYPE4 = "kea-ring4"
 Logical name of the pre-registered, default queue implementation. More...
 

Additional Inherited Members

- Public Types inherited from isc::dhcp::PacketQueueMgr< PacketQueue4Ptr >
typedef std::function< PacketQueue4Ptr(data::ConstElementPtr)> Factory
 Defines the type of the packet queue factory function. More...
 
- Protected Attributes inherited from isc::dhcp::PacketQueueMgr< PacketQueue4Ptr >
std::map< std::string, Factoryfactories_
 A map holding registered backend factory functions. More...
 
PacketQueue4Ptr packet_queue_
 the current queue_ ? More...
 

Detailed Description

Packet Queue Manager for DHPCv4 servers.

Implements the "manager" class which holds information about the supported DHCPv4 packet queue implementations and provides management of the current queue instance.

Definition at line 22 of file packet_queue_mgr4.h.

Constructor & Destructor Documentation

◆ PacketQueueMgr4()

isc::dhcp::PacketQueueMgr4::PacketQueueMgr4 ( )

It registers a default factory for DHCPv4 queues.

Definition at line 18 of file packet_queue_mgr4.cc.

References DEFAULT_QUEUE_TYPE4, isc::data::SimpleParser::getInteger(), isc_throw, and isc::dhcp::PacketQueueMgr< PacketQueue4Ptr >::registerPacketQueueFactory().

+ Here is the call graph for this function:

◆ ~PacketQueueMgr4()

virtual isc::dhcp::PacketQueueMgr4::~PacketQueueMgr4 ( )
inlinevirtual

virtual Destructor

Definition at line 32 of file packet_queue_mgr4.h.

Member Data Documentation

◆ DEFAULT_QUEUE_TYPE4

const std::string isc::dhcp::PacketQueueMgr4::DEFAULT_QUEUE_TYPE4 = "kea-ring4"
static

Logical name of the pre-registered, default queue implementation.

Definition at line 26 of file packet_queue_mgr4.h.

Referenced by PacketQueueMgr4().


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