#include <SMPSWebPageHelper.h>
Public Member Functions | |
void | consumerStatisticsWebPage (xgi::Output *) const |
void | dataRetrieverWebPage (xgi::Output *) const |
void | defaultWebPage (xgi::Output *) const |
void | dqmEventStatisticsWebPage (xgi::Output *) const |
SMPSWebPageHelper (xdaq::ApplicationDescriptor *, StateMachinePtr) | |
virtual | ~SMPSWebPageHelper () |
Public Member Functions inherited from stor::WebPageHelper< SMPSWebPageHelper > | |
void | css (xgi::Input *in, xgi::Output *out) |
WebPageHelper (xdaq::ApplicationDescriptor *, const std::string &cvsVersion, SMPSWebPageHelper *callee, void(SMPSWebPageHelper::*addHyperLinks)(XHTMLMaker &, XHTMLMaker::Node *) const ) | |
Private Types | |
typedef stor::ConsumerWebPageHelper < SMPSWebPageHelper, EventQueueCollection, StatisticsReporter > | ConsumerWebPageHelper_t |
Private Attributes | |
ConsumerWebPageHelper_t | consumerWebPageHelper_ |
StateMachinePtr | stateMachine_ |
Helper class to handle SM proxy server web page requests
Definition at line 23 of file SMPSWebPageHelper.h.
|
private |
Definition at line 159 of file SMPSWebPageHelper.h.
smproxy::SMPSWebPageHelper::SMPSWebPageHelper | ( | xdaq::ApplicationDescriptor * | appDesc, |
StateMachinePtr | stateMachine | ||
) |
Definition at line 16 of file SMPSWebPageHelper.cc.
|
inlinevirtual |
Definition at line 33 of file SMPSWebPageHelper.h.
|
private |
|
private |
Adds the connection info to the parent DOM element
Definition at line 159 of file SMPSWebPageHelper.cc.
References smproxy::DataRetrieverMonitorCollection::SummaryStats::activeSMs, stor::XHTMLMaker::addInt(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), smproxy::DataRetrieverMonitorCollection::SummaryStats::registeredSMs, and asciidump::table.
Referenced by defaultWebPage().
|
private |
Adds the DQM event (histogram) servers to the parent DOM element
Definition at line 781 of file SMPSWebPageHelper.cc.
Referenced by dataRetrieverWebPage().
|
private |
Adds the event servers to the parent DOM element
Definition at line 509 of file SMPSWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dataRetrieverWebPage().
|
privatevirtual |
Adds the links for the other hyperdaq webpages
Definition at line 119 of file SMPSWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), link(), AlCaHLTBitMon_QueryRunRegistry::string, and relmon_authenticated_wget::url.
Referenced by dataRetrieverWebPage(), defaultWebPage(), and dqmEventStatisticsWebPage().
|
private |
Adds a table cell for the SM host
Definition at line 759 of file SMPSWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), link(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Adds the summary throuphput per event type to the parent DOM element
Definition at line 226 of file SMPSWebPageHelper.cc.
References stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), smproxy::DataRetrieverMonitorCollection::SummaryStats::eventTypeStats, and asciidump::table.
Referenced by defaultWebPage().
|
private |
Adds a table row for each event server
Definition at line 626 of file SMPSWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), smproxy::DataRetrieverMonitorCollection::CONNECTED, smproxy::DataRetrieverMonitorCollection::EventTypePerConnectionStats::connectionStatus, smproxy::DataRetrieverMonitorCollection::EventStats::corruptedEventsStats, stor::utils::durationToSeconds(), smproxy::DataRetrieverMonitorCollection::EventTypePerConnectionStats::eventStats, stor::MonitoredQuantity::FULL, stor::MonitoredQuantity::Stats::getSampleRate(), stor::MonitoredQuantity::Stats::getValueAverage(), stor::MonitoredQuantity::Stats::getValueRate(), stor::MonitoredQuantity::Stats::getValueSum(), MergeJob_cfg::interval, stor::MonitoredQuantity::RECENT, smproxy::DataRetrieverMonitorCollection::EventTypePerConnectionStats::regPtr, smproxy::DataRetrieverMonitorCollection::EventStats::sizeStats, and ntuplemaker::status.
|
private |
Adds a table row for each event type
Definition at line 338 of file SMPSWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), stor::MonitoredQuantity::FULL, stor::MonitoredQuantity::Stats::getSampleRate(), stor::ConsumerMonitorCollection::getServed(), stor::MonitoredQuantity::Stats::getValueRate(), stor::MonitoredQuantity::RECENT, and query::result.
|
private |
Adds a summary table row for each event server
Definition at line 706 of file SMPSWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::MonitoredQuantity::FULL, and stor::MonitoredQuantity::RECENT.
|
private |
Adds a table row for the summary throughput
Definition at line 440 of file SMPSWebPageHelper.cc.
References stor::XHTMLMaker::addDouble(), stor::XHTMLMaker::addNode(), stor::XHTMLMaker::addText(), smproxy::DataRetrieverMonitorCollection::EventStats::corruptedEventsStats, stor::MonitoredQuantity::FULL, stor::MonitoredQuantity::Stats::getSampleRate(), stor::ConsumerMonitorCollection::getTotalStats(), stor::MonitoredQuantity::Stats::getValueAverage(), stor::MonitoredQuantity::Stats::getValueRate(), stor::MonitoredQuantity::RECENT, stor::ConsumerMonitorCollection::TotalStats::servedStats, smproxy::DataRetrieverMonitorCollection::EventStats::sizeStats, and smproxy::DataRetrieverMonitorCollection::SummaryStats::totals.
void smproxy::SMPSWebPageHelper::consumerStatisticsWebPage | ( | xgi::Output * | out | ) | const |
Generates consumer statistics page
Definition at line 80 of file SMPSWebPageHelper.cc.
References stor::ConsumerWebPageHelper< WebPageHelper_t, EventQueueCollection_t, StatisticsReporter_t >::consumerStatistics(), consumerWebPageHelper_, and stateMachine_.
void smproxy::SMPSWebPageHelper::dataRetrieverWebPage | ( | xgi::Output * | out | ) | const |
Generates the data retriever web page
Definition at line 55 of file SMPSWebPageHelper.cc.
References addDOMforDQMEventServers(), addDOMforEventServers(), addDOMforHyperLinks(), stor::XHTMLMaker::addNode(), stor::WebPageHelper< SMPSWebPageHelper >::createWebPageBody(), stor::XHTMLMaker::out(), and stateMachine_.
void smproxy::SMPSWebPageHelper::defaultWebPage | ( | xgi::Output * | out | ) | const |
Generates the default web page
Definition at line 26 of file SMPSWebPageHelper.cc.
References addDOMforConnectionInfo(), addDOMforHyperLinks(), addDOMforThroughputPerEventType(), stor::XHTMLMaker::addNode(), stor::WebPageHelper< SMPSWebPageHelper >::createWebPageBody(), stor::XHTMLMaker::out(), and stateMachine_.
void smproxy::SMPSWebPageHelper::dqmEventStatisticsWebPage | ( | xgi::Output * | out | ) | const |
Generates the data retriever web page
Definition at line 94 of file SMPSWebPageHelper.cc.
References stor::WebPageHelper< SMPSWebPageHelper >::addDOMforDQMEventStatistics(), addDOMforHyperLinks(), stor::WebPageHelper< SMPSWebPageHelper >::addDOMforProcessedDQMEvents(), stor::WebPageHelper< SMPSWebPageHelper >::createWebPageBody(), stor::XHTMLMaker::out(), and stateMachine_.
|
private |
|
private |
Definition at line 160 of file SMPSWebPageHelper.h.
Referenced by consumerStatisticsWebPage().
|
private |
Definition at line 155 of file SMPSWebPageHelper.h.
Referenced by consumerStatisticsWebPage(), dataRetrieverWebPage(), defaultWebPage(), and dqmEventStatisticsWebPage().