Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
performance_monitor_adapter.h File Reference

Adapter to bridge performance_monitor to common::interfaces::IMonitor. More...

#include "../core/performance_monitor.h"
#include <kcenon/common/interfaces/monitoring_interface.h>
#include <memory>
#include <string>
Include dependency graph for performance_monitor_adapter.h:

Go to the source code of this file.

Classes

class  kcenon::monitoring::performance_monitor_adapter
 Adapter that wraps performance_monitor to implement IMonitor interface. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::monitoring
 

Functions

std::shared_ptr< common::interfaces::IMonitor > kcenon::monitoring::make_monitor_adapter (std::shared_ptr< performance_monitor > monitor)
 Factory function to create performance_monitor_adapter.
 

Detailed Description

Adapter to bridge performance_monitor to common::interfaces::IMonitor.

This adapter resolves the multiple inheritance issue by using composition instead of inheritance. The performance_monitor class focuses on its core metrics collection functionality, while this adapter provides the IMonitor interface for interoperability with common_system.

Definition in file performance_monitor_adapter.h.