Kea  1.9.9-git
isc::dhcp::ConfigBackendPoolDHCPv4 Class Reference

Implementation of the Configuration Backend Pool for DHCPv4. More...

#include <config_backend_pool_dhcp4.h>

+ Inheritance diagram for isc::dhcp::ConfigBackendPoolDHCPv4:

Public Member Functions

virtual void createUpdateGlobalParameter4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const data::StampedValuePtr &value)
 Creates or updates global string parameter. More...
 
virtual void createUpdateOption4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const OptionDescriptorPtr &option)
 Creates or updates global option. More...
 
virtual void createUpdateOption4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &shared_network_name, const OptionDescriptorPtr &option)
 Creates or updates shared network level option. More...
 
virtual void createUpdateOption4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const SubnetID &subnet_id, const OptionDescriptorPtr &option)
 Creates or updates subnet level option. More...
 
virtual void createUpdateOption4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const asiolink::IOAddress &pool_start_address, const asiolink::IOAddress &pool_end_address, const OptionDescriptorPtr &option)
 Creates or updates pool level option. More...
 
virtual void createUpdateOptionDef4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const OptionDefinitionPtr &option_def)
 Creates or updates an option definition. More...
 
virtual void createUpdateServer4 (const db::BackendSelector &backend_selector, const db::ServerPtr &server)
 Creates or updates a server. More...
 
virtual void createUpdateSharedNetwork4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const SharedNetwork4Ptr &shared_network)
 Creates or updates a shared network. More...
 
virtual void createUpdateSubnet4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const Subnet4Ptr &subnet)
 Creates or updates a subnet. More...
 
virtual uint64_t deleteAllGlobalParameters4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector)
 Deletes all global parameters. More...
 
virtual uint64_t deleteAllOptionDefs4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector)
 Deletes all option definitions. More...
 
virtual uint64_t deleteAllServers4 (const db::BackendSelector &backend_selector)
 Deletes all servers from the backend except the logical server 'all'. More...
 
virtual uint64_t deleteAllSharedNetworks4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector)
 Deletes all shared networks. More...
 
virtual uint64_t deleteAllSubnets4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector)
 Deletes all subnets. More...
 
virtual uint64_t deleteGlobalParameter4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &name)
 Deletes global parameter. More...
 
virtual uint64_t deleteOption4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const uint16_t code, const std::string &space)
 Deletes global option. More...
 
virtual uint64_t deleteOption4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &shared_network_name, const uint16_t code, const std::string &space)
 Deletes shared network level option. More...
 
virtual uint64_t deleteOption4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const SubnetID &subnet_id, const uint16_t code, const std::string &space)
 Deletes subnet level option. More...
 
virtual uint64_t deleteOption4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const asiolink::IOAddress &pool_start_address, const asiolink::IOAddress &pool_end_address, const uint16_t code, const std::string &space)
 Deletes pool level option. More...
 
virtual uint64_t deleteOptionDef4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const uint16_t code, const std::string &space)
 Deletes option definition. More...
 
virtual uint64_t deleteServer4 (const db::BackendSelector &backend_selector, const data::ServerTag &server_tag)
 Deletes a server from the backend. More...
 
virtual uint64_t deleteSharedNetwork4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &name)
 Deletes shared network by name. More...
 
virtual uint64_t deleteSharedNetworkSubnets4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &shared_network_name)
 Deletes all subnets belonging to a specified shared network. More...
 
virtual uint64_t deleteSubnet4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &subnet_prefix)
 Deletes subnet by prefix. More...
 
virtual uint64_t deleteSubnet4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const SubnetID &subnet_id)
 Deletes subnet by identifier. More...
 
virtual data::StampedValueCollection getAllGlobalParameters4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all global parameters. More...
 
virtual OptionDefContainer getAllOptionDefs4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all option definitions. More...
 
virtual OptionContainer getAllOptions4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all global options. More...
 
virtual db::ServerCollection getAllServers4 (const db::BackendSelector &backend_selector) const
 Retrieves all servers from the particular backend. More...
 
virtual SharedNetwork4Collection getAllSharedNetworks4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all shared networks. More...
 
virtual Subnet4Collection getAllSubnets4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all subnets. More...
 
virtual data::StampedValuePtr getGlobalParameter4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &name) const
 Retrieves global parameter value. More...
 
virtual data::StampedValueCollection getModifiedGlobalParameters4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves global parameters modified after specified time. More...
 
virtual OptionDefContainer getModifiedOptionDefs4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves option definitions modified after specified time. More...
 
virtual OptionContainer getModifiedOptions4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves option modified after specified time. More...
 
virtual SharedNetwork4Collection getModifiedSharedNetworks4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves shared networks modified after specified time. More...
 
virtual Subnet4Collection getModifiedSubnets4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves subnets modified after specified time. More...
 
virtual OptionDescriptorPtr getOption4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const uint16_t code, const std::string &space) const
 Retrieves single option by code and space. More...
 
virtual OptionDefinitionPtr getOptionDef4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const uint16_t code, const std::string &space) const
 Retrieves single option definition by code and space. More...
 
virtual db::AuditEntryCollection getRecentAuditEntries (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time, const uint64_t &modification_id) const
 Retrieves the most recent audit entries. More...
 
virtual db::ServerPtr getServer4 (const db::BackendSelector &backend_selector, const data::ServerTag &server_tag) const
 Retrieves a server from the particular backend. More...
 
virtual SharedNetwork4Ptr getSharedNetwork4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &name) const
 Retrieves shared network by name. More...
 
virtual Subnet4Collection getSharedNetworkSubnets4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &shared_network_name) const
 Retrieves all subnets belonging to a specified shared network. More...
 
virtual Subnet4Ptr getSubnet4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &subnet_prefix) const
 Retrieves a single subnet by subnet_prefix. More...
 
virtual Subnet4Ptr getSubnet4 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const SubnetID &subnet_id) const
 Retrieves a single subnet by subnet identifier. More...
 
- Public Member Functions inherited from isc::cb::BaseConfigBackendPool< ConfigBackendDHCPv4 >
virtual ~BaseConfigBackendPool ()
 Virtual destructor. More...
 
void addBackend (ConfigBackendTypePtr backend)
 Adds a backend to the pool. More...
 
bool del (const std::string &db_type, const std::string &dbaccess, bool if_unusable)
 Deletes all backends of the given type from the pool. More...
 
void delAllBackends ()
 Deletes all backends from the pool. More...
 
void delAllBackends (const std::string &db_type)
 Deletes all backends of the given type from the pool. More...
 

Additional Inherited Members

- Public Types inherited from isc::cb::BaseConfigBackendPool< ConfigBackendDHCPv4 >
typedef boost::shared_ptr< ConfigBackendDHCPv4 > ConfigBackendTypePtr
 Shared pointer to the Configuration Backend used. More...
 
- Protected Member Functions inherited from isc::cb::BaseConfigBackendPool< ConfigBackendDHCPv4 >
ReturnValue createUpdateDeleteBackendProperty (ReturnValue(ConfigBackendDHCPv4::*MethodPointer)(FnPtrArgs...), const db::BackendSelector &backend_selector, Args...input)
 Add, update or delete property from the backend. More...
 
ReturnValue createUpdateDeleteProperty (ReturnValue(ConfigBackendDHCPv4::*MethodPointer)(const db::ServerSelector &, FnPtrArgs...), const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, Args...input)
 Add, update or delete property from the backend. More...
 
void getAllBackendPropertiesConst (PropertyCollectionType(ConfigBackendDHCPv4::*MethodPointer)() const, const db::BackendSelector &backend_selector, PropertyCollectionType &properties) const
 Get all configuration properties from the backend. More...
 
void getAllPropertiesConst (PropertyCollectionType(ConfigBackendDHCPv4::*MethodPointer)(const db::ServerSelector &) const, const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, PropertyCollectionType &properties) const
 Retrieve all configuration properties from the pool. More...
 
void getBackendPropertyPtrConst (PropertyType(ConfigBackendDHCPv4::*MethodPointer)(FnPtrArgs...) const, const db::BackendSelector &backend_selector, PropertyType &property, Args...input) const
 Retrieve a single configuration property from the backend. More...
 
void getMultiplePropertiesConst (PropertyCollectionType(ConfigBackendDHCPv4::*MethodPointer)(const db::ServerSelector &, FnPtrArgs...) const, const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, PropertyCollectionType &properties, Args...input) const
 Retrieve multiple configuration properties from the pool. More...
 
void getPropertyPtrConst (PropertyType(ConfigBackendDHCPv4::*MethodPointer)(const db::ServerSelector &, FnPtrArgs...) const, const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, PropertyType &property, Args...input) const
 Retrieve a single configuration property from the pool. More...
 
std::list< ConfigBackendTypePtrselectBackends (const db::BackendSelector &backend_selector) const
 Selects existing backends matching the selector. More...
 
- Protected Attributes inherited from isc::cb::BaseConfigBackendPool< ConfigBackendDHCPv4 >
std::list< ConfigBackendTypePtrbackends_
 Holds configuration backends belonging to the pool. More...
 

Detailed Description

Implementation of the Configuration Backend Pool for DHCPv4.

All POSIX times specified in the methods belonging to this class must be local times.

Definition at line 32 of file config_backend_pool_dhcp4.h.

Member Function Documentation

void isc::dhcp::ConfigBackendPoolDHCPv4::createUpdateGlobalParameter4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const data::StampedValuePtr value 
)
virtual

Creates or updates global string parameter.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
valueValue of the global parameter.

Definition at line 304 of file config_backend_pool_dhcp4.cc.

void isc::dhcp::ConfigBackendPoolDHCPv4::createUpdateOption4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const OptionDescriptorPtr option 
)
virtual

Creates or updates global option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
optionOption to be added or updated.

Definition at line 262 of file config_backend_pool_dhcp4.cc.

void isc::dhcp::ConfigBackendPoolDHCPv4::createUpdateOption4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  shared_network_name,
const OptionDescriptorPtr option 
)
virtual

Creates or updates shared network level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
shared_network_nameName of a shared network to which option belongs.
optionOption to be added or updated.

Definition at line 271 of file config_backend_pool_dhcp4.cc.

void isc::dhcp::ConfigBackendPoolDHCPv4::createUpdateOption4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const SubnetID subnet_id,
const OptionDescriptorPtr option 
)
virtual

Creates or updates subnet level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_idIdentifier of a subnet to which option belongs.
optionOption to be added or updated.

Definition at line 282 of file config_backend_pool_dhcp4.cc.

void isc::dhcp::ConfigBackendPoolDHCPv4::createUpdateOption4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const asiolink::IOAddress pool_start_address,
const asiolink::IOAddress pool_end_address,
const OptionDescriptorPtr option 
)
virtual

Creates or updates pool level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
pool_start_addressLower bound address of the pool to which the option belongs.
pool_end_addressUpper bound address of the pool to which the option belongs.
optionOption to be added or updated.

Definition at line 292 of file config_backend_pool_dhcp4.cc.

void isc::dhcp::ConfigBackendPoolDHCPv4::createUpdateOptionDef4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const OptionDefinitionPtr option_def 
)
virtual

Creates or updates an option definition.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
option_defOption definition to be added or updated.

Definition at line 253 of file config_backend_pool_dhcp4.cc.

void isc::dhcp::ConfigBackendPoolDHCPv4::createUpdateServer4 ( const db::BackendSelector backend_selector,
const db::ServerPtr server 
)
virtual

Creates or updates a server.

Parameters
backend_selectorBackend selector.
serverInstance of the server to be stored.

Definition at line 313 of file config_backend_pool_dhcp4.cc.

void isc::dhcp::ConfigBackendPoolDHCPv4::createUpdateSharedNetwork4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const SharedNetwork4Ptr shared_network 
)
virtual

Creates or updates a shared network.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
shared_networkShared network to be added or updated.

Definition at line 244 of file config_backend_pool_dhcp4.cc.

void isc::dhcp::ConfigBackendPoolDHCPv4::createUpdateSubnet4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const Subnet4Ptr subnet 
)
virtual

Creates or updates a subnet.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnetSubnet to be added or updated.

Definition at line 235 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteAllGlobalParameters4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
)
virtual

Deletes all global parameters.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Number of deleted global parameters.

Definition at line 443 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteAllOptionDefs4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
)
virtual

Deletes all option definitions.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Number of deleted option definitions.

Definition at line 381 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteAllServers4 ( const db::BackendSelector backend_selector)
virtual

Deletes all servers from the backend except the logical server 'all'.

Parameters
backend_selectorBackend selector.
Returns
Number of deleted servers.

Definition at line 459 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteAllSharedNetworks4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
)
virtual

Deletes all shared networks.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Number of deleted shared networks.

Definition at line 364 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteAllSubnets4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
)
virtual

Deletes all subnets.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Number of deleted subnets.

Definition at line 339 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteGlobalParameter4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  name 
)
virtual

Deletes global parameter.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
nameName of the global parameter to be deleted.
Returns
Number of deleted global parameters.

Definition at line 434 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteOption4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes global option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
codeCode of the option to be deleted.
spaceOption space of the option to be deleted.
Returns
Number of deleted options.

Definition at line 388 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteOption4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  shared_network_name,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes shared network level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
shared_network_nameName of the shared network which option belongs to.
codeCode of the option to be deleted.
spaceOption space of the option to be deleted.

Definition at line 398 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteOption4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const SubnetID subnet_id,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes subnet level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_idIdentifier of the subnet to which deleted option belongs.
codeCode of the deleted option.
spaceOption space of the deleted option.
Returns
Number of deleted options.

Definition at line 410 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteOption4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const asiolink::IOAddress pool_start_address,
const asiolink::IOAddress pool_end_address,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes pool level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
pool_start_addressLower bound address of the pool to which deleted option belongs.
pool_end_addressUpper bound address of the pool to which the deleted option belongs.
codeCode of the deleted option.
spaceOption space of the deleted option.
Returns
Number of deleted options.

Definition at line 421 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteOptionDef4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes option definition.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
codeCode of the option to be deleted.
spaceOption space of the option to be deleted.
Returns
Number of deleted option definitions.

Definition at line 371 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteServer4 ( const db::BackendSelector backend_selector,
const data::ServerTag server_tag 
)
virtual

Deletes a server from the backend.

Parameters
backend_selectorBackend selector.
server_tagTag of the server to be deleted.
Returns
Number of deleted servers.

Definition at line 451 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteSharedNetwork4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  name 
)
virtual

Deletes shared network by name.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
nameName of the shared network to be deleted.
Returns
Number of deleted shared networks.

Definition at line 355 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteSharedNetworkSubnets4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  shared_network_name 
)
virtual

Deletes all subnets belonging to a specified shared network.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
shared_network_nameName of the shared network for which the subnets should be deleted.
Returns
Number of deleted subnets.

Definition at line 346 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteSubnet4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  subnet_prefix 
)
virtual

Deletes subnet by prefix.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_prefixPrefix of the subnet to be deleted.
Returns
Number of deleted subnets.

Definition at line 321 of file config_backend_pool_dhcp4.cc.

uint64_t isc::dhcp::ConfigBackendPoolDHCPv4::deleteSubnet4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const SubnetID subnet_id 
)
virtual

Deletes subnet by identifier.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_idIdentifier of the subnet to be deleted.
Returns
Number of deleted subnets.

Definition at line 330 of file config_backend_pool_dhcp4.cc.

StampedValueCollection isc::dhcp::ConfigBackendPoolDHCPv4::getAllGlobalParameters4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all global parameters.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.

Definition at line 182 of file config_backend_pool_dhcp4.cc.

OptionDefContainer isc::dhcp::ConfigBackendPoolDHCPv4::getAllOptionDefs4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all option definitions.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Collection of option definitions or empty collection if no option definition found.

Definition at line 117 of file config_backend_pool_dhcp4.cc.

OptionContainer isc::dhcp::ConfigBackendPoolDHCPv4::getAllOptions4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all global options.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Collection of global options or empty collection if no option found.

Definition at line 150 of file config_backend_pool_dhcp4.cc.

ServerCollection isc::dhcp::ConfigBackendPoolDHCPv4::getAllServers4 ( const db::BackendSelector backend_selector) const
virtual

Retrieves all servers from the particular backend.

This method returns the list of servers excluding the logical server 'all'.

Parameters
backend_selectorBackend selector.
Returns
Collection of servers from the backend.

Definition at line 217 of file config_backend_pool_dhcp4.cc.

SharedNetwork4Collection isc::dhcp::ConfigBackendPoolDHCPv4::getAllSharedNetworks4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all shared networks.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Collection of shared network or empty collection if no shared network found.

Definition at line 83 of file config_backend_pool_dhcp4.cc.

Subnet4Collection isc::dhcp::ConfigBackendPoolDHCPv4::getAllSubnets4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all subnets.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Collection of subnets or empty collection if no subnet found.

Definition at line 40 of file config_backend_pool_dhcp4.cc.

StampedValuePtr isc::dhcp::ConfigBackendPoolDHCPv4::getGlobalParameter4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  name 
) const
virtual

Retrieves global parameter value.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
nameName of the global parameter to be retrieved.
Returns
Value of the global parameter.

Definition at line 171 of file config_backend_pool_dhcp4.cc.

StampedValueCollection isc::dhcp::ConfigBackendPoolDHCPv4::getModifiedGlobalParameters4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves global parameters modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeLower bound subnet modification time.
Returns
Collection of modified global parameters.

Definition at line 193 of file config_backend_pool_dhcp4.cc.

OptionDefContainer isc::dhcp::ConfigBackendPoolDHCPv4::getModifiedOptionDefs4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves option definitions modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeLower bound option definition modification time.
Returns
Collection of option definitions or empty collection if no option definition found.

Definition at line 127 of file config_backend_pool_dhcp4.cc.

OptionContainer isc::dhcp::ConfigBackendPoolDHCPv4::getModifiedOptions4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves option modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeLower bound option modification time.
Returns
Collection of global options or empty collection if no option found.

Definition at line 160 of file config_backend_pool_dhcp4.cc.

SharedNetwork4Collection isc::dhcp::ConfigBackendPoolDHCPv4::getModifiedSharedNetworks4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves shared networks modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeLower bound shared network modification time.
Returns
Collection of shared network or empty collection if no shared network found.

Definition at line 94 of file config_backend_pool_dhcp4.cc.

Subnet4Collection isc::dhcp::ConfigBackendPoolDHCPv4::getModifiedSubnets4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves subnets modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeLower bound subnet modification time.
Returns
Collection of subnets or empty collection if no subnet found.

Definition at line 50 of file config_backend_pool_dhcp4.cc.

OptionDescriptorPtr isc::dhcp::ConfigBackendPoolDHCPv4::getOption4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const uint16_t  code,
const std::string &  space 
) const
virtual

Retrieves single option by code and space.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
codeOption code.
spaceOption space.
Returns
Pointer to the retrieved option descriptor or null if no option was found.

Definition at line 138 of file config_backend_pool_dhcp4.cc.

OptionDefinitionPtr isc::dhcp::ConfigBackendPoolDHCPv4::getOptionDef4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const uint16_t  code,
const std::string &  space 
) const
virtual

Retrieves single option definition by code and space.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
codeCode of the option to be retrieved.
spaceOption space of the option to be retrieved.
Returns
Pointer to the option definition or NULL if not found.

Definition at line 105 of file config_backend_pool_dhcp4.cc.

AuditEntryCollection isc::dhcp::ConfigBackendPoolDHCPv4::getRecentAuditEntries ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time,
const uint64_t &  modification_id 
) const
virtual

Retrieves the most recent audit entries.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeTimestamp being a lower limit for the returned result set, i.e. entries later than specified time are returned.
modification_idIdentifier being a lower limit for the returned result set, used when two (or more) entries have the same modification_time.
Returns
Collection of audit entries.

Definition at line 205 of file config_backend_pool_dhcp4.cc.

ServerPtr isc::dhcp::ConfigBackendPoolDHCPv4::getServer4 ( const db::BackendSelector backend_selector,
const data::ServerTag server_tag 
) const
virtual

Retrieves a server from the particular backend.

Parameters
backend_selectorBackend selector.
server_tagTag of the server to be retrieved.
Returns
Pointer to the server instance or null pointer if no server with the particular tag was found.

Definition at line 225 of file config_backend_pool_dhcp4.cc.

SharedNetwork4Ptr isc::dhcp::ConfigBackendPoolDHCPv4::getSharedNetwork4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  name 
) const
virtual

Retrieves shared network by name.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
nameName of the shared network to be retrieved.
Returns
Pointer to the shared network or NULL if not found.

Definition at line 72 of file config_backend_pool_dhcp4.cc.

Subnet4Collection isc::dhcp::ConfigBackendPoolDHCPv4::getSharedNetworkSubnets4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  shared_network_name 
) const
virtual

Retrieves all subnets belonging to a specified shared network.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
shared_network_nameName of the shared network for which the subnets should be retrieved.
Returns
Collection of subnets or empty collection if no subnet found.

Definition at line 61 of file config_backend_pool_dhcp4.cc.

Subnet4Ptr isc::dhcp::ConfigBackendPoolDHCPv4::getSubnet4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  subnet_prefix 
) const
virtual

Retrieves a single subnet by subnet_prefix.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_prefixPrefix of the subnet to be retrieved.
Returns
Pointer to the retrieved subnet or NULL if not found.

Definition at line 18 of file config_backend_pool_dhcp4.cc.

Subnet4Ptr isc::dhcp::ConfigBackendPoolDHCPv4::getSubnet4 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const SubnetID subnet_id 
) const
virtual

Retrieves a single subnet by subnet identifier.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_idIdentifier of a subnet to be retrieved.
Returns
Pointer to the retrieved subnet or NULL if not found.

Definition at line 29 of file config_backend_pool_dhcp4.cc.


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