1 /* Copyright (c) 2013, 2021, Oracle and/or its affiliates. 2 3 This program is free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License, version 2.0, 5 as published by the Free Software Foundation. 6 7 This program is also distributed with certain software (including 8 but not limited to OpenSSL) that is licensed under separate terms, 9 as designated in a particular file or component or in included license 10 documentation. The authors of MySQL hereby grant you an additional 11 permission to link the program and your derivative works with the 12 separately licensed software that they have included with MySQL. 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU General Public License, version 2.0, for more details. 18 19 You should have received a copy of the GNU General Public License 20 along with this program; if not, write to the Free Software Foundation, 21 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */ 22 23 #ifndef RPL_GROUP_REPLICATION_INCLUDED 24 #define RPL_GROUP_REPLICATION_INCLUDED 25 26 #include <string> 27 #include "sql_plugin.h" 28 #include <mysql/plugin.h> 29 #include <mysql/plugin_group_replication.h> 30 #include "replication.h" 31 #include "log_event.h" 32 33 #include "mysql/plugin_group_replication.h" 34 35 class View_change_log_event; 36 37 38 /* 39 Group Replication plugin handler function accessors. 40 */ 41 bool is_group_replication_plugin_loaded(); 42 43 int group_replication_start(); 44 int group_replication_stop(); 45 bool is_group_replication_running(); 46 int set_group_replication_retrieved_certification_info(View_change_log_event *view_change_event); 47 48 bool get_group_replication_connection_status_info( 49 const GROUP_REPLICATION_CONNECTION_STATUS_CALLBACKS& callbacks); 50 bool get_group_replication_group_members_info( 51 unsigned int index, 52 const GROUP_REPLICATION_GROUP_MEMBERS_CALLBACKS& callbacks); 53 bool get_group_replication_group_member_stats_info( 54 const GROUP_REPLICATION_GROUP_MEMBER_STATS_CALLBACKS& callbacks); 55 unsigned int get_group_replication_members_number_info(); 56 57 58 #endif /* RPL_GROUP_REPLICATION_INCLUDED */ 59