#include <SMWebPageHelper.h>
Public Member Functions | |
void | consumerStatistics (xgi::Output *) const |
void | defaultWebPage (xgi::Output *) const |
void | dqmEventWebPage (xgi::Output *) const |
void | filesWebPage (xgi::Output *) const |
void | inputWebPage (xgi::Output *) const |
void | resourceBrokerDetail (xgi::Output *, const long long &uniqueRBID) const |
void | resourceBrokerOverview (xgi::Output *) const |
SMWebPageHelper (xdaq::ApplicationDescriptor *, SharedResourcesPtr) | |
void | storedDataWebPage (xgi::Output *) const |
void | throughputWebPage (xgi::Output *) const |
Public Member Functions inherited from stor::WebPageHelper< SMWebPageHelper > | |
void | css (xgi::Input *in, xgi::Output *out) |
WebPageHelper (xdaq::ApplicationDescriptor *, const std::string &cvsVersion, SMWebPageHelper *callee, void(SMWebPageHelper::*addHyperLinks)(XHTMLMaker &, XHTMLMaker::Node *) const ) | |
Private Types | |
typedef ConsumerWebPageHelper < SMWebPageHelper, EventQueueCollection, StatisticsReporter > | ConsumerWebPageHelper_t |
Private Attributes | |
ConsumerWebPageHelper_t | consumerWebPageHelper_ |
SharedResourcesPtr | sharedResources_ |
Helper class to handle web page requests
Definition at line 43 of file SMWebPageHelper.h.
|
private |
Definition at line 461 of file SMWebPageHelper.h.
stor::SMWebPageHelper::SMWebPageHelper | ( | xdaq::ApplicationDescriptor * | appDesc, |
SharedResourcesPtr | sharedResources | ||
) |
Definition at line 31 of file SMWebPageHelper.cc.
|
private |
|
private |
Adds the SM config string to the parent DOM element
Definition at line 1164 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), and stor::DiskWritingParams::streamConfiguration_.
Referenced by storedDataWebPage().
|
private |
Adds files statistics to the parent DOM element
Definition at line 1268 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addHex(), stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), and stor::FilesMonitorCollection::getFileRecords().
Referenced by filesWebPage().
|
private |
Adds fragment monitoring statistics to the parent DOM element
Definition at line 784 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::MonitoredQuantity::FULL, stor::FragmentMonitorCollection::getStats(), and stor::MonitoredQuantity::RECENT.
Referenced by inputWebPage().
|
private |
Adds the links for the other hyperdaq webpages
Definition at line 282 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), link(), AlCaHLTBitMon_QueryRunRegistry::string, and relmon_authenticated_wget::url.
Referenced by defaultWebPage(), dqmEventWebPage(), filesWebPage(), inputWebPage(), resourceBrokerOverview(), storedDataWebPage(), and throughputWebPage().
|
private |
Adds the resource table to the parent DOM element
Definition at line 346 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::ResourceMonitorCollection::getStats(), stor::ThroughputMonitorCollection::getStats(), and asciidump::table.
Referenced by defaultWebPage().
|
private |
Adds run monitoring statistics to the parent DOM element
Definition at line 999 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::RunMonitorCollection::getEoLSSeenMQ(), stor::RunMonitorCollection::getErrorEventIDsReceivedMQ(), stor::RunMonitorCollection::getEventIDsReceivedMQ(), stor::MonitoredQuantity::Stats::getLastSampleValue(), stor::RunMonitorCollection::getLumiSectionsSeenMQ(), stor::RunMonitorCollection::getRunNumbersSeenMQ(), stor::MonitoredQuantity::Stats::getSampleCount(), stor::MonitoredQuantity::getStats(), and stor::RunMonitorCollection::getUnwantedEventIDsReceivedMQ().
Referenced by defaultWebPage().
|
private |
Adds stored data statistics to the parent DOM element
Definition at line 1078 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::MonitoredQuantity::FULL, stor::StreamsMonitorCollection::getAllStreamsVolumeMQ(), stor::MonitoredQuantity::Stats::getDuration(), stor::MonitoredQuantity::getStats(), stor::MonitoredQuantity::RECENT, and stor::StreamsMonitorCollection::streamRecordsExist().
Referenced by storedDataWebPage().
|
private |
Adds the summary information to the parent DOM element
Definition at line 556 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::DQMEventMonitorCollection::DQMEventStats::dqmEventSizeStats, stor::MonitoredQuantity::Stats::getSampleRate(), stor::DQMEventMonitorCollection::getStats(), stor::StreamsMonitorCollection::getStreamRecords(), stor::StreamsMonitorCollection::getStreamRecordsForOutputModuleLabel(), stor::DataSenderMonitorCollection::getTopLevelOutputModuleResults(), stor::MonitoredQuantity::Stats::getValueAverage(), stor::MonitoredQuantity::Stats::getValueRate(), stor::DQMEventMonitorCollection::DQMEventStats::numberOfTopLevelFoldersStats, stor::MonitoredQuantity::RECENT, stor::DQMEventMonitorCollection::DQMEventStats::servedDQMEventSizeStats, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by defaultWebPage().
|
private |
Adds throughput statistics to the parent DOM element
Definition at line 1344 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::ThroughputMonitorCollection::Stats::average, stor::ThroughputMonitorCollection::getStats(), and stor::ThroughputMonitorCollection::Stats::snapshots.
Referenced by throughputWebPage().
|
private |
Adds information about the filter units for a specific resource broker to the parent DOM element
Definition at line 2001 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::DataSenderMonitorCollection::getFilterUnitResultsForRB(), customizeTrackingMonitorSeedNumber::idx, combine::key, and stor::MonitoredQuantity::RECENT.
|
private |
Add statistics for received fragments
Definition at line 820 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::FragmentMonitorCollection::FragmentStats::allFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::dqmEventFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::eventFragmentSizeStats, stor::MonitoredQuantity::FULL, and stor::MonitoredQuantity::Stats::getDuration().
|
private |
Adds output module statistics from the specified resource broker to the parent DOM element
Definition at line 1546 of file SMWebPageHelper.cc.
References stor::DataSenderMonitorCollection::getOutputModuleResultsForRB().
|
private |
Adds output module statistics to the parent DOM element
Definition at line 1561 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), customizeTrackingMonitorSeedNumber::idx, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Adds output module summary information to the parent DOM element
Definition at line 1635 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), customizeTrackingMonitorSeedNumber::idx, and mergeVDriftHistosByStation::name.
|
private |
Adds top-level output module statistics to the parent DOM element
Definition at line 1531 of file SMWebPageHelper.cc.
References stor::DataSenderMonitorCollection::getTopLevelOutputModuleResults().
Referenced by resourceBrokerOverview().
|
private |
Adds information about a specific resource broker to the parent DOM element
Definition at line 1842 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::DataSenderMonitorCollection::getOneResourceBrokerResult(), link(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Adds the list of data senders (resource brokers) to the parent DOM element
Definition at line 1686 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::compareRBResultPtrValues(), stor::DataSenderMonitorCollection::getAllResourceBrokerResults(), customizeTrackingMonitorSeedNumber::idx, combine::key, link(), stor::MonitoredQuantity::RECENT, python.multivaluedict::sort(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by resourceBrokerOverview().
|
private |
Add a table row for fragment bandwidth
Definition at line 879 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::FragmentMonitorCollection::FragmentStats::allFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::dqmEventFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::eventFragmentSizeStats, and stor::MonitoredQuantity::Stats::getValueRate().
|
private |
Add a table row for number of fragment frames received
Definition at line 859 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::FragmentMonitorCollection::FragmentStats::allFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::dqmEventFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::eventFragmentSizeStats, and stor::MonitoredQuantity::Stats::getSampleCount().
|
private |
Add a table row for fragment latency
Definition at line 919 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::FragmentMonitorCollection::FragmentStats::allFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::dqmEventFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::eventFragmentSizeStats, and stor::MonitoredQuantity::Stats::getSampleLatency().
|
private |
Add a table row for maximum fragment bandwidth
Definition at line 959 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::FragmentMonitorCollection::FragmentStats::allFragmentBandwidthStats, stor::FragmentMonitorCollection::FragmentStats::dqmEventFragmentBandwidthStats, stor::FragmentMonitorCollection::FragmentStats::eventFragmentBandwidthStats, and stor::MonitoredQuantity::Stats::getValueMax().
|
private |
Add a table row for minimum fragment bandwidth
Definition at line 979 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::FragmentMonitorCollection::FragmentStats::allFragmentBandwidthStats, stor::FragmentMonitorCollection::FragmentStats::dqmEventFragmentBandwidthStats, stor::FragmentMonitorCollection::FragmentStats::eventFragmentBandwidthStats, and stor::MonitoredQuantity::Stats::getValueMin().
|
private |
Add a table row for fragment rate
Definition at line 899 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::FragmentMonitorCollection::FragmentStats::allFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::dqmEventFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::eventFragmentSizeStats, and stor::MonitoredQuantity::Stats::getSampleRate().
|
private |
Add table row using the snapshot values
Definition at line 1423 of file SMWebPageHelper.cc.
References stor::ThroughputMonitorCollection::Stats::Snapshot::absoluteTime, stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::ThroughputMonitorCollection::Stats::Snapshot::diskWriterBusy, stor::ThroughputMonitorCollection::Stats::Snapshot::dqmEventProcessorBusy, stor::ThroughputMonitorCollection::Stats::Snapshot::dqmQueueBandwidth, stor::ThroughputMonitorCollection::Stats::Snapshot::dqmQueueRate, stor::ThroughputMonitorCollection::Stats::Snapshot::duration, stor::ThroughputMonitorCollection::Stats::Snapshot::entriesInDQMQueue, stor::ThroughputMonitorCollection::Stats::Snapshot::entriesInFragmentQueue, stor::ThroughputMonitorCollection::Stats::Snapshot::entriesInStreamQueue, stor::ThroughputMonitorCollection::Stats::Snapshot::fragmentProcessorBusy, stor::ThroughputMonitorCollection::Stats::Snapshot::fragmentQueueBandwidth, stor::ThroughputMonitorCollection::Stats::Snapshot::fragmentQueueRate, stor::ThroughputMonitorCollection::Stats::Snapshot::fragmentStoreMemoryUsed, stor::ThroughputMonitorCollection::Stats::Snapshot::fragmentStoreSize, stor::ThroughputMonitorCollection::Stats::Snapshot::memoryUsedInDQMQueue, stor::ThroughputMonitorCollection::Stats::Snapshot::memoryUsedInFragmentQueue, stor::ThroughputMonitorCollection::Stats::Snapshot::memoryUsedInStreamQueue, stor::ThroughputMonitorCollection::Stats::Snapshot::poolUsage, stor::ThroughputMonitorCollection::Stats::Snapshot::streamQueueBandwidth, stor::ThroughputMonitorCollection::Stats::Snapshot::streamQueueRate, stor::utils::timeStampUTC(), stor::ThroughputMonitorCollection::Stats::Snapshot::writtenEventsBandwidth, and stor::ThroughputMonitorCollection::Stats::Snapshot::writtenEventsRate.
|
private |
Add a table row for total fragment volume received
Definition at line 939 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::FragmentMonitorCollection::FragmentStats::allFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::dqmEventFragmentSizeStats, stor::FragmentMonitorCollection::FragmentStats::eventFragmentSizeStats, and stor::MonitoredQuantity::Stats::getValueSum().
|
private |
Add a table row for SATA beast status
Definition at line 466 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::AlarmHandler::ERROR, stor::ResourceMonitorCollection::Stats::sataBeastStatus, and stor::AlarmHandler::WARNING.
|
private |
Add a table rows for throughput usage summary
Definition at line 397 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::ThroughputMonitorCollection::Stats::average, stor::ThroughputMonitorCollection::Stats::Snapshot::diskWriterBusy, stor::ThroughputMonitorCollection::Stats::Snapshot::dqmEventProcessorBusy, stor::ThroughputMonitorCollection::Stats::Snapshot::fragmentProcessorBusy, and stor::ThroughputMonitorCollection::Stats::Snapshot::poolUsage.
|
private |
Add a table row for copy/inject workers
Definition at line 440 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::ResourceMonitorCollection::Stats::numberOfCopyWorkers, and stor::ResourceMonitorCollection::Stats::numberOfInjectWorkers.
|
private |
Add a table for disk usage
Definition at line 504 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), and stor::ResourceMonitorCollection::Stats::diskUsageStatsList.
|
private |
Add a table for resource usage
Definition at line 375 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), and asciidump::table.
void stor::SMWebPageHelper::consumerStatistics | ( | xgi::Output * | out | ) | const |
Generates consumer statistics page
Definition at line 141 of file SMWebPageHelper.cc.
References stor::ConsumerWebPageHelper< WebPageHelper_t, EventQueueCollection_t, StatisticsReporter_t >::consumerStatistics(), consumerWebPageHelper_, stor::StateMachineMonitorCollection::externallyVisibleState(), stor::StateMachineMonitorCollection::innerStateName(), sharedResources_, stor::StateMachineMonitorCollection::statusMessage(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Returns the webpage body with the standard header as XHTML node
Definition at line 262 of file SMWebPageHelper.cc.
References stor::WebPageHelper< T >::createWebPageBody(), stor::StateMachineMonitorCollection::externallyVisibleState(), stor::StateMachineMonitorCollection::innerStateName(), stor::StateMachineMonitorCollection::statusMessage(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by defaultWebPage(), dqmEventWebPage(), filesWebPage(), inputWebPage(), resourceBrokerOverview(), storedDataWebPage(), and throughputWebPage().
void stor::SMWebPageHelper::defaultWebPage | ( | xgi::Output * | out | ) | const |
Generates the default monitoring webpage
Definition at line 41 of file SMWebPageHelper.cc.
References addDOMforHyperLinks(), addDOMforResourceUsage(), addDOMforRunMonitor(), addDOMforSummaryInformation(), createWebPageBody(), stor::XHTMLMaker::out(), and sharedResources_.
void stor::SMWebPageHelper::dqmEventWebPage | ( | xgi::Output * | out | ) | const |
Generates the DQM event processor monitoring webpage
Definition at line 220 of file SMWebPageHelper.cc.
References stor::WebPageHelper< SMWebPageHelper >::addDOMforDQMEventStatistics(), addDOMforHyperLinks(), stor::WebPageHelper< SMWebPageHelper >::addDOMforProcessedDQMEvents(), createWebPageBody(), stor::XHTMLMaker::out(), and sharedResources_.
void stor::SMWebPageHelper::filesWebPage | ( | xgi::Output * | out | ) | const |
Generates the files monitoring webpage
Definition at line 121 of file SMWebPageHelper.cc.
References addDOMforFiles(), addDOMforHyperLinks(), createWebPageBody(), stor::XHTMLMaker::out(), and sharedResources_.
|
private |
Return the aggregated bandwidth of data served to the event consumers for the given output module label
Definition at line 753 of file SMWebPageHelper.cc.
References stor::ConsumerMonitorCollection::getServed(), stor::MonitoredQuantity::Stats::getValueRate(), diffTwoXMLs::label, and stor::MonitoredQuantity::RECENT.
void stor::SMWebPageHelper::inputWebPage | ( | xgi::Output * | out | ) | const |
Generates the I2O input monitoring webpage
Definition at line 75 of file SMWebPageHelper.cc.
References addDOMforFragmentMonitor(), addDOMforHyperLinks(), createWebPageBody(), stor::XHTMLMaker::out(), and sharedResources_.
|
private |
List stream records statistics
Definition at line 1188 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::StreamsMonitorCollection::getAllStreamsBandwidthMQ(), stor::StreamsMonitorCollection::getAllStreamsFileCountMQ(), stor::StreamsMonitorCollection::getAllStreamsVolumeMQ(), stor::MonitoredQuantity::Stats::getSampleCount(), stor::MonitoredQuantity::Stats::getSampleRate(), stor::MonitoredQuantity::getStats(), stor::StreamsMonitorCollection::getStreamRecords(), stor::MonitoredQuantity::Stats::getValueMax(), stor::MonitoredQuantity::Stats::getValueMin(), stor::MonitoredQuantity::Stats::getValueRate(), and stor::MonitoredQuantity::Stats::getValueSum().
|
private |
void stor::SMWebPageHelper::resourceBrokerDetail | ( | xgi::Output * | out, |
const long long & | uniqueRBID | ||
) | const |
Generates the data sender web page for a specific resource broker
Definition at line 188 of file SMWebPageHelper.cc.
References stor::XHTMLMaker::out().
void stor::SMWebPageHelper::resourceBrokerOverview | ( | xgi::Output * | out | ) | const |
Generates the data sender web page for all resource brokers
Definition at line 161 of file SMWebPageHelper.cc.
References addDOMforHyperLinks(), stor::XHTMLMaker::addNode(), addOutputModuleTables(), addResourceBrokerList(), createWebPageBody(), stor::XHTMLMaker::out(), and sharedResources_.
void stor::SMWebPageHelper::storedDataWebPage | ( | xgi::Output * | out | ) | const |
Generates the output streams monitoring webpage
Definition at line 97 of file SMWebPageHelper.cc.
References addDOMforConfigString(), addDOMforHyperLinks(), addDOMforStoredData(), stor::XHTMLMaker::addNode(), createWebPageBody(), stor::XHTMLMaker::out(), and sharedResources_.
void stor::SMWebPageHelper::throughputWebPage | ( | xgi::Output * | out | ) | const |
Generates the throughput monitoring webpage
Definition at line 241 of file SMWebPageHelper.cc.
References addDOMforHyperLinks(), addDOMforThroughputStatistics(), createWebPageBody(), stor::XHTMLMaker::out(), and sharedResources_.
|
private |
Definition at line 462 of file SMWebPageHelper.h.
Referenced by consumerStatistics().
|
private |
Definition at line 457 of file SMWebPageHelper.h.
Referenced by consumerStatistics(), defaultWebPage(), dqmEventWebPage(), filesWebPage(), inputWebPage(), resourceBrokerOverview(), storedDataWebPage(), and throughputWebPage().