CMS 3D CMS Logo

Public Member Functions | Public Attributes

stor::DataSenderMonitorCollection::ResourceBrokerKey Struct Reference

#include <DataSenderMonitorCollection.h>

List of all members.

Public Member Functions

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

Public Attributes

std::string hltClassName
uint32_t hltInstance
uint32_t hltLocalId
uint32_t hltTid
std::string hltURL
bool isValid

Detailed Description

Key that is used to identify resource brokers.

Definition at line 38 of file DataSenderMonitorCollection.h.


Constructor & Destructor Documentation

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

Definition at line 47 of file DataSenderMonitorCollection.h.

References hltClassName, stor::I2OChain::hltClassName(), hltInstance, stor::I2OChain::hltInstance(), hltLocalId, stor::I2OChain::hltLocalId(), hltTid, stor::I2OChain::hltTid(), hltURL, stor::I2OChain::hltURL(), INVALID, isValid, and stor::I2OChain::messageCode().

      {
        if (i2oChain.messageCode() != Header::INVALID)
          {
            isValid = true;
            hltURL = i2oChain.hltURL();
            hltTid = i2oChain.hltTid();
            hltInstance = i2oChain.hltInstance();
            hltLocalId = i2oChain.hltLocalId();
            hltClassName = i2oChain.hltClassName();
          }
        else
          {
            isValid = false;
          }
      }

Member Function Documentation

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

Definition at line 64 of file DataSenderMonitorCollection.h.

References hltClassName, hltInstance, hltLocalId, hltTid, hltURL, and isValid.

      {
        if (isValid != other.isValid) return isValid < other.isValid;
        if (hltURL != other.hltURL) return hltURL < other.hltURL;
        if (hltTid != other.hltTid) return hltTid < other.hltTid;
        if (hltInstance != other.hltInstance) return hltInstance < other.hltInstance;
        if (hltLocalId != other.hltLocalId) return hltLocalId < other.hltLocalId;
        return hltClassName < other.hltClassName;
      }

Member Data Documentation