MySQL 8.0.40
Source Code Documentation
applier_channel_state_observer.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 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 APPLIER_CHANNEL_STATE_OBSERVER_INCLUDE
25#define APPLIER_CHANNEL_STATE_OBSERVER_INCLUDE
26
27#include "my_inttypes.h"
29
31 public:
33
34 /** Observer for receiver thread starts */
35 int thread_start(Binlog_relay_IO_param *param) override;
36
37 /** Observer for receiver thread stops */
38 int thread_stop(Binlog_relay_IO_param *param) override;
39
40 /** Observer for applier thread starts */
41 int applier_start(Binlog_relay_IO_param *param) override;
42
43 /** Observer for applier thread stops */
44 int applier_stop(Binlog_relay_IO_param *param, bool aborted) override;
45
46 /** Observer for when a new transmission from a another server is requested*/
48 uint32 flags) override;
49
50 /** Observer for whenever a event is read by the receiver thread*/
51 int after_read_event(Binlog_relay_IO_param *param, const char *packet,
52 unsigned long len, const char **event_buf,
53 unsigned long *event_len) override;
54
55 /** Observer for whenever a event is queued by the receiver thread*/
56 int after_queue_event(Binlog_relay_IO_param *param, const char *event_buf,
57 unsigned long event_len, uint32 flags) override;
58
59 /** Observer for whenever a reset slave is executed */
60 int after_reset_slave(Binlog_relay_IO_param *param) override;
61
62 /** Observer for applier log event */
64 int &out) override;
65};
66
67#endif /* APPLIER_CHANNEL_STATE_OBSERVER_INCLUDE */
Definition: applier_channel_state_observer.h:30
int thread_start(Binlog_relay_IO_param *param) override
Observer for receiver thread starts.
Definition: applier_channel_state_observer.cc:30
int after_queue_event(Binlog_relay_IO_param *param, const char *event_buf, unsigned long event_len, uint32 flags) override
Observer for whenever a event is queued by the receiver thread.
Definition: applier_channel_state_observer.cc:61
int applier_stop(Binlog_relay_IO_param *param, bool aborted) override
Observer for applier thread stops.
Definition: applier_channel_state_observer.cc:42
int before_request_transmit(Binlog_relay_IO_param *param, uint32 flags) override
Observer for when a new transmission from a another server is requested.
Definition: applier_channel_state_observer.cc:48
int after_reset_slave(Binlog_relay_IO_param *param) override
Observer for whenever a reset slave is executed.
Definition: applier_channel_state_observer.cc:67
int thread_stop(Binlog_relay_IO_param *param) override
Observer for receiver thread stops.
Definition: applier_channel_state_observer.cc:34
int applier_log_event(Binlog_relay_IO_param *param, Trans_param *trans_param, int &out) override
Observer for applier log event.
Definition: applier_channel_state_observer.cc:71
int after_read_event(Binlog_relay_IO_param *param, const char *packet, unsigned long len, const char **event_buf, unsigned long *event_len) override
Observer for whenever a event is read by the receiver thread.
Definition: applier_channel_state_observer.cc:53
int applier_start(Binlog_relay_IO_param *param) override
Observer for applier thread starts.
Definition: applier_channel_state_observer.cc:38
A interface class to code channel state response methods.
Definition: channel_observation_manager.h:38
static int flags[50]
Definition: hp_test1.cc:40
Some integer typedefs for easier portability.
uint32_t uint32
Definition: my_inttypes.h:67
Replication binlog relay IO observer parameter.
Definition: replication.h:594
Transaction observer parameter.
Definition: replication.h:132