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,
167 #endif // EventFilter_StorageManager_StreamsMonitorCollection_h
virtual void do_updateInfoSpaceItems()
StreamsMonitorCollection * parentCollection
std::map< uint32_t, unsigned int > FileCountPerLumiSectionMap
static boost::mutex mutex
void updateLatestWrittenLumiSection(uint32_t ls)
StreamsMonitorCollection & operator=(StreamsMonitorCollection const &)
const utils::Duration_t timeWindowForRecentResults_
xdata::Vector< xdata::UnsignedInteger32 > eventsPerStream_
xdata::Vector< xdata::String > streamNames_
unsigned int lsCountWithFiles
xdata::Double storedVolume_
const MonitoredQuantity & getAllStreamsBandwidthMQ() const
boost::shared_ptr< EndOfRunReport > EndOfRunReportPtr
MonitoredQuantity allStreamsVolume_
MonitoredQuantity allStreamsFileCount_
std::vector< StreamRecordPtr > StreamRecordList
xdata::UnsignedInteger32 storedEvents_
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)
void reportAllLumiSectionInfos(DbFileHandlerPtr, EndOfRunReportPtr)
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()
uint32_t latestLumiSectionWritten
std::vector< std::pair< std::string, xdata::Serializable * > > InfoSpaceItems
void getStreamRecords(StreamRecordList &) const
bool streamRecordsExist() const
bool reportLumiSectionInfo(const uint32_t &lumiSection, std::string &str)
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_