![]() |
Hazelcast C++ Client
Hazelcast C++ Client Library
|
hz_cluster member class. More...
#include <member.h>
Classes | |
struct | version |
Public Types | |
enum | member_attribute_operation_type { PUT = 1 , REMOVE = 2 } |
PUT even type representing an addition of an attribute REMOVE event type representing a deletion of an attribute. | |
Public Member Functions | |
member (address member_address, boost::uuids::uuid uuid, bool lite, std::unordered_map< std::string, std::string > attr, std::unordered_map< endpoint_qualifier, address > address_map, version v={ 0, 0, 0 }) | |
member (address member_address) | |
member (boost::uuids::uuid uuid) | |
bool | is_lite_member () const |
Lite member is does not hold data. More... | |
const address & | get_address () const |
Returns the socket address of this member. More... | |
boost::uuids::uuid | get_uuid () const |
Returns UUID of this member. More... | |
const std::unordered_map< std::string, std::string > & | get_attributes () const |
const std::string * | get_attribute (const std::string &key) const |
Returns the value of the specified key for this member or default constructed value if value is undefined. More... | |
version | get_version () const |
Returns the Hazelcast codebase version of this member; this may or may not be different from the version reported by cluster version, for example when a node with a different codebase version is added to an existing cluster. More... | |
bool | lookup_attribute (const std::string &key) const |
check if an attribute is defined for given key. More... | |
const std::unordered_map< endpoint_qualifier, address > & | address_map () const |
bool | operator< (const member &rhs) const |
Friends | |
bool HAZELCAST_API | operator== (const member &lhs, const member &rhs) |
hz_cluster member class.
The default implementation
const address & hazelcast::client::member::get_address | ( | ) | const |
Returns the socket address of this member.
Definition at line 88 of file cluster.cpp.
const std::string * hazelcast::client::member::get_attribute | ( | const std::string & | key | ) | const |
Returns the value of the specified key for this member or default constructed value if value is undefined.
AttributeType | type template for attribute type |
key | The key to lookup. |
Definition at line 128 of file cluster.cpp.
boost::uuids::uuid hazelcast::client::member::get_uuid | ( | ) | const |
member::version hazelcast::client::member::get_version | ( | ) | const |
Returns the Hazelcast codebase version of this member; this may or may not be different from the version reported by cluster version, for example when a node with a different codebase version is added to an existing cluster.
Definition at line 140 of file cluster.cpp.
bool hazelcast::client::member::is_lite_member | ( | ) | const |
Lite member is does not hold data.
Definition at line 100 of file cluster.cpp.
bool hazelcast::client::member::lookup_attribute | ( | const std::string & | key | ) | const |
check if an attribute is defined for given key.
key | for the attribute |
Definition at line 146 of file cluster.cpp.