#include <RegistrationCollection.h>
Public Types | |
typedef std::vector < EventConsRegPtr > | ConsumerRegistrations |
typedef std::vector < DQMEventConsRegPtr > | DQMConsumerRegistrations |
Public Member Functions | |
bool | addRegistrationInfo (RegPtr) |
void | clearRegistrations () |
void | disableConsumerRegistration () |
void | enableConsumerRegistration () |
ConsumerID | getConsumerId () |
void | getDQMEventConsumers (DQMConsumerRegistrations &) const |
void | getEventConsumers (ConsumerRegistrations &) const |
RegPtr | getRegistrationInfo (const ConsumerID) const |
RegistrationCollection () | |
bool | registrationIsAllowed (const ConsumerID) const |
~RegistrationCollection () | |
Private Types | |
typedef std::map< ConsumerID, RegPtr > | RegistrationMap |
Private Attributes | |
RegistrationMap | consumers_ |
boost::mutex | lock_ |
ConsumerID | nextConsumerId_ |
bool | registrationAllowed_ |
Keep a collection of registered event and DQM event consumers.
Definition at line 29 of file RegistrationCollection.h.
typedef std::vector<EventConsRegPtr> stor::RegistrationCollection::ConsumerRegistrations |
Get event consumer registrations.
Definition at line 57 of file RegistrationCollection.h.
typedef std::vector<DQMEventConsRegPtr> stor::RegistrationCollection::DQMConsumerRegistrations |
Get DQM event consumer registrations.
Definition at line 63 of file RegistrationCollection.h.
|
private |
Definition at line 94 of file RegistrationCollection.h.
RegistrationCollection::RegistrationCollection | ( | ) |
Definition at line 11 of file RegistrationCollection.cc.
References lock_, nextConsumerId_, and registrationAllowed_.
RegistrationCollection::~RegistrationCollection | ( | ) |
Definition at line 18 of file RegistrationCollection.cc.
bool RegistrationCollection::addRegistrationInfo | ( | RegPtr | ri | ) |
Add registration info. Return false if no registration is allowed.
Definition at line 33 of file RegistrationCollection.cc.
References consumers_, lock_, pos, and registrationAllowed_.
void RegistrationCollection::clearRegistrations | ( | ) |
Clear registrations.
Definition at line 113 of file RegistrationCollection.cc.
References consumers_, and lock_.
void RegistrationCollection::disableConsumerRegistration | ( | ) |
Disable registration.
Definition at line 107 of file RegistrationCollection.cc.
References registrationAllowed_.
void RegistrationCollection::enableConsumerRegistration | ( | ) |
Enable registration.
Definition at line 101 of file RegistrationCollection.cc.
References registrationAllowed_.
ConsumerID RegistrationCollection::getConsumerId | ( | ) |
Return next available consumer ID or 0 if no registration is allowed.
Definition at line 20 of file RegistrationCollection.cc.
References lock_, nextConsumerId_, and registrationAllowed_.
void RegistrationCollection::getDQMEventConsumers | ( | DQMConsumerRegistrations & | crs | ) | const |
Definition at line 88 of file RegistrationCollection.cc.
References consumers_, and lock_.
void RegistrationCollection::getEventConsumers | ( | ConsumerRegistrations & | crs | ) | const |
Definition at line 71 of file RegistrationCollection.cc.
References consumers_, lock_, and python.multivaluedict::sort().
RegPtr RegistrationCollection::getRegistrationInfo | ( | const ConsumerID | cid | ) | const |
Get registration info for ConsumerID. Returns empty pointer if not found.
Definition at line 57 of file RegistrationCollection.cc.
References consumers_, lock_, and pos.
bool RegistrationCollection::registrationIsAllowed | ( | const ConsumerID | cid | ) | const |
Test if registration is allowed.
Definition at line 119 of file RegistrationCollection.cc.
References consumers_, lock_, pos, and registrationAllowed_.
|
private |
Definition at line 95 of file RegistrationCollection.h.
Referenced by addRegistrationInfo(), clearRegistrations(), getDQMEventConsumers(), getEventConsumers(), getRegistrationInfo(), and registrationIsAllowed().
|
mutableprivate |
Definition at line 88 of file RegistrationCollection.h.
Referenced by addRegistrationInfo(), clearRegistrations(), getConsumerId(), getDQMEventConsumers(), getEventConsumers(), getRegistrationInfo(), RegistrationCollection(), and registrationIsAllowed().
|
private |
Definition at line 90 of file RegistrationCollection.h.
Referenced by getConsumerId(), and RegistrationCollection().
|
private |
Definition at line 92 of file RegistrationCollection.h.
Referenced by addRegistrationInfo(), disableConsumerRegistration(), enableConsumerRegistration(), getConsumerId(), RegistrationCollection(), and registrationIsAllowed().