7 #ifndef HA_COMMAND_CREATOR_H 8 #define HA_COMMAND_CREATOR_H 14 #include <unordered_set> 96 const uint32_t limit);
158 const uint32_t limit);
static data::ConstElementPtr createHAReset(const HAServerType &server_type)
Creates ha-reset command.
static data::ConstElementPtr createLease6GetAll()
Creates lease6-get-all command.
Structure that holds a lease for IPv4 address.
static std::unordered_set< std::string > ha_commands6_
List of commands used by the High Availability in v6.
boost::shared_ptr< Element > ElementPtr
static data::ConstElementPtr createLease6GetPage(const dhcp::Lease6Ptr &lease6, const uint32_t limit)
Creates lease6-get-page command.
HAServerType
Lists possible server types for which HA service is created.
static data::ConstElementPtr createLease4GetAll()
Creates lease4-get-all command.
boost::shared_ptr< Lease4 > Lease4Ptr
Pointer to a Lease4 structure.
static data::ConstElementPtr createLease4Update(const dhcp::Lease4 &lease4)
Creates lease4-update command.
static data::ConstElementPtr createSyncCompleteNotify(const HAServerType &server_type)
Creates ha-sync-complete-notify command.
boost::shared_ptr< const Element > ConstElementPtr
static std::unordered_set< std::string > ha_commands4_
List of commands used by the High Availability in v4.
Structure that holds a lease for IPv6 address and/or prefix.
static data::ConstElementPtr createLease4Delete(const dhcp::Lease4 &lease4)
Creates lease4-del command.
Defines the logger used by the top-level component of kea-lfc.
static data::ConstElementPtr createLease6Delete(const dhcp::Lease6 &lease6)
Creates lease6-del command.
boost::shared_ptr< Lease6Collection > Lease6CollectionPtr
A shared pointer to the collection of IPv6 leases.
static data::ConstElementPtr createLease6BulkApply(const dhcp::Lease6CollectionPtr &leases, const dhcp::Lease6CollectionPtr &deleted_leases)
Creates lease6-bulk-apply command.
static data::ConstElementPtr createHeartbeat(const HAServerType &server_type)
Creates ha-heartbeat command for DHCP server.
static data::ConstElementPtr createLease6Update(const dhcp::Lease6 &lease6)
Creates lease6-update command.
boost::shared_ptr< Lease6 > Lease6Ptr
Pointer to a Lease6 structure.
static data::ConstElementPtr createMaintenanceNotify(const bool cancel, const HAServerType &server_type)
Creates ha-maintenance-notify command.
Queue holding a backlog of unsent lease updates.
static data::ConstElementPtr createDHCPEnable(const HAServerType &server_type)
Creates dhcp-enable command for DHCP server.
static data::ConstElementPtr createDHCPDisable(const unsigned int max_period, const HAServerType &server_type)
Creates dhcp-disable command for DHCP server.
static data::ConstElementPtr createLease4GetPage(const dhcp::Lease4Ptr &lease4, const uint32_t limit)
Creates lease4-get-page command.
Holds a collection of functions which generate commands used for High Availability.