MySQL 8.4.0
Source Code Documentation
Advertised_recovery_endpoints Class Reference

Validate advertised recovery endpoints. More...

#include <recovery_endpoints.h>

Inheritance diagram for Advertised_recovery_endpoints:
[legend]

Public Types

enum class  enum_log_context { ON_BOOT , ON_START , ON_SET }
 This enumeration describes which log context is being used. More...
 

Public Member Functions

 Advertised_recovery_endpoints ()
 Advertised_recovery_endpoints constructor. More...
 
 ~Advertised_recovery_endpoints () override
 Advertised_recovery_endpoints destructor. More...
 
bool check (const char *endpoints, enum_log_context where)
 Validate recovery endpoints and log errors if it fails. More...
 

Additional Inherited Members

- Private Types inherited from Recovery_endpoints
enum class  enum_status { OK = 0 , INVALID , BADFORMAT , ERROR }
 This enumeration describes error status. More...
 
- Private Member Functions inherited from Recovery_endpoints
 Recovery_endpoints ()
 Recovery_endpoints constructor. More...
 
virtual ~Recovery_endpoints ()
 Recovery_endpoints destructor. More...
 
std::pair< enum_status, std::string > check (const char *endpoints)
 Validate recovery endpoints and log errors if it fails. More...
 
std::vector< std::pair< std::string, uint > > get_endpoints ()
 Return recovery endpoints. More...
 
void set_port_settings (uint mysqld_port, uint admin_port)
 Set ports allowed on advertised recovery endpoints. More...
 

Detailed Description

Validate advertised recovery endpoints.

Member Enumeration Documentation

◆ enum_log_context

This enumeration describes which log context is being used.

Enumerator
ON_BOOT 
ON_START 
ON_SET 

Constructor & Destructor Documentation

◆ Advertised_recovery_endpoints()

Advertised_recovery_endpoints::Advertised_recovery_endpoints ( )
default

Advertised_recovery_endpoints constructor.

◆ ~Advertised_recovery_endpoints()

Advertised_recovery_endpoints::~Advertised_recovery_endpoints ( )
overridedefault

Advertised_recovery_endpoints destructor.

Member Function Documentation

◆ check()

bool Advertised_recovery_endpoints::check ( const char *  endpoints,
enum_log_context  where 
)

Validate recovery endpoints and log errors if it fails.

Parameters
endpointsadvertised recovery endpoints
wherecontext where being executed
Returns
the operation status
Return values
falseOK
trueError

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