CMS 3D CMS Logo

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

stor::FragmentMonitorCollection Class Reference

#include <FragmentMonitorCollection.h>

Inheritance diagram for stor::FragmentMonitorCollection:
stor::MonitorCollection

List of all members.

Classes

struct  FragmentStats

Public Member Functions

void addDQMEventFragmentSample (const double bytecount)
void addEventFragmentSample (const double bytecount)
void addFragmentSample (const double bytecount)
 FragmentMonitorCollection (const utils::Duration_t &updateInterval)
const MonitoredQuantitygetAllFragmentBandwidthMQ () const
MonitoredQuantitygetAllFragmentBandwidthMQ ()
const MonitoredQuantitygetAllFragmentSizeMQ () const
MonitoredQuantitygetAllFragmentSizeMQ ()
MonitoredQuantitygetDQMEventFragmentBandwidthMQ ()
const MonitoredQuantitygetDQMEventFragmentBandwidthMQ () const
const MonitoredQuantitygetDQMEventFragmentSizeMQ () const
MonitoredQuantitygetDQMEventFragmentSizeMQ ()
MonitoredQuantitygetEventFragmentBandwidthMQ ()
const MonitoredQuantitygetEventFragmentBandwidthMQ () const
const MonitoredQuantitygetEventFragmentSizeMQ () const
MonitoredQuantitygetEventFragmentSizeMQ ()
void getStats (FragmentStats &stats) const

Private Member Functions

virtual void do_appendInfoSpaceItems (InfoSpaceItems &)
virtual void do_calculateStatistics ()
virtual void do_reset ()
virtual void do_updateInfoSpaceItems ()
 FragmentMonitorCollection (FragmentMonitorCollection const &)
FragmentMonitorCollectionoperator= (FragmentMonitorCollection const &)

Private Attributes

MonitoredQuantity allFragmentBandwidth_
MonitoredQuantity allFragmentSizes_
MonitoredQuantity dqmEventFragmentBandwidth_
MonitoredQuantity dqmEventFragmentSizes_
MonitoredQuantity eventFragmentBandwidth_
MonitoredQuantity eventFragmentSizes_
xdata::Double instantBandwidth_
xdata::Double instantRate_
xdata::UnsignedInteger32 receivedFrames_

Detailed Description

A collection of MonitoredQuantities related to fragments

Author:
mommsen
Revision:
1.8
Date:
2011/03/07 15:31:32

Definition at line 23 of file FragmentMonitorCollection.h.


Constructor & Destructor Documentation

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

Member Function Documentation

void stor::FragmentMonitorCollection::addDQMEventFragmentSample ( const double  bytecount)

Add a DQM event fragment size of bytes

Definition at line 40 of file FragmentMonitorCollection.cc.

References stor::MonitoredQuantity::addSample(), allFragmentSizes_, and dqmEventFragmentSizes_.

Referenced by stor::StorageManager::receiveDQMMessage().

  {
    double mbytes = bytecount / 0x100000;
    allFragmentSizes_.addSample(mbytes);
    dqmEventFragmentSizes_.addSample(mbytes);
  }
void stor::FragmentMonitorCollection::addEventFragmentSample ( const double  bytecount)

Add an event fragment size of bytes

Definition at line 32 of file FragmentMonitorCollection.cc.

References stor::MonitoredQuantity::addSample(), allFragmentSizes_, and eventFragmentSizes_.

Referenced by stor::StorageManager::receiveDataMessage(), and stor::StorageManager::receiveErrorDataMessage().

  {
    double mbytes = bytecount / 0x100000;
    allFragmentSizes_.addSample(mbytes);
    eventFragmentSizes_.addSample(mbytes);
  }
void stor::FragmentMonitorCollection::addFragmentSample ( const double  bytecount)

Add a generic fragment size of bytes

Definition at line 25 of file FragmentMonitorCollection.cc.

References stor::MonitoredQuantity::addSample(), and allFragmentSizes_.

Referenced by stor::StorageManager::receiveEndOfLumiSectionMessage().

  {
    double mbytes = bytecount / 0x100000;
    allFragmentSizes_.addSample(mbytes);
  }
void stor::FragmentMonitorCollection::do_appendInfoSpaceItems ( InfoSpaceItems infoSpaceItems) [private, virtual]

Reimplemented from stor::MonitorCollection.

Definition at line 99 of file FragmentMonitorCollection.cc.

References instantBandwidth_, instantRate_, and receivedFrames_.

  {
    infoSpaceItems.push_back(std::make_pair("receivedFrames", &receivedFrames_));
    infoSpaceItems.push_back(std::make_pair("instantBandwidth", &instantBandwidth_));
    infoSpaceItems.push_back(std::make_pair("instantRate", &instantRate_));
  }
void stor::FragmentMonitorCollection::do_calculateStatistics ( ) [private, virtual]

Implements stor::MonitorCollection.

Definition at line 60 of file FragmentMonitorCollection.cc.

References stor::MonitoredQuantity::addSample(), allFragmentBandwidth_, allFragmentSizes_, stor::MonitoredQuantity::calculateStatistics(), dqmEventFragmentBandwidth_, dqmEventFragmentSizes_, eventFragmentBandwidth_, eventFragmentSizes_, stor::MonitoredQuantity::Stats::getLastValueRate(), stor::MonitoredQuantity::Stats::getSampleCount(), and stor::MonitoredQuantity::getStats().

  {
    allFragmentSizes_.calculateStatistics();
    eventFragmentSizes_.calculateStatistics();
    dqmEventFragmentSizes_.calculateStatistics();
    
    MonitoredQuantity::Stats stats;
    allFragmentSizes_.getStats(stats);
    if (stats.getSampleCount() > 0) {
      allFragmentBandwidth_.addSample(stats.getLastValueRate());
    }
    allFragmentBandwidth_.calculateStatistics();
    
    eventFragmentSizes_.getStats(stats);
    if (stats.getSampleCount() > 0) {
      eventFragmentBandwidth_.addSample(stats.getLastValueRate());
    }
    eventFragmentBandwidth_.calculateStatistics();
    
    dqmEventFragmentSizes_.getStats(stats);
    if (stats.getSampleCount() > 0) {
      dqmEventFragmentBandwidth_.addSample(stats.getLastValueRate());
    }
    dqmEventFragmentBandwidth_.calculateStatistics();
  }
void stor::FragmentMonitorCollection::do_reset ( ) [private, virtual]
void stor::FragmentMonitorCollection::do_updateInfoSpaceItems ( ) [private, virtual]

Reimplemented from stor::MonitorCollection.

Definition at line 107 of file FragmentMonitorCollection.cc.

References allFragmentBandwidth_, allFragmentSizes_, stor::MonitoredQuantity::Stats::getSampleCount(), stor::MonitoredQuantity::Stats::getSampleRate(), stor::MonitoredQuantity::getStats(), stor::MonitoredQuantity::Stats::getValueRate(), instantBandwidth_, instantRate_, receivedFrames_, and stor::MonitoredQuantity::RECENT.

  {
    MonitoredQuantity::Stats stats;
    
    allFragmentSizes_.getStats(stats);
    receivedFrames_ = static_cast<xdata::UnsignedInteger32>(stats.getSampleCount());
    instantRate_           = static_cast<xdata::Double>(stats.getSampleRate(MonitoredQuantity::RECENT));
    
    allFragmentBandwidth_.getStats(stats);
    instantBandwidth_ = static_cast<xdata::Double>(stats.getValueRate(MonitoredQuantity::RECENT));
  }
MonitoredQuantity& stor::FragmentMonitorCollection::getAllFragmentBandwidthMQ ( ) [inline]

Definition at line 92 of file FragmentMonitorCollection.h.

References allFragmentBandwidth_.

                                                   {
      return allFragmentBandwidth_;
    }
const MonitoredQuantity& stor::FragmentMonitorCollection::getAllFragmentBandwidthMQ ( ) const [inline]

Definition at line 89 of file FragmentMonitorCollection.h.

References allFragmentBandwidth_.

Referenced by getStats().

                                                               {
      return allFragmentBandwidth_;
    }
const MonitoredQuantity& stor::FragmentMonitorCollection::getAllFragmentSizeMQ ( ) const [inline]
MonitoredQuantity& stor::FragmentMonitorCollection::getAllFragmentSizeMQ ( ) [inline]

Definition at line 71 of file FragmentMonitorCollection.h.

References allFragmentSizes_.

                                              {
      return allFragmentSizes_;
    }
MonitoredQuantity& stor::FragmentMonitorCollection::getDQMEventFragmentBandwidthMQ ( ) [inline]

Definition at line 106 of file FragmentMonitorCollection.h.

References dqmEventFragmentBandwidth_.

const MonitoredQuantity& stor::FragmentMonitorCollection::getDQMEventFragmentBandwidthMQ ( ) const [inline]

Definition at line 103 of file FragmentMonitorCollection.h.

References dqmEventFragmentBandwidth_.

Referenced by getStats().

const MonitoredQuantity& stor::FragmentMonitorCollection::getDQMEventFragmentSizeMQ ( ) const [inline]

Definition at line 82 of file FragmentMonitorCollection.h.

References dqmEventFragmentSizes_.

Referenced by getStats().

MonitoredQuantity& stor::FragmentMonitorCollection::getDQMEventFragmentSizeMQ ( ) [inline]

Definition at line 85 of file FragmentMonitorCollection.h.

References dqmEventFragmentSizes_.

MonitoredQuantity& stor::FragmentMonitorCollection::getEventFragmentBandwidthMQ ( ) [inline]

Definition at line 99 of file FragmentMonitorCollection.h.

References eventFragmentBandwidth_.

const MonitoredQuantity& stor::FragmentMonitorCollection::getEventFragmentBandwidthMQ ( ) const [inline]

Definition at line 96 of file FragmentMonitorCollection.h.

References eventFragmentBandwidth_.

Referenced by getStats().

MonitoredQuantity& stor::FragmentMonitorCollection::getEventFragmentSizeMQ ( ) [inline]

Definition at line 78 of file FragmentMonitorCollection.h.

References eventFragmentSizes_.

                                                {
      return eventFragmentSizes_;
    }
const MonitoredQuantity& stor::FragmentMonitorCollection::getEventFragmentSizeMQ ( ) const [inline]

Definition at line 75 of file FragmentMonitorCollection.h.

References eventFragmentSizes_.

Referenced by getStats().

                                                            {
      return eventFragmentSizes_;
    }
void stor::FragmentMonitorCollection::getStats ( FragmentStats stats) const
FragmentMonitorCollection& stor::FragmentMonitorCollection::operator= ( FragmentMonitorCollection const &  ) [private]

Member Data Documentation

xdata::UnsignedInteger32 stor::FragmentMonitorCollection::receivedFrames_ [private]