#include <rpl_async_conn_failover.h>
◆ DoAutoConnFailoverError
Enumerator |
---|
no_error | |
retriable_error | |
no_sources_error | |
◆ SourceQuorumStatus
Enumerator |
---|
no_error | |
fatal_error | |
transient_network_error | |
no_quorum_error | |
◆ Async_conn_failover_manager() [1/3]
Async_conn_failover_manager::Async_conn_failover_manager |
( |
| ) |
|
|
delete |
◆ Async_conn_failover_manager() [2/3]
◆ Async_conn_failover_manager() [3/3]
◆ do_auto_conn_failover()
Re-establishes connection to next available source.
- Parameters
-
[in] | mi | the mi of the failed connection which needs to be reconnected to the new source. |
[in] | force_highest_weight | When true, sender with highest weight is chosen, otherwise the next sender from the current one is chosen. |
- Return values
-
Please | see DoAutoConnFailoverError. |
◆ get_source_quorum_status()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_channel_conn_details()
bool Async_conn_failover_manager::set_channel_conn_details |
( |
Master_info * |
mi, |
|
|
const std::string |
host, |
|
|
const uint |
port, |
|
|
const std::string |
network_namespace |
|
) |
| |
|
staticprivate |
Sets source network configuration details <host, port, network_namespace> for the provided Master_info object.
The function is used by async conn failure to set configuration details of new source.
- Parameters
-
[in] | mi | the channel of the failed connection which needs to be reconnected to the new source. |
[in] | host | the source hostname to be set for Master_info object |
[in] | port | the source port to be set for Master_info object |
[in] | network_namespace | the source network_namespace to be set for Master_info object |
- Return values
-
The documentation for this class was generated from the following files: