MySQL 9.1.0
Source Code Documentation
Gcs_xcom_node_address Class Reference

Stores connection information associated with a node. More...

#include <gcs_xcom_group_member_information.h>

Public Member Functions

 Gcs_xcom_node_address (std::string member_address)
 Gcs_xcom_node_address constructor. More...
 
virtual ~Gcs_xcom_node_address ()
 
std::string & get_member_address ()
 Return address using the format ip:port. More...
 
std::string & get_member_ip ()
 Return the IP address. More...
 
xcom_port get_member_port ()
 Return the port number. More...
 
std::string * get_member_representation () const
 Return an internal representation. More...
 
bool is_valid () const
 A Gcs_xcom_node_address holds the representation IP:PORT of an XCom node. More...
 

Private Attributes

std::string m_member_address
 
std::string m_member_ip
 
xcom_port m_member_port
 

Detailed Description

Stores connection information associated with a node.

Constructor & Destructor Documentation

◆ Gcs_xcom_node_address()

Gcs_xcom_node_address::Gcs_xcom_node_address ( std::string  member_address)
explicit

Gcs_xcom_node_address constructor.

◆ ~Gcs_xcom_node_address()

Gcs_xcom_node_address::~Gcs_xcom_node_address ( )
virtualdefault

Member Function Documentation

◆ get_member_address()

std::string & Gcs_xcom_node_address::get_member_address ( )

Return address using the format ip:port.

◆ get_member_ip()

std::string & Gcs_xcom_node_address::get_member_ip ( )

Return the IP address.

◆ get_member_port()

xcom_port Gcs_xcom_node_address::get_member_port ( )

Return the port number.

◆ get_member_representation()

std::string * Gcs_xcom_node_address::get_member_representation ( ) const

Return an internal representation.

◆ is_valid()

bool Gcs_xcom_node_address::is_valid ( void  ) const

A Gcs_xcom_node_address holds the representation IP:PORT of an XCom node.

It is initialized with default values for IP = null and PORT = 0.

This method checks if this address contains valid values after a successful initialization or if it still contains the default ones.

Returns
true if this contains values other than the default values

Member Data Documentation

◆ m_member_address

std::string Gcs_xcom_node_address::m_member_address
private

◆ m_member_ip

std::string Gcs_xcom_node_address::m_member_ip
private

◆ m_member_port

xcom_port Gcs_xcom_node_address::m_member_port
private

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