mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 06:25:34 +00:00
[#1163] Checkpoint: updated API
This commit is contained in:
@@ -272,6 +272,46 @@ public:
|
||||
uint64_t lower_host_id,
|
||||
const HostPageSize& page_size) const;
|
||||
|
||||
/// @brief Returns range of hosts.
|
||||
///
|
||||
/// This method implements paged browsing of host databases. The
|
||||
/// parameters specify a page size, an index in sources and the
|
||||
/// starting host id of the range. If not zero this host id is
|
||||
/// excluded from the returned range. When a source is exhausted
|
||||
/// the index is updated. There is no guarantee about the order
|
||||
/// of returned host reservations, only the sources and
|
||||
/// reservations from the same source are ordered.
|
||||
///
|
||||
/// @param source_index Index of the source (unused).
|
||||
/// @param lower_host_id Host identifier used as lower bound for the
|
||||
/// returned range.
|
||||
/// @param page_size maximum size of the page returned.
|
||||
///
|
||||
/// @return Collection of const @c Host objects (may be empty).
|
||||
virtual ConstHostCollection getPage4(size_t& source_index,
|
||||
uint64_t lower_host_id,
|
||||
const HostPageSize& page_size) const;
|
||||
|
||||
/// @brief Returns range of hosts.
|
||||
///
|
||||
/// This method implements paged browsing of host databases. The
|
||||
/// parameters specify a page size, an index in sources and the
|
||||
/// starting host id of the range. If not zero this host id is
|
||||
/// excluded from the returned range. When a source is exhausted
|
||||
/// the index is updated. There is no guarantee about the order
|
||||
/// of returned host reservations, only the sources and
|
||||
/// reservations from the same source are ordered.
|
||||
///
|
||||
/// @param source_index Index of the source (unused).
|
||||
/// @param lower_host_id Host identifier used as lower bound for the
|
||||
/// returned range.
|
||||
/// @param page_size maximum size of the page returned.
|
||||
///
|
||||
/// @return Collection of const @c Host objects (may be empty).
|
||||
virtual ConstHostCollection getPage6(size_t& source_index,
|
||||
uint64_t lower_host_id,
|
||||
const HostPageSize& page_size) const;
|
||||
|
||||
/// @brief Returns a collection of hosts using the specified IPv4 address.
|
||||
///
|
||||
/// This method may return multiple @c Host objects if they are connected
|
||||
|
Reference in New Issue
Block a user