#include <StatisticsReporter.h>
Public Member Functions | |
virtual void | actionPerformed (xdata::Event &) |
stor::AlarmHandlerPtr | alarmHandler () |
const DataRetrieverMonitorCollection & | getDataRetrieverMonitorCollection () const |
DataRetrieverMonitorCollection & | getDataRetrieverMonitorCollection () |
const stor::DQMConsumerMonitorCollection & | getDQMConsumerMonitorCollection () const |
stor::DQMConsumerMonitorCollection & | getDQMConsumerMonitorCollection () |
const stor::DQMEventMonitorCollection & | getDQMEventMonitorCollection () const |
stor::DQMEventMonitorCollection & | getDQMEventMonitorCollection () |
const stor::EventConsumerMonitorCollection & | getEventConsumerMonitorCollection () const |
stor::EventConsumerMonitorCollection & | getEventConsumerMonitorCollection () |
void | reset () |
void | startWorkLoop (std::string workloopName) |
StatisticsReporter (xdaq::Application *, const QueueConfigurationParams &) | |
virtual | ~StatisticsReporter () |
Private Types | |
typedef std::list< std::string > | InfoSpaceItemNames |
Private Member Functions | |
void | calculateStatistics () |
void | collectInfoSpaceItems () |
void | createMonitoringInfoSpace () |
bool | monitorAction (toolbox::task::WorkLoop *) |
StatisticsReporter & | operator= (StatisticsReporter const &) |
void | putItemsIntoInfoSpace (stor::MonitorCollection::InfoSpaceItems &) |
StatisticsReporter (StatisticsReporter const &) | |
void | updateInfoSpace () |
Private Attributes | |
stor::AlarmHandlerPtr | alarmHandler_ |
xdaq::Application * | app_ |
DataRetrieverMonitorCollection | dataRetrieverMonCollection_ |
bool | doMonitoring_ |
stor::DQMConsumerMonitorCollection | dqmConsumerMonCollection_ |
stor::DQMEventMonitorCollection | dqmEventMonCollection_ |
stor::EventConsumerMonitorCollection | eventConsumerMonCollection_ |
xdata::InfoSpace * | infoSpace_ |
InfoSpaceItemNames | infoSpaceItemNames_ |
stor::utils::TimePoint_t | lastMonitorAction_ |
stor::utils::Duration_t | monitoringSleepSec_ |
toolbox::task::WorkLoop * | monitorWL_ |
Singleton to keep track of all monitoring and statistics issues
This class also starts the monitoring workloop to update the statistics for all MonitorCollections.
Definition at line 42 of file StatisticsReporter.h.
|
private |
Definition at line 104 of file StatisticsReporter.h.
|
explicit |
Definition at line 23 of file StatisticsReporter.cc.
References reset().
|
virtual |
Definition at line 75 of file StatisticsReporter.cc.
References doMonitoring_, and monitorWL_.
|
private |
|
virtual |
Update the variables put into the application info space
Definition at line 282 of file StatisticsReporter.cc.
|
inline |
Access alarm handler
Definition at line 94 of file StatisticsReporter.h.
References alarmHandler_.
|
private |
Definition at line 213 of file StatisticsReporter.cc.
References stor::MonitorCollection::calculateStatistics(), dataRetrieverMonCollection_, dqmConsumerMonCollection_, dqmEventMonCollection_, eventConsumerMonCollection_, stor::utils::getCurrentTime(), and cmsPerfSuiteHarvest::now.
Referenced by monitorAction().
|
private |
Definition at line 118 of file StatisticsReporter.cc.
References stor::MonitorCollection::appendInfoSpaceItems(), dataRetrieverMonCollection_, dqmConsumerMonCollection_, dqmEventMonCollection_, eventConsumerMonCollection_, infoSpaceItemNames_, and putItemsIntoInfoSpace().
|
private |
Definition at line 85 of file StatisticsReporter.cc.
References app_, alignCSCRings::e, edm::hlt::Exception, infoSpace_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 54 of file StatisticsReporter.h.
References dataRetrieverMonCollection_.
|
inline |
Definition at line 57 of file StatisticsReporter.h.
References dataRetrieverMonCollection_.
|
inline |
Definition at line 74 of file StatisticsReporter.h.
References dqmConsumerMonCollection_.
|
inline |
Definition at line 77 of file StatisticsReporter.h.
References dqmConsumerMonCollection_.
|
inline |
Definition at line 60 of file StatisticsReporter.h.
References dqmEventMonCollection_.
|
inline |
Definition at line 63 of file StatisticsReporter.h.
References dqmEventMonCollection_.
|
inline |
Definition at line 67 of file StatisticsReporter.h.
References eventConsumerMonCollection_.
|
inline |
Definition at line 70 of file StatisticsReporter.h.
References eventConsumerMonCollection_.
|
private |
Definition at line 164 of file StatisticsReporter.cc.
References app_, calculateStatistics(), doMonitoring_, alignCSCRings::e, cppFunctionSkipper::exception, edm::hlt::Exception, stor::utils::getCurrentTime(), lastMonitorAction_, monitoringSleepSec_, stor::utils::sleepUntil(), AlCaHLTBitMon_QueryRunRegistry::string, and updateInfoSpace().
Referenced by startWorkLoop().
|
private |
|
private |
Definition at line 133 of file StatisticsReporter.cc.
References alignCSCRings::e, and edm::hlt::Exception.
Referenced by collectInfoSpaceItems().
void smproxy::StatisticsReporter::reset | ( | void | ) |
Reset all monitored quantities
Definition at line 269 of file StatisticsReporter.cc.
References alarmHandler_, dataRetrieverMonCollection_, dqmConsumerMonCollection_, dqmEventMonCollection_, eventConsumerMonCollection_, stor::utils::getCurrentTime(), cmsPerfSuiteHarvest::now, and stor::MonitorCollection::reset().
void smproxy::StatisticsReporter::startWorkLoop | ( | std::string | workloopName | ) |
Create and start the monitoring workloop
Definition at line 42 of file StatisticsReporter.cc.
References app_, doMonitoring_, alignCSCRings::e, edm::hlt::Exception, stor::utils::getCurrentTime(), stor::utils::getIdentifier(), lastMonitorAction_, monitorAction(), monitorWL_, lumiQueryAPI::msg, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 224 of file StatisticsReporter.cc.
References dataRetrieverMonCollection_, dqmConsumerMonCollection_, dqmEventMonCollection_, alignCSCRings::e, eventConsumerMonCollection_, cppFunctionSkipper::exception, edm::hlt::Exception, infoSpace_, infoSpaceItemNames_, AlCaHLTBitMon_QueryRunRegistry::string, and stor::MonitorCollection::updateInfoSpaceItems().
Referenced by monitorAction().
|
private |
Definition at line 118 of file StatisticsReporter.h.
Referenced by alarmHandler(), and reset().
|
private |
Definition at line 117 of file StatisticsReporter.h.
Referenced by createMonitoringInfoSpace(), monitorAction(), and startWorkLoop().
|
private |
Definition at line 122 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getDataRetrieverMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 127 of file StatisticsReporter.h.
Referenced by monitorAction(), startWorkLoop(), and ~StatisticsReporter().
|
private |
Definition at line 125 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getDQMConsumerMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 123 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getDQMEventMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 124 of file StatisticsReporter.h.
Referenced by calculateStatistics(), collectInfoSpaceItems(), getEventConsumerMonitorCollection(), reset(), and updateInfoSpace().
|
private |
Definition at line 130 of file StatisticsReporter.h.
Referenced by createMonitoringInfoSpace(), and updateInfoSpace().
|
private |
Definition at line 131 of file StatisticsReporter.h.
Referenced by collectInfoSpaceItems(), and updateInfoSpace().
|
private |
Definition at line 120 of file StatisticsReporter.h.
Referenced by monitorAction(), and startWorkLoop().
|
private |
Definition at line 119 of file StatisticsReporter.h.
Referenced by monitorAction().
|
private |
Definition at line 126 of file StatisticsReporter.h.
Referenced by startWorkLoop(), and ~StatisticsReporter().