Handles member actions configuration and trigger.  
 More...
#include <member_actions_handler.h>
Handles member actions configuration and trigger. 
 
◆ Member_actions_handler()
      
        
          | Member_actions_handler::Member_actions_handler  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ~Member_actions_handler()
  
  
      
        
          | Member_actions_handler::~Member_actions_handler  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
 
◆ acquire_send_service()
      
        
          | bool Member_actions_handler::acquire_send_service  | 
          ( | 
           | ) | 
           | 
        
      
 
Acquires a reference to the group_replication_message_service_send service. 
- Returns
 - Operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
 
 
◆ deinit()
      
        
          | bool Member_actions_handler::deinit  | 
          ( | 
           | ) | 
           | 
        
      
 
De-initialize the handler. 
- Returns
 - Operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
 
 
◆ disable_action()
      
        
          | std::pair< bool, std::string > Member_actions_handler::disable_action  | 
          ( | 
          const std::string &  | 
          name,  | 
        
        
           | 
           | 
          const std::string &  | 
          event  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Disable a member action for a given event. 
- Parameters
 - 
  
    | [in] | name | the action name  | 
    | [in] | event | the event on which the action will be triggered | 
  
   
- Returns
 - std::pair<bool, std::string> where each element has the following meaning: first element of the pair is the function error value: false Successful true Error second element of the pair is the error message. 
 
 
 
◆ enable_action()
      
        
          | std::pair< bool, std::string > Member_actions_handler::enable_action  | 
          ( | 
          const std::string &  | 
          name,  | 
        
        
           | 
           | 
          const std::string &  | 
          event  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Enable a member action for a given event. 
- Parameters
 - 
  
    | [in] | name | the action name  | 
    | [in] | event | the event on which the action will be triggered | 
  
   
- Returns
 - std::pair<bool, std::string> where each element has the following meaning: first element of the pair is the function error value: false Successful true Error second element of the pair is the error message. 
 
 
 
◆ force_my_actions_configuration_on_all_members()
      
        
          | bool Member_actions_handler::force_my_actions_configuration_on_all_members  | 
          ( | 
           | ) | 
           | 
        
      
 
Propagate the local member actions configuration to the group, enabling the force_update flag, which will make the sent configuration to override other members configuration. 
- Returns
 - Operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
 
 
◆ get_all_actions()
      
        
          | bool Member_actions_handler::get_all_actions  | 
          ( | 
          std::string &  | 
          serialized_configuration | ) | 
           | 
        
      
 
Retrieve member actions configuration in the serialized format. 
- Parameters
 - 
  
    | [out] | serialized_configuration | the serialized configuration | 
  
   
- Returns
 - Operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
 
 
◆ init()
      
        
          | bool Member_actions_handler::init  | 
          ( | 
           | ) | 
           | 
        
      
 
Initialize the handler. 
- Returns
 - Operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
 
 
◆ propagate_serialized_configuration()
  
  
      
        
          | bool Member_actions_handler::propagate_serialized_configuration  | 
          ( | 
          const std::string &  | 
          serialized_configuration | ) | 
           | 
         
       
   | 
  
overrideprivatevirtual   | 
  
 
Propagate the serialized configuration to the group. 
- Parameters
 - 
  
    | [in] | serialized_configuration | the serialized configuration | 
  
   
- Returns
 - the operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
Implements Configuration_propagation.
 
 
◆ receive()
      
        
          | bool Member_actions_handler::receive  | 
          ( | 
          const char *  | 
          tag,  | 
        
        
           | 
           | 
          const unsigned char *  | 
          data,  | 
        
        
           | 
           | 
          size_t  | 
          data_length  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Delivery method for the group_replication_message_service_recv service. 
A error on this method will move the member into ERROR state and follow the –group_replication_exit_state_action option.
- Parameters
 - 
  
    | [in] | tag | the message tag  | 
    | [in] | data | the message data  | 
    | [in] | data_length | the message data length | 
  
   
- Returns
 - Operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
 
 
◆ release_send_service()
      
        
          | bool Member_actions_handler::release_send_service  | 
          ( | 
           | ) | 
           | 
        
      
 
Releases the reference to the group_replication_message_service_send service. 
- Returns
 - Operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
 
 
◆ replace_all_actions()
      
        
          | bool Member_actions_handler::replace_all_actions  | 
          ( | 
          const std::vector< std::string > &  | 
          exchanged_members_actions_serialized_configuration | ) | 
           | 
        
      
 
Replace member actions configuration with the given one. 
- Parameters
 - 
  
    | [in] | exchanged_members_actions_serialized_configuration | the serialized configuration | 
  
   
- Returns
 - Operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
 
 
◆ reset_to_default_actions_configuration()
      
        
          | bool Member_actions_handler::reset_to_default_actions_configuration  | 
          ( | 
           | ) | 
           | 
        
      
 
Reset member actions to the default configuration. 
- Returns
 - Operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
 
 
◆ run()
Run the actions that were triggered. 
- Parameters
 - 
  
    | [in] | parameters | the actions parameters  | 
  
   
Implements Mysql_thread_body.
 
 
◆ run_internal_action()
Run a INTERNAL action. 
- Parameters
 - 
  
    | [in] | action | action configuration | 
  
   
- Returns
 - the operation status 
 
- Return values
 - 
  
    | false | Successful  | 
    | true | Error  | 
  
   
 
 
◆ trigger_actions()
Trigger the actions configured to run on the given event. 
- Parameters
 - 
  
    | [in] | event | the event that did trigger the member actions  | 
  
   
 
 
◆ m_configuration
The table configuration abstraction layer. 
 
 
◆ m_group_replication_message_service_send
Pointer to the group_replication_message_service_send service. 
 
 
◆ m_message_service_listener_name
  
  
      
        
          | const char* Member_actions_handler::m_message_service_listener_name | 
         
       
   | 
  
private   | 
  
 
Initial value:{
      "group_replication_message_service_recv.replication_group_member_"
      "actions"}
 
The name of the message service listener. 
 
 
◆ m_message_tag
  
  
      
        
          | const char* Member_actions_handler::m_message_tag {"mysql_replication_group_member_actions"} | 
         
       
   | 
  
private   | 
  
 
The tag used on the messages sent by this class. 
 
 
◆ m_mysql_thread
The documentation for this class was generated from the following files: