MySQL 9.1.0
Source Code Documentation
pipeline_factory.cc File Reference

Functions

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 configuration. More...
 
int get_pipeline_configuration (Handler_pipeline_type pipeline_type, Handler_id **pipeline_conf)
 This method returns the configured handlers for the received pipeline. More...
 
int configure_pipeline (Event_handler **pipeline, Handler_id handler_list[], int num_handlers)
 This method configures the pipeline accordingly to the received handlers. More...
 

Function Documentation

◆ configure_pipeline()

int configure_pipeline ( Event_handler **  pipeline,
Handler_id  handler_list[],
int  num_handlers 
)

This method configures the pipeline accordingly to the received handlers.

Taking the received handlers, this method initializes each one of them, appending them to the pipeline. It also checks the handler role, checking for duplicated handlers that were marked as being unique.

Parameters
[out]pipelinethe pipeline to configure
[in]handler_listthe list of handler ids
[in]num_handlersthe number of handlers to configure
Returns
the end status
Return values
0OK
!=0Error returned on the execution

◆ get_pipeline()

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 configuration.

Parameters
[in]pipeline_typethe selected pipeline
[out]pipelinethe assembled pipeline
Returns
the end status
Return values
0OK
!=0Error returned on the execution

◆ get_pipeline_configuration()

int get_pipeline_configuration ( Handler_pipeline_type  pipeline_type,
Handler_id **  pipeline_conf 
)

This method returns the configured handlers for the received pipeline.

Parameters
[in]pipeline_typethe selected pipeline
[out]pipeline_confthe returned list of handler ids
Returns
the number of handlers in the pipeline