MySQL 9.1.0
Source Code Documentation
|
The parent class for group wide operations. More...
#include <group_action.h>
Public Types | |
enum | enum_action_execution_result { GROUP_ACTION_RESULT_TERMINATED = 0 , GROUP_ACTION_RESULT_ERROR = 1 , GROUP_ACTION_RESULT_RESTART = 2 , GROUP_ACTION_RESULT_ABORTED = 3 , GROUP_ACTION_RESULT_KILLED = 4 , GROUP_ACTION_RESULT_END = 5 } |
Enum for the end results of a action execution. More... | |
Public Member Functions | |
virtual | ~Group_action ()=0 |
virtual void | get_action_message (Group_action_message **message)=0 |
Get the message with parameters to this action. More... | |
virtual int | process_action_message (Group_action_message &message, const std::string &message_origin)=0 |
virtual enum_action_execution_result | execute_action (bool invoking_member, Plugin_stage_monitor_handler *stage_handler, Notification_context *)=0 |
Execute the action. More... | |
virtual bool | stop_action_execution (bool killed)=0 |
virtual Group_action_diagnostics * | get_execution_info ()=0 |
Gets the info about execution, be it success or failure. More... | |
virtual PSI_stage_key | get_action_stage_termination_key () |
For this action, what is the PSI key for the last stage when the action is terminating. More... | |
The parent class for group wide operations.
|
pure virtualdefault |
|
pure virtual |
Execute the action.
invoking_member | is the member that invoked it |
stage_handler | the stage handler to report progress |
Implemented in Communication_protocol_action, Primary_election_action, and Multi_primary_migration_action.
|
pure virtual |
Get the message with parameters to this action.
[out] | message | the message to start the action |
Implemented in Communication_protocol_action, Multi_primary_migration_action, and Primary_election_action.
|
virtual |
For this action, what is the PSI key for the last stage when the action is terminating.
Reimplemented in Multi_primary_migration_action, and Primary_election_action.
|
pure virtual |
Gets the info about execution, be it success or failure.
Implemented in Communication_protocol_action, Multi_primary_migration_action, and Primary_election_action.
|
pure virtual |
Implemented in Communication_protocol_action, Multi_primary_migration_action, and Primary_election_action.
|
pure virtual |
Implemented in Communication_protocol_action, Multi_primary_migration_action, and Primary_election_action.