CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventDistributor.h
Go to the documentation of this file.
1 // $Id: EventDistributor.h,v 1.8 2011/03/07 15:31:31 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_EventDistributor_h
5 #define EventFilter_StorageManager_EventDistributor_h
6 
13 
14 #include "boost/shared_ptr.hpp"
15 
16 
17 namespace stor {
18 
19  class DataSenderMonitorCollection;
20  class DQMEventSelector;
21  class ErrorStreamConfigurationInfo;
22  class ErrorStreamSelector;
23  class EventConsumerSelector;
24  class EventStreamConfigurationInfo;
25  class EventStreamSelector;
26  class I2OChain;
27  class QueueID;
28  class StatisticsReporter;
29 
30 
45  {
46  public:
47 
49 
51 
56 
61  const bool full() const;
62 
67 
72 
77 
82 
86  void clearStreams();
87 
91  unsigned int configuredStreamCount() const;
92 
96  unsigned int initializedStreamCount() const;
97 
101  void clearConsumers();
102 
106  unsigned int configuredConsumerCount() const;
107 
111  unsigned int initializedConsumerCount() const;
112 
116  void checkForStaleConsumers();
117 
118  private:
119 
121 
123 
124  typedef boost::shared_ptr<EventStreamSelector> EvtSelPtr;
125  typedef std::set<EvtSelPtr, utils::ptrComp<EventStreamSelector> > EvtSelList;
127 
128  typedef boost::shared_ptr<DQMEventSelector> DQMEvtSelPtr;
129  typedef std::set<DQMEvtSelPtr, utils::ptrComp<DQMEventSelector> > DQMEvtSelList;
131 
132  typedef boost::shared_ptr<ErrorStreamSelector> ErrSelPtr;
133  typedef std::set<ErrSelPtr, utils::ptrComp<ErrorStreamSelector> > ErrSelList;
135 
136  typedef boost::shared_ptr<EventConsumerSelector> ConsSelPtr;
137  typedef std::set<ConsSelPtr, utils::ptrComp<EventConsumerSelector> > ConsSelList;
139 
140  };
141 
142 } // namespace stor
143 
144 #endif // EventFilter_StorageManager_EventDistributor_h
145 
146 
boost::shared_ptr< DQMEventSelector > DQMEvtSelPtr
std::set< EvtSelPtr, utils::ptrComp< EventStreamSelector > > EvtSelList
std::set< ErrSelPtr, utils::ptrComp< ErrorStreamSelector > > ErrSelList
boost::shared_ptr< ErrStrConfigList > ErrStrConfigListPtr
void registerErrorStreams(const ErrStrConfigListPtr)
EventDistributor(SharedResourcesPtr sr)
std::set< DQMEvtSelPtr, utils::ptrComp< DQMEventSelector > > DQMEvtSelList
boost::shared_ptr< SharedResources > SharedResourcesPtr
boost::shared_ptr< stor::EventConsumerRegistrationInfo > EventConsRegPtr
const bool full() const
SharedResourcesPtr sharedResources_
boost::shared_ptr< EvtStrConfigList > EvtStrConfigListPtr
void registerDQMEventConsumer(const DQMEventConsRegPtr)
DQMEvtSelList dqmEventSelectors_
unsigned int configuredStreamCount() const
std::set< ConsSelPtr, utils::ptrComp< EventConsumerSelector > > ConsSelList
boost::shared_ptr< EventStreamSelector > EvtSelPtr
unsigned int configuredConsumerCount() const
void registerEventConsumer(const EventConsRegPtr)
boost::shared_ptr< EventConsumerSelector > ConsSelPtr
unsigned int initializedStreamCount() const
boost::shared_ptr< ErrorStreamSelector > ErrSelPtr
void tagCompleteEventForQueues(I2OChain &)
ConsSelList eventConsumerSelectors_
void registerEventStreams(const EvtStrConfigListPtr)
boost::shared_ptr< stor::DQMEventConsumerRegistrationInfo > DQMEventConsRegPtr
void addEventToRelevantQueues(I2OChain &)
unsigned int initializedConsumerCount() const