Kea
1.9.9-git
|
Public Member Functions | |
MySqlHostContext (const DatabaseConnection::ParameterMap ¶meters, IOServiceAccessorPtr io_service_accessor, db::DbCallback db_reconnect_callback) | |
Constructor. More... | |
Public Attributes | |
MySqlConnection | conn_ |
MySQL connection. More... | |
boost::shared_ptr< MySqlHostIPv6Exchange > | host_ipv46_exchange_ |
Pointer to an object representing an exchange which can be used to retrieve hosts, DHCPv4 and DHCPv6 options, and IPv6 reservations using a single query. More... | |
boost::shared_ptr< MySqlHostWithOptionsExchange > | host_ipv4_exchange_ |
The exchange objects are used for transfer of data to/from the database. More... | |
boost::shared_ptr< MySqlHostIPv6Exchange > | host_ipv6_exchange_ |
Pointer to an object representing an exchange which can be used to retrieve hosts, DHCPv6 options and IPv6 reservations. More... | |
boost::shared_ptr< MySqlIPv6ReservationExchange > | host_ipv6_reservation_exchange_ |
Pointer to an object representing an exchange which can be used to insert new IPv6 reservation. More... | |
boost::shared_ptr< MySqlOptionExchange > | host_option_exchange_ |
Pointer to an object representing an exchange which can be used to insert DHCPv4 or DHCPv6 option into dhcp4_options or dhcp6_options table. More... | |
bool | is_readonly_ |
Indicates if the database is opened in read only mode. More... | |
MySQL Host Context.
This class stores the thread context for the manager pool. The class is needed by all get/update/delete functions which must use one or more exchanges to perform database operations. Each context provides a set of such exchanges for each thread. The context instances are lazy initialized by the requesting thread by using the manager's createContext function and are destroyed when the manager's pool instance is destroyed.
Definition at line 1949 of file mysql_host_data_source.cc.
isc::dhcp::MySqlHostContext::MySqlHostContext | ( | const DatabaseConnection::ParameterMap & | parameters, |
IOServiceAccessorPtr | io_service_accessor, | ||
db::DbCallback | db_reconnect_callback | ||
) |
Constructor.
parameters | See MySqlHostMgr constructor. |
io_service_accessor | The IOService accessor function. |
db_reconnect_callback | The connection recovery callback. |
Definition at line 2734 of file mysql_host_data_source.cc.
MySqlConnection isc::dhcp::MySqlHostContext::conn_ |
MySQL connection.
Definition at line 1989 of file mysql_host_data_source.cc.
boost::shared_ptr<MySqlHostIPv6Exchange> isc::dhcp::MySqlHostContext::host_ipv46_exchange_ |
Pointer to an object representing an exchange which can be used to retrieve hosts, DHCPv4 and DHCPv6 options, and IPv6 reservations using a single query.
Definition at line 1977 of file mysql_host_data_source.cc.
boost::shared_ptr<MySqlHostWithOptionsExchange> isc::dhcp::MySqlHostContext::host_ipv4_exchange_ |
The exchange objects are used for transfer of data to/from the database.
They are pointed-to objects as the contents may change in "const" calls, while the rest of this object does not. (At alternative would be to declare them as "mutable".) Pointer to an object representing an exchange which can be used to retrieve hosts and DHCPv4 options.
Definition at line 1968 of file mysql_host_data_source.cc.
boost::shared_ptr<MySqlHostIPv6Exchange> isc::dhcp::MySqlHostContext::host_ipv6_exchange_ |
Pointer to an object representing an exchange which can be used to retrieve hosts, DHCPv6 options and IPv6 reservations.
Definition at line 1972 of file mysql_host_data_source.cc.
boost::shared_ptr<MySqlIPv6ReservationExchange> isc::dhcp::MySqlHostContext::host_ipv6_reservation_exchange_ |
Pointer to an object representing an exchange which can be used to insert new IPv6 reservation.
Definition at line 1981 of file mysql_host_data_source.cc.
boost::shared_ptr<MySqlOptionExchange> isc::dhcp::MySqlHostContext::host_option_exchange_ |
Pointer to an object representing an exchange which can be used to insert DHCPv4 or DHCPv6 option into dhcp4_options or dhcp6_options table.
Definition at line 1986 of file mysql_host_data_source.cc.
bool isc::dhcp::MySqlHostContext::is_readonly_ |
Indicates if the database is opened in read only mode.
Definition at line 1992 of file mysql_host_data_source.cc.