4 #ifndef EventFilter_StorageManager_ConsumerMonitorCollection_h
5 #define EventFilter_StorageManager_ConsumerMonitorCollection_h
10 #include <boost/thread/mutex.hpp>
11 #include <boost/shared_ptr.hpp>
17 class MonitoredQuantity;
118 #endif // EventFilter_StorageManager_ConsumerMonitorCollection_h
void addQueuedEventSample(const QueueID &, const unsigned int &data_size)
bool getServed(const QueueID &qid, MonitoredQuantity::Stats &result) const
MonitoredQuantity::Stats queuedStats
static boost::mutex mutex
bool getDropped(const QueueID &qid, MonitoredQuantity::Stats &result) const
MonitoredQuantity::Stats servedStats
MonitoredQuantity totalServedMQ_
MonitoredQuantity::Stats droppedStats
virtual void do_calculateStatistics()
const utils::Duration_t recentDuration_
void addEventSampleToMap(const QueueID &, const unsigned int &data_size, ConsStatMap &)
const utils::Duration_t updateInterval_
MonitoredQuantity totalDroppedMQ_
boost::posix_time::time_duration Duration_t
void addDroppedEvents(const QueueID &, const size_t &count)
std::map< QueueID, MonitoredQuantityPtr > ConsStatMap
void getTotalStats(TotalStats &) const
ConsumerMonitorCollection(const utils::Duration_t &updateInterval, const utils::Duration_t &recentDuration)
bool getQueued(const QueueID &qid, MonitoredQuantity::Stats &result) const
void addServedEventSample(const QueueID &, const unsigned int &data_size)
ConsumerMonitorCollection & operator=(const ConsumerMonitorCollection &)
MonitoredQuantity totalQueuedMQ_
bool getValueFromMap(const QueueID &, MonitoredQuantity::Stats &, const ConsStatMap &) const