#include <RegistrationInfoBase.h>
Public Member Functions | |
const int & | connectTrySleepTime () const |
void | consumerContact () |
const ConsumerID & | consumerId () 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_t & | minEventRequestInterval () const |
virtual bool | operator!= (const RegistrationInfoBase &) const |
virtual bool | operator< (const RegistrationInfoBase &) const |
virtual bool | operator== (const RegistrationInfoBase &) const |
const QueueID & | queueId () const |
void | queueInfo (std::ostream &) const |
const enquing_policy::PolicyTag & | queuePolicy () 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_t & | secondsToStale () 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 () |
Protected Member Functions | |
virtual void | do_appendToPSet (edm::ParameterSet &) const =0 |
virtual void | do_eventType (std::ostream &) const =0 |
virtual void | do_registerMe (EventDistributor *)=0 |
Private Attributes | |
int | connectTrySleepTime_ |
ConsumerID | consumerId_ |
std::string | consumerName_ |
utils::TimePoint_t | lastConsumerContact_ |
int | maxConnectTries_ |
utils::Duration_t | minEventRequestInterval_ |
QueueID | queueId_ |
enquing_policy::PolicyTag | queuePolicy_ |
int | queueSize_ |
const std::string | remoteHost_ |
int | retryInterval_ |
utils::Duration_t | secondsToStale_ |
std::string | sourceURL_ |
Defines the common interface for event and DQM consumer registration info objects.
Definition at line 32 of file RegistrationInfoBase.h.
stor::RegistrationInfoBase::RegistrationInfoBase | ( | const std::string & | consumerName, |
const std::string & | remoteHost, | ||
const int & | queueSize, | ||
const enquing_policy::PolicyTag & | queuePolicy, | ||
const utils::Duration_t & | secondsToStale | ||
) |
Definition at line 13 of file RegistrationInfoBase.cc.
stor::RegistrationInfoBase::RegistrationInfoBase | ( | const edm::ParameterSet & | pset, |
const std::string & | remoteHost, | ||
const EventServingParams & | eventServingParams, | ||
const bool | useEventServingParams | ||
) |
Definition at line 30 of file RegistrationInfoBase.cc.
References stor::EventServingParams::activeConsumerTimeout_, stor::EventServingParams::consumerQueuePolicy_, stor::EventServingParams::consumerQueueSize_, stor::enquing_policy::DiscardNew, stor::enquing_policy::DiscardOld, alignCSCRings::e, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), stor::enquing_policy::Max, reco_skim_cfg_mod::maxEventRequestRate, evf::utils::policy, seconds(), and stor::utils::secondsToDuration().
|
inlinevirtual |
The virtual destructor allows polymorphic containment-by-reference.
Definition at line 58 of file RegistrationInfoBase.h.
|
inline |
Definition at line 99 of file RegistrationInfoBase.h.
References connectTrySleepTime_.
|
inline |
Mark time when consumer last contacted us
Definition at line 145 of file RegistrationInfoBase.h.
References stor::utils::getCurrentTime(), and lastConsumerContact_.
|
inline |
Definition at line 96 of file RegistrationInfoBase.h.
References consumerId_.
Referenced by stor::operator<<().
|
inline |
Definition at line 93 of file RegistrationInfoBase.h.
References consumerName_.
Referenced by stor::operator<<().
|
protectedpure virtual |
Implemented in stor::EventConsumerRegistrationInfo, and stor::DQMEventConsumerRegistrationInfo.
Referenced by getPSet().
|
protectedpure virtual |
Implemented in stor::EventConsumerRegistrationInfo, and stor::DQMEventConsumerRegistrationInfo.
Referenced by eventType().
|
protectedpure virtual |
Implemented in stor::EventConsumerRegistrationInfo, and stor::DQMEventConsumerRegistrationInfo.
Referenced by registerMe().
|
inline |
Returns a formatted string which contains the information about the event type.
Definition at line 157 of file RegistrationInfoBase.h.
References do_eventType().
edm::ParameterSet stor::RegistrationInfoBase::getPSet | ( | ) | const |
Return the ParameterSet containing the consumer registration infos
Definition at line 101 of file RegistrationInfoBase.cc.
References edm::ParameterSet::addParameter(), edm::ParameterSet::addUntrackedParameter(), connectTrySleepTime_, consumerName_, stor::enquing_policy::DiscardNew, stor::enquing_policy::DiscardOld, do_appendToPSet(), stor::utils::durationToSeconds(), maxConnectTries_, minEventRequestInterval_, queuePolicy_, queueSize_, scaleCards::rate, retryInterval_, secondsToStale(), secondsToStale_, and sourceURL_.
|
inline |
Definition at line 163 of file RegistrationInfoBase.h.
References lastConsumerContact_, and secondsToStale().
|
inline |
Definition at line 90 of file RegistrationInfoBase.h.
References consumerId_, and stor::ConsumerID::isValid().
|
inline |
Definition at line 169 of file RegistrationInfoBase.h.
References stor::utils::durationToSeconds(), and lastConsumerContact_.
|
inline |
Definition at line 98 of file RegistrationInfoBase.h.
References maxConnectTries_.
|
inline |
Definition at line 101 of file RegistrationInfoBase.h.
References minEventRequestInterval_.
|
virtual |
Definition at line 161 of file RegistrationInfoBase.cc.
|
virtual |
Definition at line 143 of file RegistrationInfoBase.cc.
References queuePolicy(), queueSize(), and secondsToStale().
Referenced by stor::DQMEventConsumerRegistrationInfo::operator<(), and stor::EventConsumerRegistrationInfo::operator<().
|
virtual |
Definition at line 152 of file RegistrationInfoBase.cc.
References queuePolicy(), queueSize(), and secondsToStale().
Referenced by stor::DQMEventConsumerRegistrationInfo::operator==(), and stor::EventConsumerRegistrationInfo::operator==().
|
inline |
Definition at line 91 of file RegistrationInfoBase.h.
References queueId_.
Referenced by stor::operator<<().
void stor::RegistrationInfoBase::queueInfo | ( | std::ostream & | os | ) | const |
Print queue information into ostream
Definition at line 166 of file RegistrationInfoBase.cc.
References queuePolicy_, queueSize_, and secondsToStale_.
Referenced by stor::DQMEventConsumerRegistrationInfo::do_eventType(), and stor::EventConsumerRegistrationInfo::do_eventType().
|
inline |
Definition at line 92 of file RegistrationInfoBase.h.
References queuePolicy_.
Referenced by operator<(), stor::operator<<(), and operator==().
|
inline |
Definition at line 97 of file RegistrationInfoBase.h.
References queueSize_.
Referenced by operator<(), stor::operator<<(), and operator==().
|
inline |
Register the consumer represented by this registration with the specified EventDistributor.
Definition at line 151 of file RegistrationInfoBase.h.
References do_registerMe().
|
inline |
Definition at line 94 of file RegistrationInfoBase.h.
References remoteHost_.
Referenced by stor::operator<<().
|
inline |
|
inline |
Definition at line 102 of file RegistrationInfoBase.h.
References secondsToStale_.
Referenced by getPSet(), isStale(), operator<(), stor::operator<<(), and operator==().
|
inline |
Definition at line 109 of file RegistrationInfoBase.h.
References consumerId_, and errorMatrix2Lands_multiChannel::id.
|
inline |
Definition at line 87 of file RegistrationInfoBase.h.
References MergeJob_cfg::interval, and minEventRequestInterval_.
|
inline |
Definition at line 107 of file RegistrationInfoBase.h.
References errorMatrix2Lands_multiChannel::id, and queueId_.
|
inline |
Definition at line 108 of file RegistrationInfoBase.h.
References sourceURL_, and relmon_authenticated_wget::url.
|
inline |
Definition at line 95 of file RegistrationInfoBase.h.
References sourceURL_.
Referenced by stor::DQMEventConsumerRegistrationInfo::eventURL(), stor::EventConsumerRegistrationInfo::eventURL(), stor::operator<<(), stor::DQMEventConsumerRegistrationInfo::registerURL(), and stor::EventConsumerRegistrationInfo::registerURL().
|
private |
Definition at line 133 of file RegistrationInfoBase.h.
Referenced by connectTrySleepTime(), and getPSet().
|
private |
Definition at line 137 of file RegistrationInfoBase.h.
Referenced by consumerId(), isValid(), and setConsumerId().
|
private |
Definition at line 127 of file RegistrationInfoBase.h.
Referenced by consumerName(), and getPSet().
|
private |
Definition at line 138 of file RegistrationInfoBase.h.
Referenced by consumerContact(), isStale(), and lastContactSecondsAgo().
|
private |
Definition at line 132 of file RegistrationInfoBase.h.
Referenced by getPSet(), and maxConnectTries().
|
private |
Definition at line 135 of file RegistrationInfoBase.h.
Referenced by getPSet(), minEventRequestInterval(), and setMinEventRequestInterval().
|
private |
Definition at line 136 of file RegistrationInfoBase.h.
Referenced by queueId(), and setQueueId().
|
private |
Definition at line 130 of file RegistrationInfoBase.h.
Referenced by getPSet(), queueInfo(), and queuePolicy().
|
private |
Definition at line 129 of file RegistrationInfoBase.h.
Referenced by getPSet(), queueInfo(), and queueSize().
|
private |
Definition at line 126 of file RegistrationInfoBase.h.
Referenced by remoteHost().
|
private |
Definition at line 134 of file RegistrationInfoBase.h.
Referenced by getPSet(), and retryInterval().
|
private |
Definition at line 131 of file RegistrationInfoBase.h.
Referenced by getPSet(), queueInfo(), and secondsToStale().
|
private |
Definition at line 128 of file RegistrationInfoBase.h.
Referenced by getPSet(), setSourceURL(), and sourceURL().