MySQL 9.1.0
Source Code Documentation
|
This interface is implemented by those who wish to receive Control Interface notifications. More...
#include <gcs_control_event_listener.h>
Public Member Functions | |
virtual void | on_view_changed (const Gcs_view &new_view, const Exchanged_data &exchanged_data) const =0 |
This method is called when the view is ready to be installed. More... | |
virtual Gcs_message_data * | get_exchangeable_data () const =0 |
This method is called when the Data Exchange is about to happen in order for the client to provide which data it wants to exchange with the group. More... | |
virtual void | on_suspicions (const std::vector< Gcs_member_identifier > &members, const std::vector< Gcs_member_identifier > &unreachable) const =0 |
This member function is called when the set of suspicions has changed in the underlying communication infrastructure. More... | |
virtual | ~Gcs_control_event_listener ()=default |
This interface is implemented by those who wish to receive Control Interface notifications.
Currently, it informs about View Changes, delivering the underlying installed view.
For a working example, please refer to the documentation in Gcs_communication_interface.
|
virtualdefault |
|
pure virtual |
This method is called when the Data Exchange is about to happen in order for the client to provide which data it wants to exchange with the group.
Implemented in Plugin_gcs_events_handler.
|
pure virtual |
This member function is called when the set of suspicions has changed in the underlying communication infrastructure.
[in] | members | Contains the list of all members that are in the current view. |
[in] | unreachable | Contains the list of members that are unreachable in the current view, i.e., a subset of members . |
Implemented in Plugin_gcs_events_handler.
|
pure virtual |
This method is called when the view is ready to be installed.
The contents of Exchanged_data will be released by MySQL GCS after this handler finishes. Therefore the application MUST copy the contents of exchanged_data if it needs it at a later stage.
[in] | new_view | a reference to the new view. |
[in] | exchanged_data | the data handed out by other members. |
Implemented in Plugin_gcs_events_handler.