![]() |
MySQL 8.0.43
Source Code Documentation
|
Class that others can extend to receive notifications about views and primary elections. More...
#include <group_event_observer.h>
Public Member Functions | |
| virtual | ~Group_event_observer ()=0 |
| virtual int | after_view_change (const std::vector< Gcs_member_identifier > &joining, const std::vector< Gcs_member_identifier > &leaving, const std::vector< Gcs_member_identifier > &group, bool is_leaving, bool *skip_election, enum_primary_election_mode *election_mode, std::string &suggested_primary)=0 |
| Executed after view install and before primary election. More... | |
| virtual int | after_primary_election (std::string primary_uuid, enum_primary_election_primary_change_status primary_change_status, enum_primary_election_mode election_mode, int error)=0 |
| Executed after primary election. More... | |
| virtual int | before_message_handling (const Plugin_gcs_message &message, const std::string &message_origin, bool *skip_message)=0 |
| Executed before the message is processed. More... | |
Class that others can extend to receive notifications about views and primary elections.
|
pure virtualdefault |
|
pure virtual |
Executed after primary election.
| primary_uuid | the elected primary |
| primary_change_status | if the primary changed after the election |
| election_mode | what was the election mode |
| error | if there was and error on the process |
Implemented in Group_action_coordinator, Multi_primary_migration_action, Primary_election_action, Consensus_leaders_handler, Primary_election_primary_process, Primary_election_secondary_process, Primary_election_validation_handler, and Remote_clone_handler.
|
pure virtual |
Executed after view install and before primary election.
| joining | members joining the group | |
| leaving | members leaving the group | |
| group | members in the group | |
| is_leaving | is the member leaving | |
| [out] | skip_election | skip primary election on view |
| [out] | election_mode | election mode |
| [out] | suggested_primary | what should be the next primary to elect |
Implemented in Group_action_coordinator, Multi_primary_migration_action, Primary_election_action, Consensus_leaders_handler, Primary_election_primary_process, Primary_election_secondary_process, Primary_election_validation_handler, and Remote_clone_handler.
|
pure virtual |
Executed before the message is processed.
| message | The GCS message | |
| message_origin | The member that sent this message (address) | |
| [out] | skip_message | skip message handling if true |
Implemented in Group_action_coordinator, Multi_primary_migration_action, Primary_election_action, Consensus_leaders_handler, Primary_election_primary_process, Primary_election_secondary_process, Primary_election_validation_handler, and Remote_clone_handler.