7 #ifndef SERVER_SELECTOR_H
8 #define SERVER_SELECTOR_H
98 std::set<data::ServerTag>
getTags()
const {
106 return (tags_.empty());
134 return (tags_.size() > 1);
152 explicit ServerSelector(
const std::set<data::ServerTag>& server_tags);
158 std::set<data::ServerTag> tags_;
Type
Type of the server selection.
static ServerSelector ONE(const std::string &server_tag)
Factory returning selector of one server.
bool amAny() const
Convenience method checking if the server selector is "any".
Type getType() const
Returns type of the selector.
bool amUnassigned() const
Convenience method checking if the server selector is "unassigned".
bool amAll() const
Convenience method checking if the server selector is "all".
Server selector for associating objects in a database with specific servers.
static ServerSelector MULTIPLE(const std::set< std::string > &server_tags)
Factory returning "multiple servers" selector.
static ServerSelector ANY()
Factory returning "any server" selector.
Defines the logger used by the top-level component of kea-dhcp-ddns.
bool hasNoTags() const
Convenience method checking if the server selector has no tags.
static ServerSelector UNASSIGNED()
Factory returning "unassigned" server selector.
static ServerSelector ALL()
Factory returning "all servers" selector.
bool hasMultipleTags() const
Convenience method checking if the server selector has multiple tags.
std::set< data::ServerTag > getTags() const
Returns tags associated with the selector.