MySQL  8.0.18
Source Code Documentation
recovery_channel_state_observer.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
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
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef RECOVERY_CHANNEL_STATE_OBSERVER_INCLUDE
24 #define RECOVERY_CHANNEL_STATE_OBSERVER_INCLUDE
25 
26 #include "my_inttypes.h"
29 
31  public:
34 
35  /** Observer for receiver thread starts */
37 
38  /** Observer for receiver thread stops */
40 
41  /** Observer for applier thread starts */
43 
44  /** Observer for applier thread stops */
45  int applier_stop(Binlog_relay_IO_param *param, bool aborted);
46 
47  /** Observer for when a new transmission from a another server is requested*/
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);
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);
58 
59  /** Observer for whenever a reset slave is executed */
61 
62  /** Observer for applier skip event */
63  int applier_log_event(Binlog_relay_IO_param *param, Trans_param *trans_param,
64  int &out);
65 
66  private:
68 };
69 
70 #endif /* RECOVERY_CHANNEL_STATE_OBSERVER_INCLUDE */
Some integer typedefs for easier portability.
Transaction observer parameter.
Definition: replication.h:132
int applier_start(Binlog_relay_IO_param *param)
Observer for applier thread starts.
Definition: recovery_channel_state_observer.cc:38
Definition: recovery_channel_state_observer.h:30
int before_request_transmit(Binlog_relay_IO_param *param, uint32 flags)
Observer for when a new transmission from a another server is requested.
Definition: recovery_channel_state_observer.cc:48
Recovery_state_transfer * recovery_state_transfer
Definition: recovery_channel_state_observer.h:67
Recovery_channel_state_observer(Recovery_state_transfer *recovery_state_transfer)
Definition: recovery_channel_state_observer.cc:25
int thread_start(Binlog_relay_IO_param *param)
Observer for receiver thread starts.
Definition: recovery_channel_state_observer.cc:29
int after_read_event(Binlog_relay_IO_param *param, const char *packet, unsigned long len, const char **event_buf, unsigned long *event_len)
Observer for whenever a event is read by the receiver thread.
Definition: recovery_channel_state_observer.cc:53
uint32_t uint32
Definition: my_inttypes.h:66
Replication binlog relay IO observer parameter.
Definition: replication.h:577
int applier_stop(Binlog_relay_IO_param *param, bool aborted)
Observer for applier thread stops.
Definition: recovery_channel_state_observer.cc:42
int after_queue_event(Binlog_relay_IO_param *param, const char *event_buf, unsigned long event_len, uint32 flags)
Observer for whenever a event is queued by the receiver thread.
Definition: recovery_channel_state_observer.cc:61
Definition: recovery_state_transfer.h:37
int thread_stop(Binlog_relay_IO_param *param)
Observer for receiver thread stops.
Definition: recovery_channel_state_observer.cc:33
A interface class to code channel state response methods.
Definition: channel_observation_manager.h:37
int applier_log_event(Binlog_relay_IO_param *param, Trans_param *trans_param, int &out)
Observer for applier skip event.
Definition: recovery_channel_state_observer.cc:72
static int flags[50]
Definition: hp_test1.cc:39
int after_reset_slave(Binlog_relay_IO_param *param)
Observer for whenever a reset slave is executed.
Definition: recovery_channel_state_observer.cc:67