#include <event_cataloger.h>
◆ Event_cataloger()
Event_cataloger::Event_cataloger |
( |
| ) |
|
|
default |
◆ get_role()
int Event_cataloger::get_role |
( |
| ) |
|
|
overridevirtual |
This method returns the handler role.
Handlers can have different roles according to the tasks they represent. Is based on this role that certain components can extract and interact with pipeline handlers. This means that if a role is given to a singleton handler, no one else can have that role.
- Returns
- the handler role
Implements Event_handler.
◆ handle_action()
Handling of an action as defined in the handler implementation.
As the handler can be included in a pipeline, somewhere in the method, the handler.next(action) method shall be invoked to allow the passing of the action to the next handler.
- Note
- Actions should not be treated asynchronously and as so, Continuations are not used here. Errors are returned directly or passed by in the action if it includes support for such
- Parameters
-
[in] | action | the pipeline event to be handled |
Implements Event_handler.
◆ handle_applier_event()
This method handles applier context events by storing them so they can be used on next handler.
- Parameters
-
[in] | pevent | the event to be injected |
[in] | cont | the object used to wait |
- Returns
- the operation status
- Return values
-
◆ handle_binary_log_event()
This method handles binary log events by storing them so they can be used on next handler.
- Parameters
-
[in] | pevent | the event to be injected |
[in] | cont | the object used to wait |
- Returns
- the operation status
- Return values
-
◆ handle_event()
Handling of an event as defined in the handler implementation.
As the handler can be included in a pipeline, somewhere in the method, the handler.next(event,continuation) method shall be invoked to allow the passing of the event to the next handler.
Also, if an error occurs, the continuation object shall be used to propagate such error. This class can also be used to know/report when the transaction to whom the event belongs was discarded.
- Parameters
-
[in] | event | the pipeline event to be handled |
[in,out] | continuation | termination notification object. |
Implements Event_handler.
◆ initialize()
int Event_cataloger::initialize |
( |
| ) |
|
|
overridevirtual |
Initialization as defined in the handler implementation.
- Note
- It's up to the developer to decide its own initialization strategy, but the suggested approach is to initialize basic structures here and then depend on Action packets to configure and start existing handler routines.
Implements Event_handler.
◆ is_unique()
bool Event_cataloger::is_unique |
( |
| ) |
|
|
overridevirtual |
This method identifies the handler as being unique.
An handler that is defined as unique is an handler that cannot be used more than once in a pipeline. Such tasks as certification and event application can only be done once. Unique handlers are also the only that, by being one of a kind, can be extracted during the pipeline life allowing dynamic changes to them.
- Returns
- if the handler is the a unique handler
- Return values
-
true | is a unique handler |
false | is a repeatable handler |
Implements Event_handler.
◆ terminate()
int Event_cataloger::terminate |
( |
| ) |
|
|
overridevirtual |
Terminate the execution as defined in the handler implementation.
Implements Event_handler.
The documentation for this class was generated from the following files: