hz_cluster member class.
More...
#include <member.h>
|
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.
|
|
|
| member (address address, boost::uuids::uuid uuid, bool lite, std::unordered_map< std::string, std::string > attr) |
|
| member (address member_address) |
|
| member (boost::uuids::uuid uuid) |
|
bool | operator== (const member &) const |
| comparison operation
|
|
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...
|
|
bool | lookup_attribute (const std::string &key) const |
| check if an attribute is defined for given key. More...
|
|
bool | operator< (const member &rhs) const |
|
hz_cluster member class.
The default implementation
- See also
- Cluster
-
MembershipListener
◆ get_address()
const address & hazelcast::client::member::get_address |
( |
| ) |
const |
Returns the socket address of this member.
- Returns
- socket address of this member
◆ get_attribute()
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.
- Template Parameters
-
AttributeType | type template for attribute type |
- Parameters
-
- Returns
- The value for this members key.
◆ get_uuid()
boost::uuids::uuid hazelcast::client::member::get_uuid |
( |
| ) |
const |
Returns UUID of this member.
- Returns
- UUID of this member.
◆ is_lite_member()
bool hazelcast::client::member::is_lite_member |
( |
| ) |
const |
Lite member is does not hold data.
- Returns
- true if member is lite.
◆ lookup_attribute()
bool hazelcast::client::member::lookup_attribute |
( |
const std::string & |
key | ) |
const |
check if an attribute is defined for given key.
- Template Parameters
-
- Returns
- true if attribute is defined.
The documentation for this class was generated from the following files:
- hazelcast/include/hazelcast/client/member.h
- hazelcast/src/hazelcast/client/cluster.cpp