CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMEventMonitorCollection.h
Go to the documentation of this file.
1 // $Id: DQMEventMonitorCollection.h,v 1.9 2011/04/04 12:03:30 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_DQMEventMonitorCollection_h
5 #define EventFilter_StorageManager_DQMEventMonitorCollection_h
6 
7 #include "xdata/Double.h"
8 #include "xdata/UnsignedInteger32.h"
9 
11 
12 
13 namespace stor {
14 
24  {
25  private:
26 
28 
32 
36 
40 
42 
43  public:
44 
46  {
48 
52 
56 
58  MonitoredQuantity::Stats numberOfUpdatesStats; //number of received updates per DQMKey
59  MonitoredQuantity::Stats numberOfWrittenTopLevelFoldersStats; //number of top level folders written to disk
60 
62  };
63 
64  explicit DQMEventMonitorCollection(const utils::Duration_t& updateInterval);
65 
68  }
71  }
72 
74  return dqmEventSizes_;
75  }
77  return dqmEventSizes_;
78  }
79 
81  return servedDQMEventSizes_;
82  }
84  return servedDQMEventSizes_;
85  }
86 
88  return writtenDQMEventSizes_;
89  }
91  return writtenDQMEventSizes_;
92  }
93 
95  return dqmEventBandwidth_;
96  }
98  return dqmEventBandwidth_;
99  }
100 
103  }
106  }
107 
110  }
113  }
114 
117  }
120  }
121 
123  return numberOfUpdates_;
124  }
126  return numberOfUpdates_;
127  }
128 
131  }
134  }
135 
138  }
141  }
142 
146  void getStats(DQMEventStats& stats) const;
147 
148 
149  private:
150 
151  //Prevent copying of the DQMEventMonitorCollection
154 
155  virtual void do_calculateStatistics();
156  virtual void do_reset();
158  virtual void do_updateInfoSpaceItems();
159 
160  xdata::Double dqmFoldersPerEP_;
161  xdata::UnsignedInteger32 processedDQMEvents_;
162  xdata::UnsignedInteger32 droppedDQMEvents_;
163  xdata::Double completeDQMUpdates_;
164  };
165 
166 } // namespace stor
167 
168 #endif // EventFilter_StorageManager_DQMEventMonitorCollection_h
169 
170 
DQMEventMonitorCollection & operator=(DQMEventMonitorCollection const &)
virtual void do_appendInfoSpaceItems(InfoSpaceItems &)
MonitoredQuantity & getNumberOfWrittenTopLevelFoldersMQ()
MonitoredQuantity & getNumberOfTopLevelFoldersMQ()
xdata::UnsignedInteger32 droppedDQMEvents_
const MonitoredQuantity & getDroppedDQMEventCountsMQ() const
MonitoredQuantity & getWrittenDQMEventBandwidthMQ()
const MonitoredQuantity & getWrittenDQMEventBandwidthMQ() const
boost::posix_time::time_duration Duration_t
Definition: Utils.h:41
DQMEventMonitorCollection(const utils::Duration_t &updateInterval)
const MonitoredQuantity & getNumberOfUpdatesMQ() const
MonitoredQuantity & getWrittenDQMEventSizeMQ()
MonitoredQuantity & getDroppedDQMEventCountsMQ()
const MonitoredQuantity & getDQMEventSizeMQ() const
const MonitoredQuantity & getNumberOfCompleteUpdatesMQ() const
void getStats(DQMEventStats &stats) const
std::vector< std::pair< std::string, xdata::Serializable * > > InfoSpaceItems
const MonitoredQuantity & getWrittenDQMEventSizeMQ() const
MonitoredQuantity & getNumberOfCompleteUpdatesMQ()
const MonitoredQuantity & getNumberOfTopLevelFoldersMQ() const
const MonitoredQuantity & getServedDQMEventBandwidthMQ() const
const MonitoredQuantity & getServedDQMEventSizeMQ() const
MonitoredQuantity & getServedDQMEventBandwidthMQ()
const MonitoredQuantity & getNumberOfWrittenTopLevelFoldersMQ() const
const MonitoredQuantity & getDQMEventBandwidthMQ() const
xdata::UnsignedInteger32 processedDQMEvents_