#include <MonitorCollection.h>
Public Types | |
typedef std::vector< std::pair < std::string, xdata::Serializable * > > | InfoSpaceItems |
Public Member Functions | |
void | appendInfoSpaceItems (InfoSpaceItems &) |
void | calculateStatistics (const utils::TimePoint_t &now) |
MonitorCollection (const utils::Duration_t &updateInterval) | |
void | reset (const utils::TimePoint_t &now) |
void | updateInfoSpaceItems () |
virtual | ~MonitorCollection () |
Protected Member Functions | |
virtual void | do_appendInfoSpaceItems (InfoSpaceItems &) |
virtual void | do_calculateStatistics ()=0 |
virtual void | do_reset ()=0 |
virtual void | do_updateInfoSpaceItems () |
Private Member Functions | |
MonitorCollection (MonitorCollection const &) | |
MonitorCollection & | operator= (MonitorCollection const &) |
Private Attributes | |
bool | infoSpaceUpdateNeeded_ |
utils::TimePoint_t | lastCalculateStatistics_ |
const utils::Duration_t | updateInterval_ |
An abstract collection of MonitoredQuantities
Definition at line 25 of file MonitorCollection.h.
typedef std::vector< std::pair<std::string, xdata::Serializable*> > stor::MonitorCollection::InfoSpaceItems |
Definition at line 29 of file MonitorCollection.h.
|
explicit |
Definition at line 10 of file MonitorCollection.cc.
|
inlinevirtual |
Definition at line 36 of file MonitorCollection.h.
|
private |
void stor::MonitorCollection::appendInfoSpaceItems | ( | InfoSpaceItems & | items | ) |
Append the info space items to be published in the monitoring info space to the InfoSpaceItems
Definition at line 17 of file MonitorCollection.cc.
References do_appendInfoSpaceItems().
Referenced by smproxy::StatisticsReporter::collectInfoSpaceItems(), and stor::StatisticsReporter::collectInfoSpaceItems().
void stor::MonitorCollection::calculateStatistics | ( | const utils::TimePoint_t & | now | ) |
Calculates the statistics for all quantities
Definition at line 25 of file MonitorCollection.cc.
References do_calculateStatistics(), infoSpaceUpdateNeeded_, lastCalculateStatistics_, cmsPerfSuiteHarvest::now, and updateInterval_.
Referenced by smproxy::StatisticsReporter::calculateStatistics(), and stor::StatisticsReporter::calculateStatistics().
|
inlineprotectedvirtual |
Reimplemented in stor::DataSenderMonitorCollection, stor::ThroughputMonitorCollection, stor::DQMEventMonitorCollection, stor::StreamsMonitorCollection, stor::ResourceMonitorCollection, stor::FragmentMonitorCollection, stor::RunMonitorCollection, stor::FilesMonitorCollection, stor::StateMachineMonitorCollection, stor::DQMConsumerMonitorCollection, and stor::EventConsumerMonitorCollection.
Definition at line 67 of file MonitorCollection.h.
Referenced by appendInfoSpaceItems().
|
protectedpure virtual |
Implemented in stor::DataSenderMonitorCollection, stor::ThroughputMonitorCollection, smproxy::DataRetrieverMonitorCollection, stor::DQMEventMonitorCollection, stor::StreamsMonitorCollection, stor::ResourceMonitorCollection, stor::FragmentMonitorCollection, stor::RunMonitorCollection, stor::ConsumerMonitorCollection, stor::FilesMonitorCollection, and stor::StateMachineMonitorCollection.
Referenced by calculateStatistics().
|
protectedpure virtual |
Implemented in stor::DataSenderMonitorCollection, stor::ThroughputMonitorCollection, smproxy::DataRetrieverMonitorCollection, stor::DQMEventMonitorCollection, stor::StreamsMonitorCollection, stor::ResourceMonitorCollection, stor::FragmentMonitorCollection, stor::RunMonitorCollection, stor::ConsumerMonitorCollection, stor::FilesMonitorCollection, and stor::StateMachineMonitorCollection.
Referenced by reset().
|
inlineprotectedvirtual |
Reimplemented in stor::DataSenderMonitorCollection, stor::ThroughputMonitorCollection, stor::DQMEventMonitorCollection, stor::StreamsMonitorCollection, stor::ResourceMonitorCollection, stor::FragmentMonitorCollection, stor::RunMonitorCollection, stor::FilesMonitorCollection, stor::StateMachineMonitorCollection, stor::DQMConsumerMonitorCollection, and stor::EventConsumerMonitorCollection.
Definition at line 68 of file MonitorCollection.h.
Referenced by updateInfoSpaceItems().
|
private |
void stor::MonitorCollection::reset | ( | const utils::TimePoint_t & | now | ) |
Resets the monitored quantities
Definition at line 47 of file MonitorCollection.cc.
References do_reset(), infoSpaceUpdateNeeded_, lastCalculateStatistics_, seconds(), and updateInterval_.
Referenced by smproxy::StatisticsReporter::reset(), and stor::StatisticsReporter::reset().
void stor::MonitorCollection::updateInfoSpaceItems | ( | ) |
Update all values of the items put into the monitoring info space. The caller has to make sure that the info space where the items reside is locked and properly unlocked after the call.
Definition at line 37 of file MonitorCollection.cc.
References do_updateInfoSpaceItems(), and infoSpaceUpdateNeeded_.
Referenced by stor::StatisticsReporter::actionPerformed(), smproxy::StatisticsReporter::updateInfoSpace(), and stor::StatisticsReporter::updateInfoSpace().
|
private |
Definition at line 79 of file MonitorCollection.h.
Referenced by calculateStatistics(), reset(), and updateInfoSpaceItems().
|
private |
Definition at line 78 of file MonitorCollection.h.
Referenced by calculateStatistics(), and reset().
|
private |
Definition at line 77 of file MonitorCollection.h.
Referenced by calculateStatistics(), and reset().