CMS 3D CMS Logo

Public Member Functions | Public Attributes

stor::DataSenderMonitorCollection::FilterUnitKey Struct Reference

#include <DataSenderMonitorCollection.h>

List of all members.

Public Member Functions

 FilterUnitKey (I2OChain const &i2oChain)
bool operator< (FilterUnitKey const &other) const

Public Attributes

uint32_t fuGuid
uint32_t fuProcessId
bool isValid

Detailed Description

Key that is used to identify filter units.

Definition at line 78 of file DataSenderMonitorCollection.h.


Constructor & Destructor Documentation

stor::DataSenderMonitorCollection::FilterUnitKey::FilterUnitKey ( I2OChain const &  i2oChain) [inline, explicit]

Definition at line 84 of file DataSenderMonitorCollection.h.

References fuGuid, stor::I2OChain::fuGuid(), fuProcessId, stor::I2OChain::fuProcessId(), INVALID, isValid, and stor::I2OChain::messageCode().

      {
        if (i2oChain.messageCode() != Header::INVALID)
          {
            isValid = true;
            fuProcessId = i2oChain.fuProcessId();
            fuGuid = i2oChain.fuGuid();
          }
        else
          {
            isValid = false;
          }
      }

Member Function Documentation

bool stor::DataSenderMonitorCollection::FilterUnitKey::operator< ( FilterUnitKey const &  other) const [inline]

Definition at line 98 of file DataSenderMonitorCollection.h.

References fuProcessId, and isValid.

      {
        if (isValid != other.isValid) return isValid < other.isValid;

        // 30-Jun-2009, KAB - we want to keep stats for each filter unit without
        // separating out the output modules.  So, we should only use the process ID
        // in the key.  (The GUID is different for each output module.)
        //if (fuProcessId != other.fuProcessId) return fuProcessId < other.fuProcessId;
        //return fuGuid < other.fuGuid;

        return fuProcessId < other.fuProcessId;
      }

Member Data Documentation

Definition at line 82 of file DataSenderMonitorCollection.h.

Referenced by FilterUnitKey().

Definition at line 81 of file DataSenderMonitorCollection.h.

Referenced by FilterUnitKey(), and operator<().