YAMI4 - C++ general-purpose interface
|
Simple activity statistics monitor. More...
#include <activity_statistics_monitor.h>
Inherits yami::event_callback.
Public Member Functions | |
void | get (parameters ¶ms, bool reset_counters=false) |
Retrieves all collected statistics. | |
void | operator() (incoming_message &msg) |
Standard reply to the incoming message. |
This class defines the basic stats monitor that is based on the event notification mechanism. The monitor can also be used for remote inspection of the collected data, as it can directly play the role of regular object that implements the "get" command.
void activity_statistics_monitor::get | ( | parameters & | params, |
bool | reset_counters = false |
||
) |
Retrieves the collected statistics by filling the given parameters object. Optional atomic reset of the counters is possible.
params | The parameters object to be filled with data. |
reset_counters | Request atomic reset of the counters. |
void activity_statistics_monitor::operator() | ( | incoming_message & | msg | ) |
Implements the standard reply to the remote "get" command and replies with a parameters object filled with collected statistics.
msg | Incoming message object. |