MySQL 9.1.0
Source Code Documentation
pipeline_factory.h
Go to the documentation of this file.
1/* Copyright (c) 2013, 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 PIPELINE_FACTORY_INCLUDED
25#define PIPELINE_FACTORY_INCLUDED
26
28
29/**
30 @enum Handler_id
31
32 Enumeration type for the different types of handlers.
33*/
38};
39
40/**
41 @enum Handler_id
42
43 Enumeration type for the different types of handlers.
44*/
46
47/**
48 This method joins the two above method, assembling a pipeline accordingly
49 with the given configuration.
50
51 @param[in] pipeline_type the selected pipeline
52 @param[out] pipeline the assembled pipeline
53
54 @return the end status
55 @retval 0 OK
56 @retval !=0 Error returned on the execution
57*/
58int get_pipeline(Handler_pipeline_type pipeline_type, Event_handler **pipeline);
59
60/**
61 This method returns the configured handlers for the received pipeline.
62
63 @param[in] pipeline_type the selected pipeline
64 @param[out] pipeline_conf the returned list of handler ids
65
66 @return the number of handlers in the pipeline
67*/
69 Handler_id **pipeline_conf);
70
71/**
72 This method configures the pipeline accordingly to the received handlers.
73
74 Taking the received handlers, this method initializes each one of them,
75 appending them to the pipeline. It also checks the handler role, checking
76 for duplicated handlers that were marked as being unique.
77
78 @param[out] pipeline the pipeline to configure
79 @param[in] handler_list the list of handler ids
80 @param[in] num_handlers the number of handlers to configure
81
82 @return the end status
83 @retval 0 OK
84 @retval !=0 Error returned on the execution
85*/
86int configure_pipeline(Event_handler **pipeline, Handler_id handler_list[],
87 int num_handlers);
88
89#endif /* PIPELINE_FACTORY_INCLUDED */
Interface for the application of events, them being packets or log events.
Definition: pipeline_interfaces.h:663
int get_pipeline(Handler_pipeline_type pipeline_type, Event_handler **pipeline)
This method joins the two above method, assembling a pipeline accordingly with the given configuratio...
Definition: pipeline_factory.cc:34
int get_pipeline_configuration(Handler_pipeline_type pipeline_type, Handler_id **pipeline_conf)
This method returns the configured handlers for the received pipeline.
Definition: pipeline_factory.cc:48
Handler_id
Enumeration type for the different types of handlers.
Definition: pipeline_factory.h:34
@ CATALOGING_HANDLER
Definition: pipeline_factory.h:37
@ CERTIFICATION_HANDLER
Definition: pipeline_factory.h:35
@ SQL_THREAD_APPLICATION_HANDLER
Definition: pipeline_factory.h:36
int configure_pipeline(Event_handler **pipeline, Handler_id handler_list[], int num_handlers)
This method configures the pipeline accordingly to the received handlers.
Definition: pipeline_factory.cc:71
Handler_pipeline_type
Definition: pipeline_factory.h:45
@ STANDARD_GROUP_REPLICATION_PIPELINE
Definition: pipeline_factory.h:45