|
Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
|
Manages lifecycle and coordination of all database system adapters. More...
#include <database_coordinator.h>

Classes | |
| struct | coordinator_stats |
| Get coordinator statistics. More... | |
| class | impl |
Public Member Functions | |
| database_coordinator (const unified_db_config &config) | |
| Construct coordinator with configuration. | |
| ~database_coordinator () | |
| Destructor - ensures graceful shutdown. | |
| database_coordinator (const database_coordinator &)=delete | |
| database_coordinator & | operator= (const database_coordinator &)=delete |
| database_coordinator (database_coordinator &&) noexcept | |
| database_coordinator & | operator= (database_coordinator &&) noexcept |
| common::VoidResult | initialize () |
| Initialize all adapters in correct order. | |
| common::VoidResult | shutdown () |
| Shutdown all adapters in reverse order. | |
| bool | is_initialized () const |
| Check if coordinator is initialized. | |
| adapters::logger_adapter * | get_logger () |
| Get logger adapter. | |
| adapters::monitoring_adapter * | get_monitor () |
| Get monitoring adapter. | |
| adapters::thread_adapter * | get_thread_pool () |
| Get thread adapter. | |
| common::Result< bool > | check_health () |
| Perform aggregate health check of all adapters. | |
| common::Result< coordinator_stats > | get_stats () const |
Private Attributes | |
| std::unique_ptr< impl > | pimpl_ |
Manages lifecycle and coordination of all database system adapters.
This class is responsible for:
Definition at line 98 of file database_coordinator.h.
|
explicit |
Construct coordinator with configuration.
| config | Unified configuration for all adapters |
Definition at line 386 of file database_coordinator.cpp.
|
default |
Destructor - ensures graceful shutdown.
|
delete |
|
defaultnoexcept |
| common::Result< bool > database::integrated::database_coordinator::check_health | ( | ) |
Perform aggregate health check of all adapters.
Checks:
Definition at line 426 of file database_coordinator.cpp.
References pimpl_.
Referenced by test_full_integration(), and test_health_check().

| adapters::logger_adapter * database::integrated::database_coordinator::get_logger | ( | ) |
Get logger adapter.
Definition at line 411 of file database_coordinator.cpp.
References pimpl_.
Referenced by test_adapter_access(), test_full_integration(), and test_logger_functionality().

| adapters::monitoring_adapter * database::integrated::database_coordinator::get_monitor | ( | ) |
Get monitoring adapter.
Definition at line 416 of file database_coordinator.cpp.
References pimpl_.
Referenced by test_adapter_access(), test_full_integration(), and test_monitoring_functionality().

| common::Result< database_coordinator::coordinator_stats > database::integrated::database_coordinator::get_stats | ( | ) | const |
Definition at line 431 of file database_coordinator.cpp.
References pimpl_.
Referenced by test_statistics().

| adapters::thread_adapter * database::integrated::database_coordinator::get_thread_pool | ( | ) |
Get thread adapter.
Definition at line 421 of file database_coordinator.cpp.
References pimpl_.
Referenced by test_adapter_access(), test_full_integration(), and test_thread_pool_functionality().

| common::VoidResult database::integrated::database_coordinator::initialize | ( | ) |
Initialize all adapters in correct order.
Initialization order:
If any initialization fails, previously initialized adapters are shut down cleanly.
Definition at line 396 of file database_coordinator.cpp.
References initialize().
Referenced by initialize(), test_adapter_access(), test_automatic_shutdown_in_destructor(), test_basic_initialization_and_shutdown(), test_double_initialization(), test_full_integration(), test_health_check(), test_logger_functionality(), test_monitoring_functionality(), test_statistics(), and test_thread_pool_functionality().


| bool database::integrated::database_coordinator::is_initialized | ( | ) | const |
Check if coordinator is initialized.
Definition at line 406 of file database_coordinator.cpp.
References pimpl_.
Referenced by test_basic_initialization_and_shutdown().

|
delete |
|
defaultnoexcept |
| common::VoidResult database::integrated::database_coordinator::shutdown | ( | ) |
Shutdown all adapters in reverse order.
Shutdown order (reverse of init):
Definition at line 401 of file database_coordinator.cpp.
References pimpl_.
Referenced by test_adapter_access(), test_basic_initialization_and_shutdown(), test_double_initialization(), test_full_integration(), test_health_check(), test_logger_functionality(), test_monitoring_functionality(), test_shutdown_without_initialization(), test_statistics(), and test_thread_pool_functionality().

|
private |
Definition at line 205 of file database_coordinator.h.
Referenced by check_health(), get_logger(), get_monitor(), get_stats(), get_thread_pool(), is_initialized(), and shutdown().