CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SMWebPageHelper.h
Go to the documentation of this file.
1 // $Id: SMWebPageHelper.h,v 1.4 2011/11/18 14:47:56 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_SMWebPageHelper_h
5 #define EventFilter_StorageManager_SMWebPageHelper_h
6 
7 #include <string>
8 #include <map>
9 
10 #include "toolbox/mem/Pool.h"
11 #include "xdaq/ApplicationDescriptor.h"
12 #include "xgi/Output.h"
13 
15 
23 
24 
25 namespace stor {
26 
27  class DQMEventMonitorCollection;
28  class FilesMonitorCollection;
29  class FragmentMonitorCollection;
30  class ResourceMonitorCollection;
31  class RunMonitorCollection;
32  class StreamsMonitorCollection;
33 
34 
43  class SMWebPageHelper : public WebPageHelper<SMWebPageHelper>
44  {
45  public:
46 
48  (
49  xdaq::ApplicationDescriptor*,
51  );
52 
56  void defaultWebPage(xgi::Output*) const;
57 
61  void inputWebPage(xgi::Output*) const;
62 
66  void storedDataWebPage(xgi::Output*) const;
67 
71  void filesWebPage(xgi::Output*) const;
72 
76  void consumerStatistics(xgi::Output*) const;
77 
82 
86  void resourceBrokerDetail(xgi::Output*, const long long& uniqueRBID) const;
87 
91  void dqmEventWebPage(xgi::Output*) const;
92 
96  void throughputWebPage(xgi::Output*) const;
97 
98 
99  private:
100 
105  (
106  XHTMLMaker&,
107  const std::string& pageTitle,
109  ) const;
110 
115 
120  (
121  XHTMLMaker&,
122  XHTMLMaker::Node* parent,
128  ) const;
129 
134  (
135  XHTMLMaker&,
136  XHTMLMaker::Node* parent,
139  ) const;
140 
145  (
146  XHTMLMaker& maker,
147  XHTMLMaker::Node* parent,
149  ) const;
150 
155  (
156  XHTMLMaker& maker,
157  XHTMLMaker::Node* parent,
158  RunMonitorCollection const&
159  ) const;
160 
165  (
166  XHTMLMaker& maker,
167  XHTMLMaker::Node* parent,
169  ) const;
170 
175  (
176  XHTMLMaker& maker,
177  XHTMLMaker::Node* parent,
178  DiskWritingParams const&
179  ) const;
180 
184  void addDOMforFiles
185  (
186  XHTMLMaker& maker,
187  XHTMLMaker::Node* parent,
189  ) const;
190 
195  (
196  XHTMLMaker& maker,
197  XHTMLMaker::Node* parent,
199  ) const;
200 
206  (
207  const std::string& label,
209  const EventConsumerMonitorCollection& eventConsumerCollection
210  ) const;
211 
216  (
217  XHTMLMaker& maker,
220  bool const isAverage = false
221  ) const;
222 
227  (
228  XHTMLMaker& maker,
229  XHTMLMaker::Node* table,
232  ) const;
233 
237  void addFragmentStats
238  (
239  XHTMLMaker& maker,
240  XHTMLMaker::Node* table,
243  ) const;
244 
249  (
250  XHTMLMaker& maker,
251  XHTMLMaker::Node* table,
254  ) const;
255 
259  void addRowForBandwidth
260  (
261  XHTMLMaker& maker,
262  XHTMLMaker::Node* table,
265  ) const;
266 
270  void addRowForRate
271  (
272  XHTMLMaker& maker,
273  XHTMLMaker::Node* table,
276  ) const;
277 
281  void addRowForLatency
282  (
283  XHTMLMaker& maker,
284  XHTMLMaker::Node* table,
287  ) const;
288 
293  (
294  XHTMLMaker& maker,
295  XHTMLMaker::Node* table,
298  ) const;
299 
304  (
305  XHTMLMaker& maker,
306  XHTMLMaker::Node* table,
309  ) const;
310 
315  (
316  XHTMLMaker& maker,
317  XHTMLMaker::Node* table,
320  ) const;
321 
326  (
327  XHTMLMaker& maker,
328  XHTMLMaker::Node* parent,
330  ) const;
331 
337  (
338  XHTMLMaker& maker,
339  XHTMLMaker::Node* parent,
340  long long uniqueRBID,
342  ) const;
343 
348  (
349  XHTMLMaker& maker,
350  XHTMLMaker::Node* parent,
352  ) const;
353 
358  (
359  XHTMLMaker& maker,
360  XHTMLMaker::Node* parent,
362  ) const;
363 
369  (
370  XHTMLMaker& maker,
371  XHTMLMaker::Node* parent,
373  ) const;
374 
380  (
381  XHTMLMaker& maker,
382  XHTMLMaker::Node* parent,
383  long long uniqueRBID,
385  ) const;
386 
391  void addFilterUnitList
392  (
393  XHTMLMaker& maker,
394  XHTMLMaker::Node* parent,
395  long long uniqueRBID,
397  ) const;
398 
403  (
404  XHTMLMaker& maker,
405  XHTMLMaker::Node* parent,
408  ) const;
409 
414  (
415  XHTMLMaker& maker,
416  XHTMLMaker::Node* table,
418  ) const;
419 
423  void addRowsForWorkers
424  (
425  XHTMLMaker& maker,
426  XHTMLMaker::Node* table,
428  ) const;
429 
434  (
435  XHTMLMaker& maker,
436  XHTMLMaker::Node* table,
438  ) const;
439 
444  (
445  XHTMLMaker& maker,
446  XHTMLMaker::Node* parent,
448  ) const;
449 
450 
451  private:
452 
453  //Prevent copying of the SMWebPageHelper
456 
458 
463 
464  };
465 
466 } // namespace stor
467 
468 #endif // EventFilter_StorageManager_SMWebPageHelper_h
469 
470 
list table
Definition: asciidump.py:386
void addOutputModuleTables(XHTMLMaker &maker, XHTMLMaker::Node *parent, DataSenderMonitorCollection const &) const
void addOutputModuleSummary(XHTMLMaker &maker, XHTMLMaker::Node *parent, DataSenderMonitorCollection::OutputModuleResultsList const &) const
void dqmEventWebPage(xgi::Output *) const
list parent
Definition: dbtoconf.py:74
void throughputWebPage(xgi::Output *) const
ConsumerWebPageHelper_t consumerWebPageHelper_
void resourceBrokerOverview(xgi::Output *) const
void addRowForFramesReceived(XHTMLMaker &maker, XHTMLMaker::Node *table, FragmentMonitorCollection::FragmentStats const &, const MonitoredQuantity::DataSetType) const
void addOutputModuleStatistics(XHTMLMaker &maker, XHTMLMaker::Node *parent, long long uniqueRBID, DataSenderMonitorCollection const &) const
void addRowForLatency(XHTMLMaker &maker, XHTMLMaker::Node *table, FragmentMonitorCollection::FragmentStats const &, const MonitoredQuantity::DataSetType) const
void addRowForThroughputStatistics(XHTMLMaker &maker, XHTMLMaker::Node *table, const ThroughputMonitorCollection::Stats::Snapshot &, bool const isAverage=false) const
void addRowsForWorkers(XHTMLMaker &maker, XHTMLMaker::Node *table, ResourceMonitorCollection::Stats const &) const
boost::shared_ptr< SharedResources > SharedResourcesPtr
XHTMLMaker::Node * createWebPageBody(XHTMLMaker &, const std::string &pageTitle, const StateMachineMonitorCollection &) const
void addDOMforHyperLinks(XHTMLMaker &, XHTMLMaker::Node *parent) const
ConsumerWebPageHelper< SMWebPageHelper, EventQueueCollection, StatisticsReporter > ConsumerWebPageHelper_t
void addDOMforFiles(XHTMLMaker &maker, XHTMLMaker::Node *parent, FilesMonitorCollection const &) const
void inputWebPage(xgi::Output *) const
boost::shared_ptr< RegistrationCollection > RegistrationCollectionPtr
SMWebPageHelper(xdaq::ApplicationDescriptor *, SharedResourcesPtr)
void addDOMforSummaryInformation(XHTMLMaker &, XHTMLMaker::Node *parent, DataSenderMonitorCollection const &, StreamsMonitorCollection const &, EventConsumerMonitorCollection const &, DQMEventMonitorCollection const &, RegistrationCollectionPtr) const
void addRowForMinBandwidth(XHTMLMaker &maker, XHTMLMaker::Node *table, FragmentMonitorCollection::FragmentStats const &, const MonitoredQuantity::DataSetType) const
void addFilterUnitList(XHTMLMaker &maker, XHTMLMaker::Node *parent, long long uniqueRBID, DataSenderMonitorCollection const &) const
void addDOMforFragmentMonitor(XHTMLMaker &maker, XHTMLMaker::Node *parent, FragmentMonitorCollection const &) const
void resourceBrokerDetail(xgi::Output *, const long long &uniqueRBID) const
void addDOMforStoredData(XHTMLMaker &maker, XHTMLMaker::Node *parent, StreamsMonitorCollection const &) const
void storedDataWebPage(xgi::Output *) const
void addDOMforResourceUsage(XHTMLMaker &, XHTMLMaker::Node *parent, ResourceMonitorCollection const &, ThroughputMonitorCollection const &) const
void addRowForTotalVolume(XHTMLMaker &maker, XHTMLMaker::Node *table, FragmentMonitorCollection::FragmentStats const &, const MonitoredQuantity::DataSetType) const
void addTableForDiskUsages(XHTMLMaker &maker, XHTMLMaker::Node *parent, ResourceMonitorCollection::Stats const &) const
std::vector< boost::shared_ptr< OutputModuleResult > > OutputModuleResultsList
void addDOMforThroughputStatistics(XHTMLMaker &maker, XHTMLMaker::Node *parent, ThroughputMonitorCollection const &) const
QueueCollection< I2OChain > EventQueueCollection
void addResourceBrokerDetails(XHTMLMaker &maker, XHTMLMaker::Node *parent, long long uniqueRBID, DataSenderMonitorCollection const &) const
void addRowsForSataBeast(XHTMLMaker &maker, XHTMLMaker::Node *table, ResourceMonitorCollection::Stats const &) const
void addTableForResourceUsages(XHTMLMaker &maker, XHTMLMaker::Node *parent, ThroughputMonitorCollection::Stats const &, ResourceMonitorCollection::Stats const &) const
SharedResourcesPtr sharedResources_
void addRowForBandwidth(XHTMLMaker &maker, XHTMLMaker::Node *table, FragmentMonitorCollection::FragmentStats const &, const MonitoredQuantity::DataSetType) const
void listStreamRecordsStats(XHTMLMaker &maker, XHTMLMaker::Node *table, StreamsMonitorCollection const &, const MonitoredQuantity::DataSetType) const
double getServedConsumerBandwidth(const std::string &label, RegistrationCollectionPtr, const EventConsumerMonitorCollection &eventConsumerCollection) const
void addRowsForThroughputUsage(XHTMLMaker &maker, XHTMLMaker::Node *table, ThroughputMonitorCollection::Stats const &) const
void addRowForRate(XHTMLMaker &maker, XHTMLMaker::Node *table, FragmentMonitorCollection::FragmentStats const &, const MonitoredQuantity::DataSetType) const
void filesWebPage(xgi::Output *) const
void addResourceBrokerList(XHTMLMaker &maker, XHTMLMaker::Node *parent, DataSenderMonitorCollection const &) const
#define Output(cl)
Definition: vmac.h:193
void addFragmentStats(XHTMLMaker &maker, XHTMLMaker::Node *table, FragmentMonitorCollection::FragmentStats const &, const MonitoredQuantity::DataSetType) const
void addDOMforConfigString(XHTMLMaker &maker, XHTMLMaker::Node *parent, DiskWritingParams const &) const
xercesc::DOMElement Node
Definition: XHTMLMaker.h:35
void addRowForMaxBandwidth(XHTMLMaker &maker, XHTMLMaker::Node *table, FragmentMonitorCollection::FragmentStats const &, const MonitoredQuantity::DataSetType) const
void consumerStatistics(xgi::Output *) const
SMWebPageHelper & operator=(SMWebPageHelper const &)
void defaultWebPage(xgi::Output *) const
void addDOMforRunMonitor(XHTMLMaker &maker, XHTMLMaker::Node *parent, RunMonitorCollection const &) const