4 #ifndef EventFilter_SMProxyServer_DataRetrieverMonitorCollection_h
5 #define EventFilter_SMProxyServer_DataRetrieverMonitorCollection_h
15 #include <boost/shared_ptr.hpp>
16 #include <boost/thread.hpp>
45 typedef std::pair<stor::RegPtr, stor::MonitoredQuantity::Stats>
EventTypeStats;
183 #endif // EventFilter_SMProxyServer_DataRetrieverMonitorCollection_h
std::ostream & operator<<(std::ostream &os, ConnectionID id)
stor::MonitoredQuantity size_
ConnectionStatus connectionStatus_
bool operator<(const EventTypeStats &) const
std::vector< EventTypeStats > EventTypeStatList
void getStatsByConnection(ConnectionStats &) const
RetrieverMqMap retrieverMqMap_
boost::shared_ptr< RegistrationInfoBase > RegPtr
void getStatsByEventTypes(EventTypeStatList &) const
stor::MonitoredQuantity::Stats sizeStats
boost::shared_ptr< MonitoredQuantity > MonitoredQuantityPtr
static boost::mutex mutex
bool addSample(const stor::RegPtr, const double &sizeKB)
bool setConnectionStatus(const ConnectionID &, const ConnectionStatus &)
bool getEventTypeStatsForConnection(const ConnectionID &, EventTypeStats &)
std::pair< stor::RegPtr, stor::MonitoredQuantity::Stats > EventTypeStats
DataRetrieverMonitorCollection(const stor::utils::Duration_t &updateInterval)
bool insert(const stor::RegPtr)
boost::shared_ptr< stor::EventConsumerRegistrationInfo > EventConsRegPtr
std::map< std::string, stor::MonitoredQuantityPtr > ConnectionMqMap
ConnectionMqMap connectionMqMap_
void calculateStatistics()
bool addRetrievedSample(const ConnectionID &, const unsigned int &size)
virtual void do_calculateStatistics()
EventTypeMqMap eventTypeMqMap_
const stor::utils::Duration_t updateInterval_
ConnectionStatus connectionStatus
void getSummaryStats(SummaryStats &) const
boost::posix_time::time_duration Duration_t
stor::MonitoredQuantity::Stats sizeStats
std::map< stor::EventConsRegPtr, stor::MonitoredQuantityPtr, stor::utils::ptrComp< stor::EventConsumerRegistrationInfo > > EventMap
ConnectionID nextConnectionId_
boost::shared_ptr< DataRetrieverMQ > DataRetrieverMQPtr
std::map< ConnectionID, DataRetrieverMQPtr > RetrieverMqMap
const stor::utils::Duration_t updateInterval_
EventTypeStatList eventTypeStats
std::map< std::string, stor::MonitoredQuantity::Stats > ConnectionStats
void getStats(SummaryStats::EventTypeStatList &) const
stor::MonitoredQuantity totalSize_
DataRetrieverMonitorCollection & operator=(DataRetrieverMonitorCollection const &)
DataRetrieverMQ(stor::RegPtr, const stor::utils::Duration_t &updateInterval)
EventTypeMqMap(const stor::utils::Duration_t &updateInterval)
ConnectionID addNewConnection(const stor::RegPtr)
std::vector< EventTypeStats > EventTypeStatList
tuple size
Write out results.
boost::shared_ptr< stor::DQMEventConsumerRegistrationInfo > DQMEventConsRegPtr
std::map< stor::DQMEventConsRegPtr, stor::MonitoredQuantityPtr, stor::utils::ptrComp< stor::DQMEventConsumerRegistrationInfo > > DQMEventMap