Hazelcast C++ Client
Public Member Functions | Static Public Attributes | List of all members
hazelcast::client::Address Class Reference

IP Address. More...

#include <Address.h>

+ Inheritance diagram for hazelcast::client::Address:

Public Member Functions

 Address (const std::string &hostname, int port, unsigned long scopeId)
 
 Address ()
 Constructor.
 
 Address (const std::string &url, int port)
 Constructor.
 
bool operator== (const Address &address) const
 comparison operator More...
 
bool operator!= (const Address &address) const
 comparison operator More...
 
int getPort () const
 
bool isIpV4 () const
 
const std::string & getHost () const
 
virtual int getFactoryId () const
 
virtual int getClassId () const
 
virtual void writeData (serialization::ObjectDataOutput &writer) const
 Defines how this class will be written. More...
 
virtual void readData (serialization::ObjectDataInput &reader)
 Defines how this class will be read. More...
 
unsigned long getScopeId () const
 
bool operator< (const Address &rhs) const
 
std::string toString () const
 
- Public Member Functions inherited from hazelcast::client::serialization::IdentifiedDataSerializable
virtual ~IdentifiedDataSerializable ()
 Destructor.
 

Static Public Attributes

static const int ID = cluster::impl::ADDRESS
 

Detailed Description

IP Address.

Member Function Documentation

◆ getClassId()

int hazelcast::client::Address::getClassId ( ) const
virtual

◆ getFactoryId()

int hazelcast::client::Address::getFactoryId ( ) const
virtual

◆ getHost()

const std::string & hazelcast::client::Address::getHost ( ) const
Returns
host address as string

◆ getPort()

int hazelcast::client::Address::getPort ( ) const
Returns
port number.

◆ isIpV4()

bool hazelcast::client::Address::isIpV4 ( ) const
Returns
true if the address is ip V4 address, false otherwise.

◆ operator!=()

bool hazelcast::client::Address::operator!= ( const Address address) const

comparison operator

Parameters
addressto be compared.

◆ operator==()

bool hazelcast::client::Address::operator== ( const Address address) const

comparison operator

Parameters
addressto be compared.

◆ readData()

void hazelcast::client::Address::readData ( serialization::ObjectDataInput reader)
virtual

Defines how this class will be read.

Parameters
readerObjectDataInput

Implements hazelcast::client::serialization::IdentifiedDataSerializable.

◆ writeData()

void hazelcast::client::Address::writeData ( serialization::ObjectDataOutput writer) const
virtual

Defines how this class will be written.

Parameters
writerObjectDataOutput

Implements hazelcast::client::serialization::IdentifiedDataSerializable.


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