CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
stor::DQMEventConsumerRegistrationInfo Class Reference

#include <DQMEventConsumerRegistrationInfo.h>

Inheritance diagram for stor::DQMEventConsumerRegistrationInfo:
stor::RegistrationInfoBase

Public Member Functions

virtual void do_appendToPSet (edm::ParameterSet &) const
 
virtual void do_eventType (std::ostream &) const
 
virtual void do_registerMe (EventDistributor *)
 
 DQMEventConsumerRegistrationInfo (const edm::ParameterSet &pset, const EventServingParams &eventServingParams, const std::string &remoteHost=toolbox::net::getHostName())
 
 DQMEventConsumerRegistrationInfo (const edm::ParameterSet &pset, const std::string &remoteHost=toolbox::net::getHostName())
 
uint32 eventCode () const
 
uint32 eventRequestCode () const
 
std::string eventURL () const
 
bool operator!= (const DQMEventConsumerRegistrationInfo &) const
 
bool operator< (const DQMEventConsumerRegistrationInfo &) const
 
bool operator== (const DQMEventConsumerRegistrationInfo &) const
 
std::string registerURL () const
 
const std::string & topLevelFolderName () const
 
std::ostream & write (std::ostream &os) const
 
 ~DQMEventConsumerRegistrationInfo ()
 
- Public Member Functions inherited from stor::RegistrationInfoBase
const int & connectTrySleepTime () const
 
void consumerContact ()
 
const ConsumerIDconsumerId () const
 
const std::string & consumerName () const
 
void eventType (std::ostream &) const
 
edm::ParameterSet getPSet () const
 
bool isStale (const utils::TimePoint_t &) const
 
bool isValid () const
 
double lastContactSecondsAgo (const utils::TimePoint_t &) const
 
const int & maxConnectTries () const
 
const utils::Duration_tminEventRequestInterval () const
 
virtual bool operator!= (const RegistrationInfoBase &) const
 
virtual bool operator< (const RegistrationInfoBase &) const
 
virtual bool operator== (const RegistrationInfoBase &) const
 
const QueueIDqueueId () const
 
void queueInfo (std::ostream &) const
 
const enquing_policy::PolicyTagqueuePolicy () const
 
const int & queueSize () const
 
void registerMe (EventDistributor *dist)
 
 RegistrationInfoBase (const std::string &consumerName, const std::string &remoteHost, const int &queueSize, const enquing_policy::PolicyTag &queuePolicy, const utils::Duration_t &secondsToStale)
 
 RegistrationInfoBase (const edm::ParameterSet &pset, const std::string &remoteHost, const EventServingParams &eventServingParams, const bool useEventServingParams)
 
const std::string & remoteHost () const
 
const int & retryInterval () const
 
const utils::Duration_tsecondsToStale () const
 
void setConsumerId (const ConsumerID &id)
 
void setMinEventRequestInterval (const utils::Duration_t &interval)
 
void setQueueId (const QueueID &id)
 
void setSourceURL (const std::string &url)
 
const std::string & sourceURL () const
 
virtual ~RegistrationInfoBase ()
 

Private Member Functions

void parsePSet (const edm::ParameterSet &)
 

Private Attributes

std::string topLevelFolderName_
 

Additional Inherited Members

Detailed Description

Holds the registration information for a DQM event consumer.

Author:
mommsen
Revision:
1.9
Date:
2011/03/07 15:31:31

Definition at line 33 of file DQMEventConsumerRegistrationInfo.h.

Constructor & Destructor Documentation

stor::DQMEventConsumerRegistrationInfo::DQMEventConsumerRegistrationInfo ( const edm::ParameterSet pset,
const EventServingParams eventServingParams,
const std::string &  remoteHost = toolbox::net::getHostName() 
)

Constructs an instance from the specified registration information.

Definition at line 14 of file DQMEventConsumerRegistrationInfo.cc.

18  :
19  RegistrationInfoBase(pset, remoteHost, eventServingParams, true)
20  {
21  parsePSet(pset);
22  }
RegistrationInfoBase(const std::string &consumerName, const std::string &remoteHost, const int &queueSize, const enquing_policy::PolicyTag &queuePolicy, const utils::Duration_t &secondsToStale)
const std::string & remoteHost() const
stor::DQMEventConsumerRegistrationInfo::DQMEventConsumerRegistrationInfo ( const edm::ParameterSet pset,
const std::string &  remoteHost = toolbox::net::getHostName() 
)

Definition at line 25 of file DQMEventConsumerRegistrationInfo.cc.

28  :
29  RegistrationInfoBase(pset, remoteHost, EventServingParams(), false)
30  {
31  parsePSet(pset);
32  }
RegistrationInfoBase(const std::string &consumerName, const std::string &remoteHost, const int &queueSize, const enquing_policy::PolicyTag &queuePolicy, const utils::Duration_t &secondsToStale)
const std::string & remoteHost() const
stor::DQMEventConsumerRegistrationInfo::~DQMEventConsumerRegistrationInfo ( )
inline

Definition at line 56 of file DQMEventConsumerRegistrationInfo.h.

56 {};

Member Function Documentation

void stor::DQMEventConsumerRegistrationInfo::do_appendToPSet ( edm::ParameterSet pset) const
virtual
void stor::DQMEventConsumerRegistrationInfo::do_eventType ( std::ostream &  os) const
virtual

Implements stor::RegistrationInfoBase.

Definition at line 54 of file DQMEventConsumerRegistrationInfo.cc.

References stor::RegistrationInfoBase::queueInfo(), and topLevelFolderName_.

55  {
56  os << "Top level folder: " << topLevelFolderName_ << "\n";
57  queueInfo(os);
58  }
void queueInfo(std::ostream &) const
void stor::DQMEventConsumerRegistrationInfo::do_registerMe ( EventDistributor evtDist)
virtual

Implements stor::RegistrationInfoBase.

Definition at line 48 of file DQMEventConsumerRegistrationInfo.cc.

References stor::EventDistributor::registerDQMEventConsumer().

49  {
50  evtDist->registerDQMEventConsumer(shared_from_this());
51  }
uint32 stor::DQMEventConsumerRegistrationInfo::eventCode ( ) const
inline

Definition at line 61 of file DQMEventConsumerRegistrationInfo.h.

References Header::DQM_EVENT.

uint32 stor::DQMEventConsumerRegistrationInfo::eventRequestCode ( ) const
inline
std::string stor::DQMEventConsumerRegistrationInfo::eventURL ( ) const
inline

Definition at line 62 of file DQMEventConsumerRegistrationInfo.h.

References stor::RegistrationInfoBase::sourceURL().

62 { return sourceURL() + "/getDQMeventdata"; }
const std::string & sourceURL() const
bool stor::DQMEventConsumerRegistrationInfo::operator!= ( const DQMEventConsumerRegistrationInfo other) const

Definition at line 78 of file DQMEventConsumerRegistrationInfo.cc.

79  {
80  return ! ( *this == other );
81  }
bool stor::DQMEventConsumerRegistrationInfo::operator< ( const DQMEventConsumerRegistrationInfo other) const

Definition at line 61 of file DQMEventConsumerRegistrationInfo.cc.

References stor::RegistrationInfoBase::operator<(), and topLevelFolderName().

62  {
63  if ( topLevelFolderName() != other.topLevelFolderName() )
64  return ( topLevelFolderName() < other.topLevelFolderName() );
65  return RegistrationInfoBase::operator<(other);
66  }
virtual bool operator<(const RegistrationInfoBase &) const
bool stor::DQMEventConsumerRegistrationInfo::operator== ( const DQMEventConsumerRegistrationInfo other) const

Definition at line 69 of file DQMEventConsumerRegistrationInfo.cc.

References stor::RegistrationInfoBase::operator==(), and topLevelFolderName().

70  {
71  return (
72  topLevelFolderName() == other.topLevelFolderName() &&
74  );
75  }
virtual bool operator==(const RegistrationInfoBase &) const
void stor::DQMEventConsumerRegistrationInfo::parsePSet ( const edm::ParameterSet pset)
private
std::string stor::DQMEventConsumerRegistrationInfo::registerURL ( ) const
inline

Definition at line 63 of file DQMEventConsumerRegistrationInfo.h.

References stor::RegistrationInfoBase::sourceURL().

63 { return sourceURL() + "/registerDQMConsumer"; }
const std::string & sourceURL() const
const std::string& stor::DQMEventConsumerRegistrationInfo::topLevelFolderName ( ) const
inline
std::ostream& stor::DQMEventConsumerRegistrationInfo::write ( std::ostream &  os) const

Member Data Documentation

std::string stor::DQMEventConsumerRegistrationInfo::topLevelFolderName_
private