Cluster member class.
More...
#include <Member.h>
|
| enum | MemberAttributeOperationType { PUT = 1,
REMOVE = 2
} |
| | PUT even type representing an addition of an attribute REMOVE event type representing a deletion of an attribute.
|
| |
|
|
| Member (const Address &address, const std::string &uuid, bool lite, const std::map< std::string, std::string > &attr) |
| |
|
| Member (const Address &memberAddress) |
| |
|
| Member (const std::string &uuid) |
| |
|
bool | operator== (const Member &) const |
| | comparison operation
|
| |
| bool | isLiteMember () const |
| | Lite member is does not hold data. More...
|
| |
| const Address & | getAddress () const |
| | Returns the socket address of this member. More...
|
| |
| const std::string & | getUuid () const |
| | Returns UUID of this member. More...
|
| |
|
const std::map< std::string, std::string > & | getAttributes () const |
| |
| const std::string * | getAttribute (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 | lookupAttribute (const std::string &key) const |
| | check if an attribute is defined for given key. More...
|
| |
|
bool | operator< (const Member &rhs) const |
| |
|
void | updateAttribute (MemberAttributeOperationType operationType, const std::string &key, std::auto_ptr< std::string > &value) |
| |
Cluster member class.
The default implementation
- See also
- Cluster
-
MembershipListener
◆ getAddress()
| const Address& hazelcast::client::Member::getAddress |
( |
| ) |
const |
Returns the socket address of this member.
- Returns
- socket address of this member
◆ getAttribute()
| const std::string* hazelcast::client::Member::getAttribute |
( |
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.
◆ getUuid()
| const std::string& hazelcast::client::Member::getUuid |
( |
| ) |
const |
Returns UUID of this member.
- Returns
- UUID of this member.
◆ isLiteMember()
| bool hazelcast::client::Member::isLiteMember |
( |
| ) |
const |
Lite member is does not hold data.
- Returns
- true if member is lite.
◆ lookupAttribute()
| bool hazelcast::client::Member::lookupAttribute |
( |
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 file:
- hazelcast/include/hazelcast/client/Member.h