This class is used by:
More...
#include <recovery_metadata_observer.h>
|
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) override |
| Executed after view install and before primary election. More...
|
|
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) override |
| Executed after primary election. More...
|
|
int | before_message_handling (const Plugin_gcs_message &message, const std::string &message_origin, bool *skip_message) override |
| Executed before the message is processed. More...
|
|
This class is used by:
- joiner: to keep track of all leaving recovery metadata donors, so that joiner can error out if no donor is available.
- recovery metadata donors: to keep track of all leaving recovery metadata donors, so that other donor can send metadata if any exisiting donor has left before successfully sending data.
◆ Recovery_metadata_observer()
Recovery_metadata_observer::Recovery_metadata_observer |
( |
| ) |
|
Constructor Register observer to get notification on view change.
◆ ~Recovery_metadata_observer()
Recovery_metadata_observer::~Recovery_metadata_observer |
( |
| ) |
|
|
overridevirtual |
Destructor.
Unregister observers
◆ after_primary_election()
Executed after primary election.
- Parameters
-
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 |
Implements Group_event_observer.
◆ after_view_change()
Executed after view install and before primary election.
- Parameters
-
| 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 |
Implements Group_event_observer.
◆ before_message_handling()
int Recovery_metadata_observer::before_message_handling |
( |
const Plugin_gcs_message & |
message, |
|
|
const std::string & |
message_origin, |
|
|
bool * |
skip_message |
|
) |
| |
|
overrideprivatevirtual |
Executed before the message is processed.
- Parameters
-
| message | The GCS message |
| message_origin | The member that sent this message (address) |
[out] | skip_message | skip message handling if true |
Implements Group_event_observer.
The documentation for this class was generated from the following files: