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.1.4.2 2011/03/07 11:33:04 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 storedDataWebPage(xgi::Output*) const;
62 
66  void filesWebPage(xgi::Output*) const;
67 
71  void consumerStatistics(xgi::Output*) const;
72 
77 
81  void resourceBrokerDetail(xgi::Output*, const long long& uniqueRBID) const;
82 
86  void dqmEventWebPage(xgi::Output*) const;
87 
91  void throughputWebPage(xgi::Output*) const;
92 
93 
94  private:
95 
100  (
101  XHTMLMaker&,
102  const std::string& pageTitle,
104  ) const;
105 
110 
115  (
116  XHTMLMaker&,
117  XHTMLMaker::Node* parent,
120  ) const;
121 
126  (
127  XHTMLMaker& maker,
128  XHTMLMaker::Node* parent,
130  ) const;
131 
136  (
137  XHTMLMaker& maker,
138  XHTMLMaker::Node* parent,
139  RunMonitorCollection const&
140  ) const;
141 
146  (
147  XHTMLMaker& maker,
148  XHTMLMaker::Node* parent,
150  ) const;
151 
156  (
157  XHTMLMaker& maker,
158  XHTMLMaker::Node* parent,
159  DiskWritingParams const&
160  ) const;
161 
165  void addDOMforFiles
166  (
167  XHTMLMaker& maker,
168  XHTMLMaker::Node* parent,
170  ) const;
171 
176  (
177  XHTMLMaker& maker,
178  XHTMLMaker::Node* parent,
180  ) const;
181 
186  (
187  XHTMLMaker& maker,
190  bool const isAverage = false
191  ) const;
192 
197  (
198  XHTMLMaker& maker,
199  XHTMLMaker::Node* table,
202  ) const;
203 
207  void addFragmentStats
208  (
209  XHTMLMaker& maker,
210  XHTMLMaker::Node* table,
213  ) const;
214 
219  (
220  XHTMLMaker& maker,
221  XHTMLMaker::Node* table,
224  ) const;
225 
229  void addRowForBandwidth
230  (
231  XHTMLMaker& maker,
232  XHTMLMaker::Node* table,
235  ) const;
236 
240  void addRowForRate
241  (
242  XHTMLMaker& maker,
243  XHTMLMaker::Node* table,
246  ) const;
247 
251  void addRowForLatency
252  (
253  XHTMLMaker& maker,
254  XHTMLMaker::Node* table,
257  ) const;
258 
263  (
264  XHTMLMaker& maker,
265  XHTMLMaker::Node* table,
268  ) const;
269 
274  (
275  XHTMLMaker& maker,
276  XHTMLMaker::Node* table,
279  ) const;
280 
285  (
286  XHTMLMaker& maker,
287  XHTMLMaker::Node* table,
290  ) const;
291 
296  (
297  XHTMLMaker& maker,
298  XHTMLMaker::Node* parent,
300  ) const;
301 
307  (
308  XHTMLMaker& maker,
309  XHTMLMaker::Node* parent,
310  long long uniqueRBID,
312  ) const;
313 
318  (
319  XHTMLMaker& maker,
320  XHTMLMaker::Node* parent,
322  ) const;
323 
328  (
329  XHTMLMaker& maker,
330  XHTMLMaker::Node* parent,
332  ) const;
333 
339  (
340  XHTMLMaker& maker,
341  XHTMLMaker::Node* parent,
343  ) const;
344 
350  (
351  XHTMLMaker& maker,
352  XHTMLMaker::Node* parent,
353  long long uniqueRBID,
355  ) const;
356 
361  void addFilterUnitList
362  (
363  XHTMLMaker& maker,
364  XHTMLMaker::Node* parent,
365  long long uniqueRBID,
367  ) const;
368 
373  (
374  XHTMLMaker& maker,
375  XHTMLMaker::Node* parent,
378  ) const;
379 
384  (
385  XHTMLMaker& maker,
386  XHTMLMaker::Node* table,
388  ) const;
389 
393  void addRowsForWorkers
394  (
395  XHTMLMaker& maker,
396  XHTMLMaker::Node* table,
398  ) const;
399 
404  (
405  XHTMLMaker& maker,
406  XHTMLMaker::Node* table,
408  ) const;
409 
414  (
415  XHTMLMaker& maker,
416  XHTMLMaker::Node* parent,
418  ) const;
419 
420 
421  private:
422 
423  //Prevent copying of the SMWebPageHelper
426 
428 
433 
434  };
435 
436 } // namespace stor
437 
438 #endif // EventFilter_StorageManager_SMWebPageHelper_h
439 
440 
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 addTableForResourceUsages(XHTMLMaker &maker, XHTMLMaker::Node *parent, ResourceMonitorCollection::Stats const &, MonitoredQuantity::Stats const &) 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
SMWebPageHelper(xdaq::ApplicationDescriptor *, SharedResourcesPtr)
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
SharedResourcesPtr sharedResources_
void addRowsForMemoryUsage(XHTMLMaker &maker, XHTMLMaker::Node *table, MonitoredQuantity::Stats const &) const
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
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