Validate recovery endpoints.
More...
#include <recovery_endpoints.h>
Validate recovery endpoints.
◆ enum_status
This enumeration describes error status.
| Enumerator |
|---|
| OK | |
| INVALID | |
| BADFORMAT | |
| ERROR | |
◆ Recovery_endpoints()
| Recovery_endpoints::Recovery_endpoints |
( |
| ) |
|
|
protected |
Recovery_endpoints constructor.
◆ ~Recovery_endpoints()
| Recovery_endpoints::~Recovery_endpoints |
( |
| ) |
|
|
protectedvirtualdefault |
Recovery_endpoints destructor.
◆ check()
Validate recovery endpoints and log errors if it fails.
- Parameters
-
| endpoints | advertised recovery endpoints |
- Returns
- the operation status
- Return values
-
◆ get_endpoints()
| std::vector< std::pair< std::string, uint > > Recovery_endpoints::get_endpoints |
( |
| ) |
|
|
protected |
Return recovery endpoints.
- Returns
- list with recovery endpoints
◆ hostname_check_and_log()
| int Recovery_endpoints::hostname_check_and_log |
( |
std::string |
host, |
|
|
std::set< std::string > |
host_ips |
|
) |
| |
|
private |
Validate if recovery endpoint is a host name.
- Parameters
-
| host | hostname to be checked |
| host_ips | list of host IPs |
- Returns
- the operation status
- Return values
-
◆ local_interfaces_ips()
| int Recovery_endpoints::local_interfaces_ips |
( |
std::set< std::string > & |
local_ips | ) |
|
|
private |
Retrieve from host all ip address.
- Parameters
-
| [out] | local_ips | list of IPs present on host |
- Returns
- the operation status
- Return values
-
◆ set_port_settings()
| void Recovery_endpoints::set_port_settings |
( |
uint |
mysqld_port, |
|
|
uint |
admin_port |
|
) |
| |
|
protected |
Set ports allowed on advertised recovery endpoints.
It shall be called when validating local recovery endpoints.
- Parameters
-
| mysqld_port | mysqld port allowed on advertised recovery endpoints |
| admin_port | mysqld admin port allowed on advertised recovery endpoints |
◆ m_endpoints
| std::vector<std::pair<std::string, uint> > Recovery_endpoints::m_endpoints |
|
private |
Advertised recovery valid endpoints.
◆ m_mysqld_admin_port
| uint Recovery_endpoints::m_mysqld_admin_port |
|
private |
◆ m_mysqld_port
| uint Recovery_endpoints::m_mysqld_port |
|
private |
◆ m_remote
| bool Recovery_endpoints::m_remote |
|
private |
Recovery endpoints are from donor.
The documentation for this class was generated from the following files: