MySQL 9.1.0
Source Code Documentation
Gcs_xcom_utils Class Reference

#include <gcs_xcom_utils.h>

Public Member Functions

virtual ~Gcs_xcom_utils ()
 

Static Public Member Functions

static u_long build_xcom_group_id (Gcs_group_identifier &group_id)
 Create a xcom group identifier from a Group Identifier. More...
 
static void process_peer_nodes (const std::string *peer_nodes, std::vector< std::string > &processed_peers)
 Processes a list of comma separated peer nodes. More...
 
static void validate_peer_nodes (std::vector< std::string > &peers, std::vector< std::string > &invalid_peers)
 Validates peer nodes according with IP/Address rules enforced by is_valid_hostname function. More...
 
static uint32_t mhash (const unsigned char *buf, size_t length)
 Simple multiplicative hash. More...
 
static int init_net ()
 
static int deinit_net ()
 

Constructor & Destructor Documentation

◆ ~Gcs_xcom_utils()

Gcs_xcom_utils::~Gcs_xcom_utils ( )
virtualdefault

Member Function Documentation

◆ build_xcom_group_id()

u_long Gcs_xcom_utils::build_xcom_group_id ( Gcs_group_identifier group_id)
static

Create a xcom group identifier from a Group Identifier.

Parameters
[in]group_idA group identifier
Returns
an hash of the group identifier string that will serve as input for the group id in XCom

◆ deinit_net()

int Gcs_xcom_utils::deinit_net ( )
static

◆ init_net()

int Gcs_xcom_utils::init_net ( )
static

◆ mhash()

uint32_t Gcs_xcom_utils::mhash ( const unsigned char *  buf,
size_t  length 
)
static

Simple multiplicative hash.

Parameters
bufthe data to create an hash from
lengthdata length
Returns
calculated hash

◆ process_peer_nodes()

void Gcs_xcom_utils::process_peer_nodes ( const std::string *  peer_nodes,
std::vector< std::string > &  processed_peers 
)
static

Processes a list of comma separated peer nodes.

Parameters
peer_nodesinput string of comma separated peer nodes
[out]processed_peersthe list of configured peers

◆ validate_peer_nodes()

void Gcs_xcom_utils::validate_peer_nodes ( std::vector< std::string > &  peers,
std::vector< std::string > &  invalid_peers 
)
static

Validates peer nodes according with IP/Address rules enforced by is_valid_hostname function.

Parameters
[in,out]peersinput list of peer nodes. It will be cleansed of invalid peers
[in,out]invalid_peersThis list will contain all invalid peers.

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