CMS 3D CMS Logo

Classes | Public Member Functions | Private Member Functions | Private Attributes

stor::DQMEventMonitorCollection Class Reference

#include <DQMEventMonitorCollection.h>

Inheritance diagram for stor::DQMEventMonitorCollection:
stor::MonitorCollection

List of all members.

Classes

struct  DQMEventStats

Public Member Functions

 DQMEventMonitorCollection (const utils::Duration_t &updateInterval)
const MonitoredQuantitygetDQMEventBandwidthMQ () const
MonitoredQuantitygetDQMEventBandwidthMQ ()
MonitoredQuantitygetDQMEventSizeMQ ()
const MonitoredQuantitygetDQMEventSizeMQ () const
const MonitoredQuantitygetDroppedDQMEventCountsMQ () const
MonitoredQuantitygetDroppedDQMEventCountsMQ ()
const MonitoredQuantitygetNumberOfCompleteUpdatesMQ () const
MonitoredQuantitygetNumberOfCompleteUpdatesMQ ()
const MonitoredQuantitygetNumberOfTopLevelFoldersMQ () const
MonitoredQuantitygetNumberOfTopLevelFoldersMQ ()
const MonitoredQuantitygetNumberOfUpdatesMQ () const
MonitoredQuantitygetNumberOfUpdatesMQ ()
const MonitoredQuantitygetNumberOfWrittenTopLevelFoldersMQ () const
MonitoredQuantitygetNumberOfWrittenTopLevelFoldersMQ ()
MonitoredQuantitygetServedDQMEventBandwidthMQ ()
const MonitoredQuantitygetServedDQMEventBandwidthMQ () const
const MonitoredQuantitygetServedDQMEventSizeMQ () const
MonitoredQuantitygetServedDQMEventSizeMQ ()
void getStats (DQMEventStats &stats) const
MonitoredQuantitygetWrittenDQMEventBandwidthMQ ()
const MonitoredQuantitygetWrittenDQMEventBandwidthMQ () const
const MonitoredQuantitygetWrittenDQMEventSizeMQ () const
MonitoredQuantitygetWrittenDQMEventSizeMQ ()

Private Member Functions

virtual void do_appendInfoSpaceItems (InfoSpaceItems &)
virtual void do_calculateStatistics ()
virtual void do_reset ()
virtual void do_updateInfoSpaceItems ()
 DQMEventMonitorCollection (DQMEventMonitorCollection const &)
DQMEventMonitorCollectionoperator= (DQMEventMonitorCollection const &)

Private Attributes

xdata::Double completeDQMUpdates_
MonitoredQuantity dqmEventBandwidth_
MonitoredQuantity dqmEventSizes_
xdata::Double dqmFoldersPerEP_
MonitoredQuantity droppedDQMEventCounts_
xdata::UnsignedInteger32 droppedDQMEvents_
MonitoredQuantity numberOfCompleteUpdates_
MonitoredQuantity numberOfTopLevelFolders_
MonitoredQuantity numberOfUpdates_
MonitoredQuantity numberOfWrittenTopLevelFolders_
xdata::UnsignedInteger32 processedDQMEvents_
MonitoredQuantity servedDQMEventBandwidth_
MonitoredQuantity servedDQMEventSizes_
MonitoredQuantity writtenDQMEventBandwidth_
MonitoredQuantity writtenDQMEventSizes_

Detailed Description

A collection of MonitoredQuantities related to fragments

Author:
mommsen
Revision:
1.9
Date:
2011/04/04 12:03:30

Definition at line 23 of file DQMEventMonitorCollection.h.


Constructor & Destructor Documentation

stor::DQMEventMonitorCollection::DQMEventMonitorCollection ( const utils::Duration_t updateInterval) [explicit]
stor::DQMEventMonitorCollection::DQMEventMonitorCollection ( DQMEventMonitorCollection const &  ) [private]

Member Function Documentation

void stor::DQMEventMonitorCollection::do_appendInfoSpaceItems ( InfoSpaceItems infoSpaceItems) [private, virtual]

Reimplemented from stor::MonitorCollection.

Definition at line 105 of file DQMEventMonitorCollection.cc.

References completeDQMUpdates_, dqmFoldersPerEP_, droppedDQMEvents_, and processedDQMEvents_.

  {
    infoSpaceItems.push_back(std::make_pair("dqmFoldersPerEP", &dqmFoldersPerEP_));
    infoSpaceItems.push_back(std::make_pair("processedDQMEvents", &processedDQMEvents_));
    infoSpaceItems.push_back(std::make_pair("droppedDQMEvents", &droppedDQMEvents_));
    infoSpaceItems.push_back(std::make_pair("discardedDQMEvents", &droppedDQMEvents_));
    infoSpaceItems.push_back(std::make_pair("completeDQMUpdates", &completeDQMUpdates_));
  }
void stor::DQMEventMonitorCollection::do_calculateStatistics ( ) [private, virtual]

Implements stor::MonitorCollection.

Definition at line 50 of file DQMEventMonitorCollection.cc.

References stor::MonitoredQuantity::addSample(), stor::MonitoredQuantity::calculateStatistics(), dqmEventBandwidth_, dqmEventSizes_, droppedDQMEventCounts_, stor::MonitoredQuantity::Stats::getLastValueRate(), stor::MonitoredQuantity::Stats::getSampleCount(), stor::MonitoredQuantity::getStats(), numberOfCompleteUpdates_, numberOfTopLevelFolders_, numberOfUpdates_, numberOfWrittenTopLevelFolders_, servedDQMEventBandwidth_, servedDQMEventSizes_, writtenDQMEventBandwidth_, and writtenDQMEventSizes_.

  {
    droppedDQMEventCounts_.calculateStatistics();
    
    dqmEventSizes_.calculateStatistics();
    servedDQMEventSizes_.calculateStatistics();
    writtenDQMEventSizes_.calculateStatistics();
    
    MonitoredQuantity::Stats stats;
    dqmEventSizes_.getStats(stats);
    if (stats.getSampleCount() > 0) {
      dqmEventBandwidth_.addSample(stats.getLastValueRate());
    }
    dqmEventBandwidth_.calculateStatistics();
    
    servedDQMEventSizes_.getStats(stats);
    if (stats.getSampleCount() > 0) {
      servedDQMEventBandwidth_.addSample(stats.getLastValueRate());
    }
    servedDQMEventBandwidth_.calculateStatistics();
    
    writtenDQMEventSizes_.getStats(stats);
    if (stats.getSampleCount() > 0) {
      writtenDQMEventBandwidth_.addSample(stats.getLastValueRate());
    }
    writtenDQMEventBandwidth_.calculateStatistics();
    
    numberOfTopLevelFolders_.calculateStatistics();
    numberOfUpdates_.calculateStatistics();
    numberOfWrittenTopLevelFolders_.calculateStatistics();

    numberOfCompleteUpdates_.calculateStatistics();
  }
void stor::DQMEventMonitorCollection::do_reset ( ) [private, virtual]
void stor::DQMEventMonitorCollection::do_updateInfoSpaceItems ( ) [private, virtual]

Reimplemented from stor::MonitorCollection.

Definition at line 115 of file DQMEventMonitorCollection.cc.

References completeDQMUpdates_, stor::DQMEventMonitorCollection::DQMEventStats::dqmEventSizeStats, dqmFoldersPerEP_, stor::DQMEventMonitorCollection::DQMEventStats::droppedDQMEventCountsStats, droppedDQMEvents_, stor::MonitoredQuantity::FULL, stor::MonitoredQuantity::Stats::getSampleCount(), getStats(), stor::MonitoredQuantity::Stats::getValueAverage(), stor::MonitoredQuantity::Stats::getValueSum(), stor::DQMEventMonitorCollection::DQMEventStats::numberOfCompleteUpdatesStats, stor::DQMEventMonitorCollection::DQMEventStats::numberOfUpdatesStats, processedDQMEvents_, and stor::MonitoredQuantity::RECENT.

  {
    DQMEventMonitorCollection::DQMEventStats stats;
    getStats(stats);
    
    dqmFoldersPerEP_ = static_cast<xdata::Double>(
      stats.numberOfUpdatesStats.getValueAverage(MonitoredQuantity::RECENT));
    
    processedDQMEvents_ = static_cast<xdata::UnsignedInteger32>(
      static_cast<unsigned int>(stats.dqmEventSizeStats.getSampleCount(MonitoredQuantity::FULL)));
    
    droppedDQMEvents_ = static_cast<xdata::UnsignedInteger32>(
      static_cast<unsigned int>(stats.droppedDQMEventCountsStats.getValueSum(MonitoredQuantity::FULL)));
    
    completeDQMUpdates_ = static_cast<xdata::Double>(
      stats.numberOfCompleteUpdatesStats.getValueAverage(MonitoredQuantity::RECENT));
  }
MonitoredQuantity& stor::DQMEventMonitorCollection::getDQMEventBandwidthMQ ( ) [inline]

Definition at line 97 of file DQMEventMonitorCollection.h.

References dqmEventBandwidth_.

                                                {
      return dqmEventBandwidth_;
    }
const MonitoredQuantity& stor::DQMEventMonitorCollection::getDQMEventBandwidthMQ ( ) const [inline]

Definition at line 94 of file DQMEventMonitorCollection.h.

References dqmEventBandwidth_.

Referenced by getStats().

                                                            {
      return dqmEventBandwidth_;
    }
MonitoredQuantity& stor::DQMEventMonitorCollection::getDQMEventSizeMQ ( ) [inline]

Definition at line 76 of file DQMEventMonitorCollection.h.

References dqmEventSizes_.

                                           {
      return dqmEventSizes_;
    }
const MonitoredQuantity& stor::DQMEventMonitorCollection::getDQMEventSizeMQ ( ) const [inline]

Definition at line 73 of file DQMEventMonitorCollection.h.

References dqmEventSizes_.

Referenced by stor::DQMTopLevelFolder::addDQMEvent(), and getStats().

                                                       {
      return dqmEventSizes_;
    }
MonitoredQuantity& stor::DQMEventMonitorCollection::getDroppedDQMEventCountsMQ ( ) [inline]

Definition at line 69 of file DQMEventMonitorCollection.h.

References droppedDQMEventCounts_.

const MonitoredQuantity& stor::DQMEventMonitorCollection::getDroppedDQMEventCountsMQ ( ) const [inline]

Definition at line 66 of file DQMEventMonitorCollection.h.

References droppedDQMEventCounts_.

Referenced by getStats().

const MonitoredQuantity& stor::DQMEventMonitorCollection::getNumberOfCompleteUpdatesMQ ( ) const [inline]
MonitoredQuantity& stor::DQMEventMonitorCollection::getNumberOfCompleteUpdatesMQ ( ) [inline]

Definition at line 132 of file DQMEventMonitorCollection.h.

References numberOfCompleteUpdates_.

MonitoredQuantity& stor::DQMEventMonitorCollection::getNumberOfTopLevelFoldersMQ ( ) [inline]

Definition at line 118 of file DQMEventMonitorCollection.h.

References numberOfTopLevelFolders_.

const MonitoredQuantity& stor::DQMEventMonitorCollection::getNumberOfTopLevelFoldersMQ ( ) const [inline]

Definition at line 115 of file DQMEventMonitorCollection.h.

References numberOfTopLevelFolders_.

Referenced by getStats().

const MonitoredQuantity& stor::DQMEventMonitorCollection::getNumberOfUpdatesMQ ( ) const [inline]

Definition at line 122 of file DQMEventMonitorCollection.h.

References numberOfUpdates_.

Referenced by stor::DQMTopLevelFolder::getRecord(), and getStats().

                                                          {
      return numberOfUpdates_;
    }
MonitoredQuantity& stor::DQMEventMonitorCollection::getNumberOfUpdatesMQ ( ) [inline]

Definition at line 125 of file DQMEventMonitorCollection.h.

References numberOfUpdates_.

                                              {
      return numberOfUpdates_;
    }
const MonitoredQuantity& stor::DQMEventMonitorCollection::getNumberOfWrittenTopLevelFoldersMQ ( ) const [inline]
MonitoredQuantity& stor::DQMEventMonitorCollection::getNumberOfWrittenTopLevelFoldersMQ ( ) [inline]
const MonitoredQuantity& stor::DQMEventMonitorCollection::getServedDQMEventBandwidthMQ ( ) const [inline]

Definition at line 101 of file DQMEventMonitorCollection.h.

References servedDQMEventBandwidth_.

Referenced by getStats().

MonitoredQuantity& stor::DQMEventMonitorCollection::getServedDQMEventBandwidthMQ ( ) [inline]

Definition at line 104 of file DQMEventMonitorCollection.h.

References servedDQMEventBandwidth_.

MonitoredQuantity& stor::DQMEventMonitorCollection::getServedDQMEventSizeMQ ( ) [inline]

Definition at line 83 of file DQMEventMonitorCollection.h.

References servedDQMEventSizes_.

                                                 {
      return servedDQMEventSizes_;
    }
const MonitoredQuantity& stor::DQMEventMonitorCollection::getServedDQMEventSizeMQ ( ) const [inline]

Definition at line 80 of file DQMEventMonitorCollection.h.

References servedDQMEventSizes_.

Referenced by stor::DQMTopLevelFolder::getRecord(), and getStats().

                                                             {
      return servedDQMEventSizes_;
    }
void stor::DQMEventMonitorCollection::getStats ( DQMEventStats stats) const

Write all our collected statistics into the given Stats struct.

Definition at line 30 of file DQMEventMonitorCollection.cc.

References stor::DQMEventMonitorCollection::DQMEventStats::dqmEventBandwidthStats, stor::DQMEventMonitorCollection::DQMEventStats::dqmEventSizeStats, stor::DQMEventMonitorCollection::DQMEventStats::droppedDQMEventCountsStats, getDQMEventBandwidthMQ(), getDQMEventSizeMQ(), getDroppedDQMEventCountsMQ(), getNumberOfCompleteUpdatesMQ(), getNumberOfTopLevelFoldersMQ(), getNumberOfUpdatesMQ(), getNumberOfWrittenTopLevelFoldersMQ(), getServedDQMEventBandwidthMQ(), getServedDQMEventSizeMQ(), stor::MonitoredQuantity::getStats(), getWrittenDQMEventBandwidthMQ(), getWrittenDQMEventSizeMQ(), stor::DQMEventMonitorCollection::DQMEventStats::numberOfCompleteUpdatesStats, stor::DQMEventMonitorCollection::DQMEventStats::numberOfTopLevelFoldersStats, stor::DQMEventMonitorCollection::DQMEventStats::numberOfUpdatesStats, stor::DQMEventMonitorCollection::DQMEventStats::numberOfWrittenTopLevelFoldersStats, stor::DQMEventMonitorCollection::DQMEventStats::servedDQMEventBandwidthStats, stor::DQMEventMonitorCollection::DQMEventStats::servedDQMEventSizeStats, stor::DQMEventMonitorCollection::DQMEventStats::writtenDQMEventBandwidthStats, and stor::DQMEventMonitorCollection::DQMEventStats::writtenDQMEventSizeStats.

Referenced by stor::SMWebPageHelper::addDOMforSummaryInformation(), and do_updateInfoSpaceItems().

  {
    getDroppedDQMEventCountsMQ().getStats(stats.droppedDQMEventCountsStats);
    
    getDQMEventSizeMQ().getStats(stats.dqmEventSizeStats);
    getServedDQMEventSizeMQ().getStats(stats.servedDQMEventSizeStats);
    getWrittenDQMEventSizeMQ().getStats(stats.writtenDQMEventSizeStats);
    
    getDQMEventBandwidthMQ().getStats(stats.dqmEventBandwidthStats);
    getServedDQMEventBandwidthMQ().getStats(stats.servedDQMEventBandwidthStats);
    getWrittenDQMEventBandwidthMQ().getStats(stats.writtenDQMEventBandwidthStats);
    
    getNumberOfTopLevelFoldersMQ().getStats(stats.numberOfTopLevelFoldersStats);
    getNumberOfUpdatesMQ().getStats(stats.numberOfUpdatesStats);
    getNumberOfWrittenTopLevelFoldersMQ().getStats(stats.numberOfWrittenTopLevelFoldersStats);

    getNumberOfCompleteUpdatesMQ().getStats(stats.numberOfCompleteUpdatesStats);
  }
MonitoredQuantity& stor::DQMEventMonitorCollection::getWrittenDQMEventBandwidthMQ ( ) [inline]

Definition at line 111 of file DQMEventMonitorCollection.h.

References writtenDQMEventBandwidth_.

const MonitoredQuantity& stor::DQMEventMonitorCollection::getWrittenDQMEventBandwidthMQ ( ) const [inline]

Definition at line 108 of file DQMEventMonitorCollection.h.

References writtenDQMEventBandwidth_.

Referenced by getStats().

MonitoredQuantity& stor::DQMEventMonitorCollection::getWrittenDQMEventSizeMQ ( ) [inline]

Definition at line 90 of file DQMEventMonitorCollection.h.

References writtenDQMEventSizes_.

                                                  {
      return writtenDQMEventSizes_;
    }
const MonitoredQuantity& stor::DQMEventMonitorCollection::getWrittenDQMEventSizeMQ ( ) const [inline]
DQMEventMonitorCollection& stor::DQMEventMonitorCollection::operator= ( DQMEventMonitorCollection const &  ) [private]

Member Data Documentation

Definition at line 29 of file DQMEventMonitorCollection.h.

Referenced by do_calculateStatistics(), do_reset(), and getDQMEventSizeMQ().

xdata::UnsignedInteger32 stor::DQMEventMonitorCollection::droppedDQMEvents_ [private]
xdata::UnsignedInteger32 stor::DQMEventMonitorCollection::processedDQMEvents_ [private]