MySQL 8.4.0
Source Code Documentation
pfs.h
Go to the documentation of this file.
1/* Copyright (c) 2021, 2024, 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 as published by
5 the Free Software Foundation; version 2 of the License.
6
7 This program is designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef GROUP_REPLICATION_PFS_H
25#define GROUP_REPLICATION_PFS_H
26
29#include <memory>
30#include <vector>
32
33namespace gr {
34namespace perfschema {
35
37 protected:
39
40 public:
43
45
46 virtual bool init() = 0;
47 virtual bool deinit() = 0;
48};
49
51 public:
52 using Pfs_tables = std::vector<std::unique_ptr<Abstract_Pfs_table>>;
53
54 protected:
56
57 public:
58 Perfschema_module() = default;
59 virtual ~Perfschema_module() = default;
60
61 virtual bool initialize();
62 virtual bool finalize();
63
64 // PFS functionality
65 bool register_pfs_tables(Pfs_tables &tables);
67};
68
69} // namespace perfschema
70} // namespace gr
71
72#endif
Abstract_Pfs_table()
Definition: pfs.h:41
virtual ~Abstract_Pfs_table()
Definition: pfs.h:42
PFS_engine_table_share_proxy m_share
Definition: pfs.h:38
PFS_engine_table_share_proxy * get_share()
Definition: pfs.h:44
virtual bool finalize()
Definition: pfs.cc:96
Pfs_tables m_tables
Definition: pfs.h:55
bool unregister_pfs_tables(Pfs_tables &tables)
Definition: pfs.cc:50
virtual ~Perfschema_module()=default
std::vector< std::unique_ptr< Abstract_Pfs_table > > Pfs_tables
Definition: pfs.h:52
bool register_pfs_tables(Pfs_tables &tables)
Definition: pfs.cc:34
virtual bool initialize()
Definition: pfs.cc:66
Definition: group_replication_priv.h:44
Declaration of the registry plugin service.
A share to be initialized by plugin/component code and to be provided to add_table() service method o...
Definition: pfs_plugin_table_service.h:462