Hazelcast C++ Client
 All Classes Functions Variables Enumerations Pages
Public Types | Public Member Functions | Friends | List of all members
hazelcast::client::Member Class Reference

Cluster member class. More...

#include <Member.h>

Public Types

enum  MemberAttributeOperationType { 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 (const Address &address, const std::string &uuid, bool lite, const std::map< std::string, std::string > &attr)
 
bool operator== (const Member &) const
 comparison operation
 
bool isLiteMember () const
 Lite member is does not hold data. More...
 
const AddressgetAddress () 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...
 

Friends

class connection::ClusterListenerThread
 

Detailed Description

Cluster member class.

The default implementation

See Also
Cluster
MembershipListener

Member Function Documentation

const Address& hazelcast::client::Member::getAddress ( ) const

Returns the socket address of this member.

Returns
socket address of this member
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
AttributeTypetype template for attribute type
Parameters
keyThe key to lookup.
Returns
The value for this members key.
const std::string& hazelcast::client::Member::getUuid ( ) const

Returns UUID of this member.

Returns
UUID of this member.
bool hazelcast::client::Member::isLiteMember ( ) const

Lite member is does not hold data.

Returns
true if member is lite.
bool hazelcast::client::Member::lookupAttribute ( const std::string &  key) const

check if an attribute is defined for given key.

Template Parameters
keyfor the attribute
Returns
true if attribute is defined.

The documentation for this class was generated from the following file: