MySQL 8.0.40
Source Code Documentation
|
Base class for most individual dump process tasks, not suitable for lightweight dump tasks (e.g. More...
#include <abstract_dump_task.h>
Public Member Functions | |
Abstract_dump_task (Abstract_data_object *related_object) | |
~Abstract_dump_task () override | |
I_data_object * | get_related_db_object () const override |
std::vector< const Abstract_dump_task * > | get_dependencies () const |
std::vector< Abstract_dump_task * > | get_dependents () const |
void | add_dependency (Abstract_dump_task *dependency) |
bool | can_be_executed () const override |
Returns true if task can start processing, for example when all dependencies are met. More... | |
void | set_completed () override |
Sets task completed flag. More... | |
void | register_execution_availability_callback (std::function< void(const Abstract_dump_task *)> *availability_callback) |
Registers callback to be called once this task is able to be executed. More... | |
Public Member Functions inherited from Mysql::Tools::Dump::Abstract_simple_dump_task | |
Abstract_simple_dump_task () | |
~Abstract_simple_dump_task () override | |
bool | is_completed () const override |
Returns true if task was fully completed by all elements of chain. More... | |
void | set_completed () override |
Sets task completed flag. More... | |
Public Member Functions inherited from Mysql::Tools::Dump::I_dump_task | |
virtual | ~I_dump_task () |
Private Member Functions | |
void | check_execution_availability () |
Private Attributes | |
Abstract_data_object * | m_related_object |
std::vector< const Abstract_dump_task * > | m_dependencies |
std::vector< Abstract_dump_task * > | m_dependents |
std::vector< std::function< void(const Abstract_dump_task *)> * > | m_availability_callbacks |
std::mutex | m_task_mutex |
Base class for most individual dump process tasks, not suitable for lightweight dump tasks (e.g.
Row).
|
explicit |
|
overridedefault |
void Abstract_dump_task::add_dependency | ( | Abstract_dump_task * | dependency | ) |
|
overridevirtual |
Returns true if task can start processing, for example when all dependencies are met.
Implements Mysql::Tools::Dump::I_dump_task.
|
private |
std::vector< const Abstract_dump_task * > Abstract_dump_task::get_dependencies | ( | ) | const |
std::vector< Abstract_dump_task * > Abstract_dump_task::get_dependents | ( | ) | const |
|
overridevirtual |
Implements Mysql::Tools::Dump::I_dump_task.
void Abstract_dump_task::register_execution_availability_callback | ( | std::function< void(const Abstract_dump_task *)> * | availability_callback | ) |
Registers callback to be called once this task is able to be executed.
|
overridevirtual |
Sets task completed flag.
Need to be called once main chain element receives completion report.
Implements Mysql::Tools::Dump::I_dump_task.
|
private |
|
private |
|
private |
|
private |
|
private |