4 #ifndef EventFilter_StorageManager_StreamsMonitorCollection_h
5 #define EventFilter_StorageManager_StreamsMonitorCollection_h
12 #include <boost/thread/mutex.hpp>
13 #include <boost/shared_ptr.hpp>
15 #include "xdata/Double.h"
16 #include "xdata/String.h"
17 #include "xdata/UnsignedInteger32.h"
18 #include "xdata/Vector.h"
47 fileCount(updateInterval,timeWindowForRecentResults),
48 volume(updateInterval,timeWindowForRecentResults),
49 bandwidth(updateInterval,timeWindowForRecentResults),
59 const uint32_t& lumiSection,
148 #endif // EventFilter_StorageManager_StreamsMonitorCollection_h
virtual void do_updateInfoSpaceItems()
StreamsMonitorCollection * parentCollection
std::map< uint32_t, unsigned int > FileCountPerLumiSectionMap
static boost::mutex mutex
StreamsMonitorCollection & operator=(StreamsMonitorCollection const &)
const utils::Duration_t timeWindowForRecentResults_
xdata::Vector< xdata::UnsignedInteger32 > eventsPerStream_
xdata::Vector< xdata::String > streamNames_
xdata::Double storedVolume_
const MonitoredQuantity & getAllStreamsBandwidthMQ() const
void reportLumiSectionInfo(const uint32_t &lumiSection, std::string &str)
MonitoredQuantity allStreamsVolume_
MonitoredQuantity allStreamsFileCount_
std::vector< StreamRecordPtr > StreamRecordList
xdata::UnsignedInteger32 storedEvents_
void reportAllLumiSectionInfos(DbFileHandlerPtr)
boost::posix_time::time_duration Duration_t
MonitoredQuantity & getAllStreamsFileCountMQ()
MonitoredQuantity allStreamsBandwidth_
boost::shared_ptr< DbFileHandler > DbFileHandlerPtr
void addSizeInBytes(double)
const MonitoredQuantity & getAllStreamsVolumeMQ() const
boost::shared_ptr< StreamRecord > StreamRecordPtr
xdata::Double bandwidthToDisk_
void incrementFileCount(const uint32_t lumiSection)
StreamRecord(StreamsMonitorCollection *coll, const utils::Duration_t &updateInterval, const utils::Duration_t &timeWindowForRecentResults)
virtual void do_appendInfoSpaceItems(InfoSpaceItems &)
MonitoredQuantity & getAllStreamsBandwidthMQ()
StreamRecordList streamRecords_
virtual void do_calculateStatistics()
void getListOfAllUnreportedLS(UnreportedLS &)
MonitoredQuantity fileCount
xdata::Vector< xdata::Double > ratePerStream_
MonitoredQuantity & getAllStreamsVolumeMQ()
std::vector< std::pair< std::string, xdata::Serializable * > > InfoSpaceItems
void getStreamRecords(StreamRecordList &) const
bool streamRecordsExist() const
std::set< uint32_t > UnreportedLS
FileCountPerLumiSectionMap fileCountPerLS
const MonitoredQuantity & getAllStreamsFileCountMQ() const
StreamsMonitorCollection(const utils::Duration_t &updateInterval)
StreamRecordPtr getNewStreamRecord()
MonitoredQuantity bandwidth
boost::mutex streamRecordsMutex_
xdata::Vector< xdata::Double > bandwidthPerStream_
const utils::Duration_t updateInterval_