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_;
Server selector for associating objects in a database with specific servers.
std::set< data::ServerTag > getTags() const
Returns tags associated with the selector.
bool hasNoTags() const
Convenience method checking if the server selector has no tags.
static ServerSelector MULTIPLE(const std::set< std::string > &server_tags)
Factory returning "multiple servers" selector.
bool amUnassigned() const
Convenience method checking if the server selector is "unassigned".
static ServerSelector ANY()
Factory returning "any server" selector.
static ServerSelector ALL()
Factory returning "all servers" selector.
bool hasMultipleTags() const
Convenience method checking if the server selector has multiple tags.
static ServerSelector ONE(const std::string &server_tag)
Factory returning selector of one server.
Type
Type of the server selection.
bool amAll() const
Convenience method checking if the server selector is "all".
bool amAny() const
Convenience method checking if the server selector is "any".
Type getType() const
Returns type of the selector.
static ServerSelector UNASSIGNED()
Factory returning "unassigned" server selector.
Defines the logger used by the top-level component of kea-lfc.