18 #include <unordered_map>
22 #include "hazelcast/client/address.h"
23 #include <boost/uuid/uuid.hpp>
25 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
27 #pragma warning(disable: 4251)
30 namespace hazelcast {
namespace client {
33 std::string identifier;
41 struct HAZELCAST_API hash<hazelcast::client::endpoint_qualifier> {
74 member(
address member_address, boost::uuids::uuid uuid,
bool lite,
75 std::unordered_map<std::string, std::string> attr,
76 std::unordered_map<endpoint_qualifier, address> address_map);
80 member(boost::uuids::uuid uuid);
82 friend bool HAZELCAST_API operator==(
const member &lhs,
const member &rhs);
89 bool is_lite_member()
const;
96 const address &get_address()
const;
103 boost::uuids::uuid get_uuid()
const;
105 const std::unordered_map<std::string, std::string> &get_attributes()
const;
115 const std::string *get_attribute(
const std::string &key)
const;
123 bool lookup_attribute(
const std::string &key)
const;
125 const std::unordered_map<endpoint_qualifier, address> &address_map()
const;
127 bool operator<(
const member &rhs)
const;
131 boost::uuids::uuid uuid_;
133 std::unordered_map<std::string, std::string> attributes_;
134 std::unordered_map<endpoint_qualifier, address> address_map_;
137 std::ostream HAZELCAST_API &operator<<(std::ostream &out,
const member &
member);
143 struct HAZELCAST_API hash<hazelcast::client::member> {
148 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Represents an address of a client or member in the cluster.
member_attribute_operation_type
PUT even type representing an addition of an attribute REMOVE event type representing a deletion of a...