///
/// @param subnet_id subnet identfier.
/// @param addr specified address.
- /// @return true if deletion was successful, false otherwise.
+ /// @return true if deletion was successful, false if the host was not there.
+ /// @throw various exceptions in case of errors
virtual bool del(const SubnetID& subnet_id, const asiolink::IOAddress& addr) = 0;
/// @brief Attempts to delete a host by (subnet-id4, identifier, identifier-type)
/// @param identifier_begin Pointer to a beginning of a buffer containing
/// an identifier.
/// @param identifier_len Identifier length.
- /// @return true if deletion was successful, false otherwise.
+ /// @return true if deletion was successful, false if the host was not there.
+ /// @throw various exceptions in case of errors
virtual bool del4(const SubnetID& subnet_id,
const Host::IdentifierType& identifier_type,
const uint8_t* identifier_begin, const size_t identifier_len) = 0;
/// @param identifier_begin Pointer to a beginning of a buffer containing
/// an identifier.
/// @param identifier_len Identifier length.
- /// @return true if deletion was successful, false otherwise.
+ /// @return true if deletion was successful, false if the host was not there.
+ /// @throw various exceptions in case of errors
virtual bool del6(const SubnetID& subnet_id,
const Host::IdentifierType& identifier_type,
const uint8_t* identifier_begin, const size_t identifier_len) = 0;
-
/// @brief Return backend type
///
/// Returns the type of the backend (e.g. "mysql", "memfile" etc.)
///
/// @param subnet_id subnet identfier.
/// @param addr specified address.
- /// @return true if deletion was successful, false otherwise.
+ /// @return true if deletion was successful, false if the host was not there.
+ /// @throw various exceptions in case of errors
virtual bool del(const SubnetID& subnet_id, const asiolink::IOAddress& addr);
/// @brief Attempts to delete a host by (subnet4-id, identifier type, identifier)
///
/// @param subnet_id subnet identfier.
/// @param addr specified address.
- /// @return true if deletion was successful, false otherwise.
+ /// @return true if deletion was successful, false if the host was not there.
+ /// @throw various exceptions in case of errors
virtual bool del4(const SubnetID& subnet_id,
const Host::IdentifierType& identifier_type,
const uint8_t* identifier_begin, const size_t identifier_len);
///
/// @param subnet_id subnet identfier.
/// @param addr specified address.
- /// @return true if deletion was successful, false otherwise.
+ /// @return true if deletion was successful, false if the host was not there.
+ /// @throw various exceptions in case of errors
virtual bool del6(const SubnetID& subnet_id,
const Host::IdentifierType& identifier_type,
const uint8_t* identifier_begin, const size_t identifier_len);
///
/// @param subnet_id subnet identfier.
/// @param addr specified address.
- /// @return true if deletion was successful, false otherwise.
+ /// @return true if deletion was successful, false if the host was not there.
+ /// @throw various exceptions in case of errors
virtual bool del(const SubnetID& subnet_id, const asiolink::IOAddress& addr);
/// @brief Attempts to delete a host by (subnet4-id, identifier type, identifier)
///
/// @param subnet_id subnet identfier.
/// @param addr specified address.
- /// @return true if deletion was successful, false otherwise.
+ /// @return true if deletion was successful, false if the host was not there.
+ /// @throw various exceptions in case of errors
virtual bool del4(const SubnetID& subnet_id,
const Host::IdentifierType& identifier_type,
const uint8_t* identifier_begin, const size_t identifier_len);
///
/// @param subnet_id subnet identfier.
/// @param addr specified address.
- /// @return true if deletion was successful, false otherwise.
+ /// @return true if deletion was successful, false if the host was not there.
+ /// @throw various exceptions in case of errors
virtual bool del6(const SubnetID& subnet_id,
const Host::IdentifierType& identifier_type,
const uint8_t* identifier_begin, const size_t identifier_len);