Database System 0.1.0
Advanced C++20 Database System with Multi-Backend Support
Loading...
Searching...
No Matches
database_coordinator.h File Reference

Lifecycle manager for all database system adapters (Phase 5) More...

#include "configuration.h"
#include <memory>
#include "common_result.h"
Include dependency graph for database_coordinator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  database::integrated::database_coordinator
 Manages lifecycle and coordination of all database system adapters. More...
 
struct  database::integrated::database_coordinator::coordinator_stats
 Get coordinator statistics. More...
 

Namespaces

namespace  database
 
namespace  database::integrated
 
namespace  database::integrated::adapters
 

Detailed Description

Lifecycle manager for all database system adapters (Phase 5)

The database_coordinator manages the initialization and shutdown of all integrated adapters in the correct order:

Initialization Order:

  1. Logger Adapter - For debugging subsequent initializations
  2. Monitoring Adapter - For tracking initialization metrics
  3. Thread Adapter - For async operations
  4. (Connection Pool would be next in Phase 6)

Shutdown Order:

  • Reverse of initialization to ensure clean teardown

This ensures that:

  • Dependencies are initialized before dependents
  • Logging is available throughout the lifecycle
  • Resources are released in safe order
  • Health checks can aggregate status from all adapters

Definition in file database_coordinator.h.