|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Backend registry for managing multiple export formats. More...
#include <metrics_backend.h>

Public Member Functions | |
| void | register_backend (std::shared_ptr< MetricsBackend > backend) |
| Register a backend. | |
| std::shared_ptr< MetricsBackend > | get (const std::string &name) const |
| Get a backend by name. | |
| bool | has (const std::string &name) const |
| Check if a backend is registered. | |
Static Public Member Functions | |
| static BackendRegistry & | instance () |
| Get the singleton instance. | |
Private Member Functions | |
| BackendRegistry () | |
Private Attributes | |
| std::map< std::string, std::shared_ptr< MetricsBackend > > | backends_ |
Backend registry for managing multiple export formats.
Allows registration and retrieval of metrics backends by name.
Definition at line 264 of file metrics_backend.h.
|
inlineprivate |
Definition at line 306 of file metrics_backend.h.
References register_backend().

|
inlinenodiscard |
Get a backend by name.
| name | Backend identifier. |
Definition at line 290 of file metrics_backend.h.
References backends_.
Referenced by kcenon::thread::metrics::EnhancedThreadPoolMetrics::to_json().

|
inlinenodiscard |
Check if a backend is registered.
| name | Backend identifier. |
Definition at line 301 of file metrics_backend.h.
References backends_.
|
inlinestatic |
Get the singleton instance.
Definition at line 270 of file metrics_backend.h.
Referenced by kcenon::thread::metrics::EnhancedThreadPoolMetrics::to_json().

|
inline |
Register a backend.
| backend | Shared pointer to the backend. |
Definition at line 279 of file metrics_backend.h.
References backends_.
Referenced by BackendRegistry().

|
private |
Definition at line 313 of file metrics_backend.h.
Referenced by get(), has(), and register_backend().