7 #ifndef SERVER_SELECTOR_H 8 #define SERVER_SELECTOR_H 109 : type_(type), tags_() {
115 explicit ServerSelector(
const std::string& server_tag)
116 : type_(
Type::SUBSET), tags_() {
117 tags_.insert(server_tag);
123 explicit ServerSelector(
const std::set<std::string>& server_tags)
124 : type_(
Type::SUBSET), tags_(server_tags) {
131 std::set<std::string> tags_;
Type getType() const
Returns type of the selector.
static ServerSelector & ONE(const std::string &server_tag)
Factory returning selector of one server.
std::set< std::string > getTags() const
Returns tags associated with the selector.
static ServerSelector & MULTIPLE(const std::set< std::string > &server_tags)
Factory returning "multiple servers" selector.
Type
Type of the server selection.
Server selector for associating objects in a database with specific servers.
static ServerSelector & ALL()
Factory returning "all servers" selector.
Defines the logger used by the top-level component of kea-dhcp-ddns.
static ServerSelector & UNASSIGNED()
Factory returning "unassigned" server selector.
bool amUnassigned() const
Convenience method checking if the server selector is "unassigned".