lm::LoadMonitor::SystemStats Class Reference

Collects various data about current system. More...

Inheritance diagram for lm::LoadMonitor::SystemStats:

lm::LoadMonitor::StatsProvider

Public Member Functions

 SystemStats (void)
 Constructor.
virtual ~SystemStats (void)
 Destructor.
virtual bool QueryData (LoadSample &target)
 Collect data and store them in the sample.
virtual bool QueryData (HardwareDescription &)
 Collect data and store their descriptions.

Detailed Description

Collects various data about current system.


Constructor & Destructor Documentation

lm::LoadMonitor::SystemStats::SystemStats ( void   ) 

Constructor.

lm::LoadMonitor::SystemStats::~SystemStats ( void   )  [virtual]

Destructor.


Member Function Documentation

bool lm::LoadMonitor::SystemStats::QueryData ( HardwareDescription  )  [virtual]

Collect data and store their descriptions.

This method does nothing.

Returns:
true on success, false otherwise.

Implements lm::LoadMonitor::StatsProvider.

bool lm::LoadMonitor::SystemStats::QueryData ( LoadSample sample  )  [virtual]

Collect data and store them in the sample.

This will read /proc/loadavg file and retrieve number of processes.

Parameters:
sample Structure which will receive data collected by this provider.
Returns:
true on success, false otherwise.

Implements lm::LoadMonitor::StatsProvider.


The documentation for this class was generated from the following files:
Generated on Tue Dec 19 17:43:49 2006 for Load Monitor for Linux by  doxygen 1.4.7