Kea
1.9.9-git
|
PostgreSQL Host Context. More...
Public Member Functions | |
PgSqlHostContext (const DatabaseConnection::ParameterMap ¶meters, IOServiceAccessorPtr io_service_accessor, db::DbCallback db_reconnect_callback) | |
Constructor. More... | |
Public Attributes | |
PgSqlConnection | conn_ |
PostgreSQL connection. More... | |
boost::shared_ptr< PgSqlHostIPv6Exchange > | 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< PgSqlHostWithOptionsExchange > | host_ipv4_exchange_ |
The exchange objects are used for transfer of data to/from the database. More... | |
boost::shared_ptr< PgSqlHostIPv6Exchange > | 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< PgSqlIPv6ReservationExchange > | host_ipv6_reservation_exchange_ |
Pointer to an object representing an exchange which can be used to insert new IPv6 reservation. More... | |
boost::shared_ptr< PgSqlOptionExchange > | 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... | |
PostgreSQL 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 1310 of file pgsql_host_data_source.cc.
isc::dhcp::PgSqlHostContext::PgSqlHostContext | ( | const DatabaseConnection::ParameterMap & | parameters, |
IOServiceAccessorPtr | io_service_accessor, | ||
db::DbCallback | db_reconnect_callback | ||
) |
Constructor.
parameters | See PgSqlHostMgr constructor. |
io_service_accessor | The IOService accessor function. |
db_reconnect_callback | The connection recovery callback. |
Definition at line 2174 of file pgsql_host_data_source.cc.
PgSqlConnection isc::dhcp::PgSqlHostContext::conn_ |
PostgreSQL connection.
Definition at line 1350 of file pgsql_host_data_source.cc.
boost::shared_ptr<PgSqlHostIPv6Exchange> isc::dhcp::PgSqlHostContext::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 1338 of file pgsql_host_data_source.cc.
boost::shared_ptr<PgSqlHostWithOptionsExchange> isc::dhcp::PgSqlHostContext::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 the object representing an exchange which can be used to retrieve hosts and DHCPv4 options.
Definition at line 1329 of file pgsql_host_data_source.cc.
boost::shared_ptr<PgSqlHostIPv6Exchange> isc::dhcp::PgSqlHostContext::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 1333 of file pgsql_host_data_source.cc.
boost::shared_ptr<PgSqlIPv6ReservationExchange> isc::dhcp::PgSqlHostContext::host_ipv6_reservation_exchange_ |
Pointer to an object representing an exchange which can be used to insert new IPv6 reservation.
Definition at line 1342 of file pgsql_host_data_source.cc.
boost::shared_ptr<PgSqlOptionExchange> isc::dhcp::PgSqlHostContext::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 1347 of file pgsql_host_data_source.cc.
bool isc::dhcp::PgSqlHostContext::is_readonly_ |
Indicates if the database is opened in read only mode.
Definition at line 1353 of file pgsql_host_data_source.cc.