MySQL 9.1.0
Source Code Documentation
Gcs_xcom_app_cfg Class Reference

A Gcs_xcom_interface needs to have an instance of this class initialized before engaging XCom. More...

#include <gcs_xcom_proxy.h>

Public Member Functions

 Gcs_xcom_app_cfg ()=default
 
virtual ~Gcs_xcom_app_cfg ()=default
 
void init ()
 Initializes the data structures to communicate with XCom the application injected configuration options. More...
 
void set_poll_spin_loops (unsigned int loops)
 Configures how many loops to spin before blocking on the poll system call. More...
 
void set_xcom_cache_size (uint64_t size)
 Configures the maximum size of the xcom cache. More...
 
bool set_identity (node_address *identity)
 Configures XCom with its unique instance identifier, i.e. More...
 
void set_network_namespace_manager (Network_namespace_manager *ns_mgr)
 Sets the network namespace manager. More...
 
void set_statists_storage_implementation (Xcom_statistics_storage_interface *stats_storage)
 Set XCom's. More...
 
void deinit ()
 Must be called when XCom is not engaged anymore. More...
 

Detailed Description

A Gcs_xcom_interface needs to have an instance of this class initialized before engaging XCom.

Constructor & Destructor Documentation

◆ Gcs_xcom_app_cfg()

Gcs_xcom_app_cfg::Gcs_xcom_app_cfg ( )
explicitdefault

◆ ~Gcs_xcom_app_cfg()

virtual Gcs_xcom_app_cfg::~Gcs_xcom_app_cfg ( )
virtualdefault

Member Function Documentation

◆ deinit()

void Gcs_xcom_app_cfg::deinit ( )

Must be called when XCom is not engaged anymore.

◆ init()

void Gcs_xcom_app_cfg::init ( )

Initializes the data structures to communicate with XCom the application injected configuration options.

◆ set_identity()

bool Gcs_xcom_app_cfg::set_identity ( node_address *  identity)

Configures XCom with its unique instance identifier, i.e.

its (address, incarnation) pair.

Takes ownership of identity.

Parameters
identitythe unique identifier
Return values
trueif there was an error configuring XCom
falseif configuration was successful

◆ set_network_namespace_manager()

void Gcs_xcom_app_cfg::set_network_namespace_manager ( Network_namespace_manager ns_mgr)

Sets the network namespace manager.

Parameters
ns_mgra reference to a Network_namespace_manager implementation

◆ set_poll_spin_loops()

void Gcs_xcom_app_cfg::set_poll_spin_loops ( unsigned int  loops)

Configures how many loops to spin before blocking on the poll system call.

Parameters
loopsthe number of spins.

◆ set_statists_storage_implementation()

void Gcs_xcom_app_cfg::set_statists_storage_implementation ( Xcom_statistics_storage_interface stats_storage)

Set XCom's.

statists storage implementation

◆ set_xcom_cache_size()

void Gcs_xcom_app_cfg::set_xcom_cache_size ( uint64_t  size)

Configures the maximum size of the xcom cache.

Parameters
sizethe maximum size of the cache.

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