21 #ifndef HAZELCAST_MEMBER
22 #define HAZELCAST_MEMBER
25 #include "hazelcast/client/Address.h"
27 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
29 #pragma warning(disable: 4251) //for dll export
34 namespace connection {
35 class ClusterListenerThread;
46 friend class connection::ClusterListenerThread;
59 Member(
const Address &address,
const std::string &uuid,
bool lite,
60 const std::map<std::string, std::string> &attr);
67 bool operator==(
const Member &)
const;
74 bool isLiteMember()
const;
81 const Address &getAddress()
const;
88 const std::string &getUuid()
const;
90 const std::map<std::string, std::string> &getAttributes()
const;
100 const std::string *getAttribute(
const std::string &key)
const;
108 bool lookupAttribute(
const std::string &key)
const;
111 void setAttribute(
const std::string &key,
const std::string &value);
113 bool removeAttribute(
const std::string &key);
118 std::map<std::string, std::string> attributes;
121 std::ostream HAZELCAST_API &operator<<(std::ostream &out,
const Member &member);
125 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
130 #endif //HAZELCAST_MEMBER
IP Address.
Definition: Address.h:36
Cluster member class.
Definition: Member.h:44
MemberAttributeOperationType
PUT even type representing an addition of an attribute REMOVE event type representing a deletion of a...
Definition: Member.h:52