MySQL 9.1.0
Source Code Documentation
Network_namespace_manager Class Referenceabstract

Class that provides Network Namespace services. More...

#include <network_provider.h>

Inheritance diagram for Network_namespace_manager:
[legend]

Public Member Functions

virtual ~Network_namespace_manager ()
 
virtual int channel_get_network_namespace (std::string &net_ns)=0
 Method to get the network namespace configured for a channel. More...
 
virtual bool set_network_namespace (const std::string &network_namespace)=0
 Set active network namespace specified by a name. More...
 
virtual bool restore_original_network_namespace ()=0
 Restore original network namespace used to be active before a new network namespace has been set. More...
 

Detailed Description

Class that provides Network Namespace services.

Constructor & Destructor Documentation

◆ ~Network_namespace_manager()

virtual Network_namespace_manager::~Network_namespace_manager ( )
inlinevirtual

Member Function Documentation

◆ channel_get_network_namespace()

virtual int Network_namespace_manager::channel_get_network_namespace ( std::string &  net_ns)
pure virtual

Method to get the network namespace configured for a channel.

Parameters
[out]net_nsThe network namespace to extract
Returns
the operation status
Return values
falseOK
trueError, channel not found

Implemented in Gcs_mysql_network_provider_native_interface_impl.

◆ restore_original_network_namespace()

virtual bool Network_namespace_manager::restore_original_network_namespace ( )
pure virtual

Restore original network namespace used to be active before a new network namespace has been set.

Returns
false on success, true on failure

Implemented in Gcs_mysql_network_provider_native_interface_impl.

◆ set_network_namespace()

virtual bool Network_namespace_manager::set_network_namespace ( const std::string &  network_namespace)
pure virtual

Set active network namespace specified by a name.

Parameters
network_namespacethe name of a network namespace to be set active
Returns
false on success, true on error
Note
all opened descriptors used during function run are closed on error

Implemented in Gcs_mysql_network_provider_native_interface_impl.


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