MySQL 9.1.0
Source Code Documentation
statistics_storage_interface_default_impl.h
Go to the documentation of this file.
1/* Copyright (c) 2023, 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, version 2.0,
5 as published by the Free Software Foundation.
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, version 2.0, 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 STATISTICS_STORAGE_INTERFACE_DEFAULT_IMPL_H
25#define STATISTICS_STORAGE_INTERFACE_DEFAULT_IMPL_H
26
28
29// Default void implementation for XCom_Statistics_Storage_Interface
32 public:
33 /* purecov: begin inspected */
36
37 void add_sucessful_paxos_round() override {}
38 void add_empty_proposal_round() override {}
39 void add_bytes_sent([[maybe_unused]] uint64_t bytes_sent) override {}
41 [[maybe_unused]] unsigned long long proposal_time) override {}
42 void add_three_phase_paxos() override {}
43 void add_message() override {}
44 void add_bytes_received([[maybe_unused]] uint64_t bytes_received) override {}
46 [[maybe_unused]] unsigned long long proposal_time) override {}
47 /* purecov: end */
48};
49
50#endif // STATISTICS_STORAGE_INTERFACE_DEFAULT_IMPL_H
Definition: statistics_storage_interface_default_impl.h:31
void add_bytes_received(uint64_t bytes_received) override
Adds to bytes received in this member.
Definition: statistics_storage_interface_default_impl.h:44
void set_last_proposal_time(unsigned long long proposal_time) override
Sets the last proposal time.
Definition: statistics_storage_interface_default_impl.h:45
void add_three_phase_paxos() override
Adds one 3-Phase PAXOS round.
Definition: statistics_storage_interface_default_impl.h:42
void add_sucessful_paxos_round() override
Adds one successful PAXOS round.
Definition: statistics_storage_interface_default_impl.h:37
void add_message() override
Adds one message sent.
Definition: statistics_storage_interface_default_impl.h:43
void add_bytes_sent(uint64_t bytes_sent) override
Adds to bytes sent to all members.
Definition: statistics_storage_interface_default_impl.h:39
void add_empty_proposal_round() override
Adds one Noop proposal round.
Definition: statistics_storage_interface_default_impl.h:38
~Xcom_statistics_storage_interface_default_impl() override=default
void add_proposal_time(unsigned long long proposal_time) override
Adds to the cumulative proposal time.
Definition: statistics_storage_interface_default_impl.h:40
Interface class for all statistics that XCom will provide.
Definition: statistics_storage_interface.h:33