#include <DataSenderMonitorCollection.h>
Classes | |
struct | FilterUnitKey |
struct | FilterUnitRecord |
struct | FilterUnitResult |
struct | OutputModuleRecord |
struct | OutputModuleResult |
struct | ResourceBrokerKey |
struct | ResourceBrokerRecord |
struct | ResourceBrokerResult |
Public Types | |
typedef std::vector< FUResultPtr > | FilterUnitResultsList |
typedef boost::shared_ptr < FilterUnitRecord > | FURecordPtr |
typedef boost::shared_ptr < FilterUnitResult > | FUResultPtr |
typedef boost::shared_ptr < OutputModuleRecord > | OutModRecordPtr |
typedef uint32_t | OutputModuleKey |
typedef std::map < OutputModuleKey, OutModRecordPtr > | OutputModuleRecordMap |
typedef std::vector < boost::shared_ptr < OutputModuleResult > > | OutputModuleResultsList |
typedef boost::shared_ptr < ResourceBrokerRecord > | RBRecordPtr |
typedef boost::shared_ptr < ResourceBrokerResult > | RBResultPtr |
typedef std::vector< RBResultPtr > | ResourceBrokerResultsList |
typedef long long | UniqueResourceBrokerID_t |
Public Types inherited from stor::MonitorCollection | |
typedef std::vector< std::pair < std::string, xdata::Serializable * > > | InfoSpaceItems |
Private Attributes | |
xdata::UnsignedInteger32 | activeEPs_ |
AlarmHandlerPtr | alarmHandler_ |
boost::mutex | collectionsMutex_ |
xdata::UnsignedInteger32 | connectedEPs_ |
xdata::UnsignedInteger32 | connectedRBs_ |
xdata::UnsignedInteger32 | faultyEvents_ |
xdata::UnsignedInteger32 | ignoredDiscards_ |
OutputModuleRecordMap | outputModuleMap_ |
xdata::Integer32 | outstandingDataDiscards_ |
xdata::Integer32 | outstandingDQMDiscards_ |
std::map< ResourceBrokerKey, UniqueResourceBrokerID_t > | resourceBrokerIDs_ |
std::map < UniqueResourceBrokerID_t, RBRecordPtr > | resourceBrokerMap_ |
const utils::Duration_t | updateInterval_ |
Additional Inherited Members |
A collection of MonitoredQuantities to track received fragments and events by their source (resource broker, filter unit, etc.)
Definition at line 31 of file DataSenderMonitorCollection.h.
typedef std::vector<FUResultPtr> stor::DataSenderMonitorCollection::FilterUnitResultsList |
Definition at line 290 of file DataSenderMonitorCollection.h.
typedef boost::shared_ptr<FilterUnitRecord> stor::DataSenderMonitorCollection::FURecordPtr |
Definition at line 173 of file DataSenderMonitorCollection.h.
typedef boost::shared_ptr<FilterUnitResult> stor::DataSenderMonitorCollection::FUResultPtr |
Definition at line 289 of file DataSenderMonitorCollection.h.
typedef boost::shared_ptr<OutputModuleRecord> stor::DataSenderMonitorCollection::OutModRecordPtr |
Definition at line 133 of file DataSenderMonitorCollection.h.
typedef uint32_t stor::DataSenderMonitorCollection::OutputModuleKey |
Key that is used to identify output modules.
Definition at line 115 of file DataSenderMonitorCollection.h.
typedef std::map<OutputModuleKey, OutModRecordPtr> stor::DataSenderMonitorCollection::OutputModuleRecordMap |
Definition at line 134 of file DataSenderMonitorCollection.h.
typedef std::vector< boost::shared_ptr<OutputModuleResult> > stor::DataSenderMonitorCollection::OutputModuleResultsList |
Definition at line 226 of file DataSenderMonitorCollection.h.
typedef boost::shared_ptr<ResourceBrokerRecord> stor::DataSenderMonitorCollection::RBRecordPtr |
Definition at line 212 of file DataSenderMonitorCollection.h.
typedef boost::shared_ptr<ResourceBrokerResult> stor::DataSenderMonitorCollection::RBResultPtr |
Definition at line 261 of file DataSenderMonitorCollection.h.
typedef std::vector<RBResultPtr> stor::DataSenderMonitorCollection::ResourceBrokerResultsList |
Definition at line 262 of file DataSenderMonitorCollection.h.
typedef long long stor::DataSenderMonitorCollection::UniqueResourceBrokerID_t |
Results for a given resource broker.
Definition at line 231 of file DataSenderMonitorCollection.h.
stor::DataSenderMonitorCollection::DataSenderMonitorCollection | ( | const utils::Duration_t & | updateInterval, |
AlarmHandlerPtr | ah | ||
) |
Constructor.
Definition at line 18 of file DataSenderMonitorCollection.cc.
|
private |
void stor::DataSenderMonitorCollection::addDQMEventSample | ( | I2OChain const & | i2oChain | ) |
Adds the specified (complete) DQMEvent to the monitor collection.
Definition at line 119 of file DataSenderMonitorCollection.cc.
References collectionsMutex_, stor::I2OChain::complete(), Header::DQM_EVENT, getFURecordPointer(), getRBRecordPointer(), stor::I2OChain::messageCode(), and stor::I2OChain::totalDataSize().
Referenced by stor::EventDistributor::tagCompleteEventForQueues().
void stor::DataSenderMonitorCollection::addErrorEventSample | ( | I2OChain const & | i2oChain | ) |
Adds the specified (complete) ErrorEvent to the monitor collection.
Definition at line 150 of file DataSenderMonitorCollection.cc.
References collectionsMutex_, stor::I2OChain::complete(), Header::ERROR_EVENT, getFURecordPointer(), getRBRecordPointer(), stor::I2OChain::messageCode(), and stor::I2OChain::totalDataSize().
Referenced by stor::EventDistributor::tagCompleteEventForQueues().
void stor::DataSenderMonitorCollection::addEventSample | ( | I2OChain const & | i2oChain | ) |
Adds the specified (complete) Event to the monitor collection.
Definition at line 76 of file DataSenderMonitorCollection.cc.
References collectionsMutex_, stor::I2OChain::complete(), Header::EVENT, stor::I2OChain::eventNumber(), getAllNeededPointers(), stor::I2OChain::messageCode(), convertSQLiteXML::runNumber, stor::I2OChain::runNumber(), and stor::I2OChain::totalDataSize().
Referenced by stor::EventDistributor::tagCompleteEventForQueues().
void stor::DataSenderMonitorCollection::addFaultyEventSample | ( | I2OChain const & | i2oChain | ) |
Adds the specified faulty chain to the monitor collection.
Definition at line 181 of file DataSenderMonitorCollection.cc.
References collectionsMutex_, Header::DQM_EVENT, getFURecordPointer(), getRBRecordPointer(), stor::I2OChain::messageCode(), and stor::I2OChain::totalDataSize().
Referenced by stor::EventDistributor::addEventToRelevantQueues(), and stor::EventDistributor::tagCompleteEventForQueues().
void stor::DataSenderMonitorCollection::addInitSample | ( | I2OChain const & | i2oChain | ) |
Adds the specified (complete) INIT message to the monitor collection.
Definition at line 35 of file DataSenderMonitorCollection.cc.
References collectionsMutex_, stor::I2OChain::complete(), getAllNeededPointers(), Header::INIT, stor::I2OChain::messageCode(), stor::I2OChain::nExpectedEPs(), stor::I2OChain::outputModuleLabel(), AlCaHLTBitMon_QueryRunRegistry::string, and stor::I2OChain::totalDataSize().
Referenced by stor::EventDistributor::tagCompleteEventForQueues().
|
private |
Definition at line 767 of file DataSenderMonitorCollection.cc.
References query::result.
Referenced by getOutputModuleResultsForRB(), and getTopLevelOutputModuleResults().
|
private |
Definition at line 789 of file DataSenderMonitorCollection.cc.
References query::result.
Referenced by getAllResourceBrokerResults(), and getOneResourceBrokerResult().
|
private |
Definition at line 821 of file DataSenderMonitorCollection.cc.
Referenced by do_calculateStatistics().
|
privatevirtual |
Reimplemented from stor::MonitorCollection.
Definition at line 466 of file DataSenderMonitorCollection.cc.
References activeEPs_, connectedEPs_, connectedRBs_, faultyEvents_, ignoredDiscards_, outstandingDataDiscards_, and outstandingDQMDiscards_.
|
privatevirtual |
Implements stor::MonitorCollection.
Definition at line 406 of file DataSenderMonitorCollection.cc.
References calcStatsForOutputModules(), collectionsMutex_, outputModuleMap_, and resourceBrokerMap_.
|
privatevirtual |
Implements stor::MonitorCollection.
Definition at line 450 of file DataSenderMonitorCollection.cc.
References activeEPs_, collectionsMutex_, connectedEPs_, connectedRBs_, faultyEvents_, ignoredDiscards_, outputModuleMap_, outstandingDataDiscards_, outstandingDQMDiscards_, and resourceBrokerMap_.
|
privatevirtual |
Reimplemented from stor::MonitorCollection.
Definition at line 478 of file DataSenderMonitorCollection.cc.
References activeEPs_, collectionsMutex_, connectedEPs_, connectedRBs_, faultyEvents_, faultyEventsAlarm(), stor::MonitoredQuantity::Stats::getSampleCount(), ignoredDiscardAlarm(), ignoredDiscards_, outstandingDataDiscards_, outstandingDQMDiscards_, stor::MonitoredQuantity::RECENT, and resourceBrokerMap_.
|
private |
Definition at line 551 of file DataSenderMonitorCollection.cc.
References alarmHandler_, stor::AlarmHandler::ERROR, lumiQueryAPI::msg, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by do_updateInfoSpaceItems().
|
private |
Definition at line 608 of file DataSenderMonitorCollection.cc.
References stor::DataSenderMonitorCollection::ResourceBrokerKey::isValid, stor::DataSenderMonitorCollection::FilterUnitKey::isValid, and stor::I2OChain::outputModuleId().
Referenced by addEventSample(), and addInitSample().
DataSenderMonitorCollection::ResourceBrokerResultsList stor::DataSenderMonitorCollection::getAllResourceBrokerResults | ( | ) | const |
Fetches the resource broker overview statistics.
Definition at line 298 of file DataSenderMonitorCollection.cc.
References buildResourceBrokerResult(), collectionsMutex_, resourceBrokerMap_, and query::result.
Referenced by stor::SMWebPageHelper::addResourceBrokerList().
size_t stor::DataSenderMonitorCollection::getConnectedEPs | ( | ) | const |
Return the number of event processors connected.
Definition at line 590 of file DataSenderMonitorCollection.cc.
References prof2calltree::count, and resourceBrokerMap_.
|
private |
Definition at line 717 of file DataSenderMonitorCollection.cc.
DataSenderMonitorCollection::FilterUnitResultsList stor::DataSenderMonitorCollection::getFilterUnitResultsForRB | ( | UniqueResourceBrokerID_t | uniqueRBID | ) | const |
Fetches the filter unit results for a specific resource broker.
Definition at line 356 of file DataSenderMonitorCollection.cc.
References collectionsMutex_, resourceBrokerMap_, and query::result.
Referenced by stor::SMWebPageHelper::addFilterUnitList().
|
private |
Definition at line 654 of file DataSenderMonitorCollection.cc.
References stor::DataSenderMonitorCollection::FilterUnitKey::isValid.
Referenced by addDQMEventSample(), addErrorEventSample(), addFaultyEventSample(), incrementDataDiscardCount(), incrementDQMDiscardCount(), and incrementSkippedDiscardCount().
DataSenderMonitorCollection::RBResultPtr stor::DataSenderMonitorCollection::getOneResourceBrokerResult | ( | UniqueResourceBrokerID_t | uniqueRBID | ) | const |
Fetches statistics for a specific resource broker.
Definition at line 319 of file DataSenderMonitorCollection.cc.
References buildResourceBrokerResult(), collectionsMutex_, resourceBrokerMap_, and query::result.
Referenced by stor::SMWebPageHelper::addResourceBrokerDetails().
|
private |
Definition at line 740 of file DataSenderMonitorCollection.cc.
DataSenderMonitorCollection::OutputModuleResultsList stor::DataSenderMonitorCollection::getOutputModuleResultsForRB | ( | UniqueResourceBrokerID_t | uniqueRBID | ) | const |
Fetches the output module statistics for a specific resource broker.
Definition at line 338 of file DataSenderMonitorCollection.cc.
References buildOutputModuleResults(), collectionsMutex_, and resourceBrokerMap_.
Referenced by stor::SMWebPageHelper::addOutputModuleStatistics().
|
private |
Definition at line 640 of file DataSenderMonitorCollection.cc.
References stor::DataSenderMonitorCollection::ResourceBrokerKey::isValid.
Referenced by addDQMEventSample(), addErrorEventSample(), addFaultyEventSample(), incrementDataDiscardCount(), incrementDQMDiscardCount(), and incrementSkippedDiscardCount().
|
private |
Definition at line 669 of file DataSenderMonitorCollection.cc.
References getUniqueResourceBrokerID(), resourceBrokerMap_, and updateInterval_.
DataSenderMonitorCollection::OutputModuleResultsList stor::DataSenderMonitorCollection::getTopLevelOutputModuleResults | ( | ) | const |
Fetches the top-level output module statistics.
Definition at line 289 of file DataSenderMonitorCollection.cc.
References buildOutputModuleResults(), collectionsMutex_, and outputModuleMap_.
Referenced by stor::SMWebPageHelper::addDOMforSummaryInformation(), and stor::SMWebPageHelper::addOutputModuleTables().
|
private |
Definition at line 689 of file DataSenderMonitorCollection.cc.
References stor::DataSenderMonitorCollection::ResourceBrokerKey::hltClassName, stor::DataSenderMonitorCollection::ResourceBrokerKey::hltInstance, stor::DataSenderMonitorCollection::ResourceBrokerKey::hltLocalId, stor::DataSenderMonitorCollection::ResourceBrokerKey::hltTid, stor::DataSenderMonitorCollection::ResourceBrokerKey::hltURL, dttmaxenums::L, resourceBrokerIDs_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getResourceBrokerRecord().
|
private |
Definition at line 571 of file DataSenderMonitorCollection.cc.
References alarmHandler_, stor::AlarmHandler::ERROR, lumiQueryAPI::msg, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by do_updateInfoSpaceItems().
void stor::DataSenderMonitorCollection::incrementDataDiscardCount | ( | I2OChain const & | i2oChain | ) |
Increments the number of data discard messages tracked by the monitor collection.
Definition at line 216 of file DataSenderMonitorCollection.cc.
References collectionsMutex_, getFURecordPointer(), and getRBRecordPointer().
Referenced by stor::DiscardManager::sendDiscardMessage().
void stor::DataSenderMonitorCollection::incrementDQMDiscardCount | ( | I2OChain const & | i2oChain | ) |
Increments the number of DQM discard messages tracked by the monitor collection.
Definition at line 240 of file DataSenderMonitorCollection.cc.
References collectionsMutex_, getFURecordPointer(), and getRBRecordPointer().
Referenced by stor::DiscardManager::sendDiscardMessage().
void stor::DataSenderMonitorCollection::incrementSkippedDiscardCount | ( | I2OChain const & | i2oChain | ) |
Increments the number of skipped discard messages tracked by the monitor collection.
Definition at line 264 of file DataSenderMonitorCollection.cc.
References collectionsMutex_, getFURecordPointer(), and getRBRecordPointer().
Referenced by stor::DiscardManager::sendDiscardMessage().
|
private |
|
private |
Definition at line 419 of file DataSenderMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), do_reset(), and do_updateInfoSpaceItems().
|
private |
Definition at line 431 of file DataSenderMonitorCollection.h.
Referenced by faultyEventsAlarm(), and ignoredDiscardAlarm().
|
mutableprivate |
Definition at line 415 of file DataSenderMonitorCollection.h.
Referenced by addDQMEventSample(), addErrorEventSample(), addEventSample(), addFaultyEventSample(), addInitSample(), do_calculateStatistics(), do_reset(), do_updateInfoSpaceItems(), getAllResourceBrokerResults(), getFilterUnitResultsForRB(), getOneResourceBrokerResult(), getOutputModuleResultsForRB(), getTopLevelOutputModuleResults(), incrementDataDiscardCount(), incrementDQMDiscardCount(), and incrementSkippedDiscardCount().
|
private |
Definition at line 418 of file DataSenderMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), do_reset(), and do_updateInfoSpaceItems().
|
private |
Definition at line 417 of file DataSenderMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), do_reset(), and do_updateInfoSpaceItems().
|
private |
Definition at line 422 of file DataSenderMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), do_reset(), and do_updateInfoSpaceItems().
|
private |
Definition at line 423 of file DataSenderMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), do_reset(), and do_updateInfoSpaceItems().
|
private |
Definition at line 425 of file DataSenderMonitorCollection.h.
Referenced by do_calculateStatistics(), do_reset(), and getTopLevelOutputModuleResults().
|
private |
Definition at line 420 of file DataSenderMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), do_reset(), and do_updateInfoSpaceItems().
|
private |
Definition at line 421 of file DataSenderMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), do_reset(), and do_updateInfoSpaceItems().
|
private |
Definition at line 427 of file DataSenderMonitorCollection.h.
Referenced by getUniqueResourceBrokerID().
|
private |
Definition at line 428 of file DataSenderMonitorCollection.h.
Referenced by do_calculateStatistics(), do_reset(), do_updateInfoSpaceItems(), getAllResourceBrokerResults(), getConnectedEPs(), getFilterUnitResultsForRB(), getOneResourceBrokerResult(), getOutputModuleResultsForRB(), and getResourceBrokerRecord().
|
private |
Definition at line 430 of file DataSenderMonitorCollection.h.
Referenced by getResourceBrokerRecord().