#include <StreamsMonitorCollection.h>
Classes | |
struct | EndOfRunReport |
struct | StreamRecord |
Public Types | |
typedef boost::shared_ptr < EndOfRunReport > | EndOfRunReportPtr |
typedef std::vector < StreamRecordPtr > | StreamRecordList |
typedef boost::shared_ptr < StreamRecord > | StreamRecordPtr |
Public Types inherited from stor::MonitorCollection | |
typedef std::vector< std::pair < std::string, xdata::Serializable * > > | InfoSpaceItems |
Private Types | |
typedef std::set< uint32_t > | UnreportedLS |
Private Member Functions | |
virtual void | do_appendInfoSpaceItems (InfoSpaceItems &) |
virtual void | do_calculateStatistics () |
virtual void | do_reset () |
virtual void | do_updateInfoSpaceItems () |
void | getListOfAllUnreportedLS (UnreportedLS &) |
StreamsMonitorCollection & | operator= (StreamsMonitorCollection const &) |
StreamsMonitorCollection (StreamsMonitorCollection const &) | |
Private Attributes | |
MonitoredQuantity | allStreamsBandwidth_ |
MonitoredQuantity | allStreamsFileCount_ |
MonitoredQuantity | allStreamsVolume_ |
xdata::Vector< xdata::Double > | bandwidthPerStream_ |
xdata::Double | bandwidthToDisk_ |
xdata::Vector < xdata::UnsignedInteger32 > | eventsPerStream_ |
xdata::Vector< xdata::Double > | ratePerStream_ |
xdata::UnsignedInteger32 | storedEvents_ |
xdata::Double | storedVolume_ |
xdata::Vector< xdata::String > | streamNames_ |
StreamRecordList | streamRecords_ |
boost::mutex | streamRecordsMutex_ |
const utils::Duration_t | timeWindowForRecentResults_ |
const utils::Duration_t | updateInterval_ |
Additional Inherited Members |
A collection of MonitoredQuantities of output streams
Definition at line 35 of file StreamsMonitorCollection.h.
typedef boost::shared_ptr<EndOfRunReport> stor::StreamsMonitorCollection::EndOfRunReportPtr |
Definition at line 101 of file StreamsMonitorCollection.h.
typedef std::vector<StreamRecordPtr> stor::StreamsMonitorCollection::StreamRecordList |
Definition at line 82 of file StreamsMonitorCollection.h.
typedef boost::shared_ptr<StreamRecord> stor::StreamsMonitorCollection::StreamRecordPtr |
Definition at line 81 of file StreamsMonitorCollection.h.
|
private |
Definition at line 144 of file StreamsMonitorCollection.h.
|
explicit |
Definition at line 15 of file StreamsMonitorCollection.cc.
|
private |
|
privatevirtual |
Reimplemented from stor::MonitorCollection.
Definition at line 228 of file StreamsMonitorCollection.cc.
References bandwidthPerStream_, bandwidthToDisk_, eventsPerStream_, ratePerStream_, storedEvents_, storedVolume_, and streamNames_.
|
privatevirtual |
Implements stor::MonitorCollection.
Definition at line 193 of file StreamsMonitorCollection.cc.
References stor::MonitoredQuantity::addSample(), allStreamsBandwidth_, allStreamsFileCount_, allStreamsVolume_, stor::MonitoredQuantity::calculateStatistics(), stor::MonitoredQuantity::Stats::getLastValueRate(), stor::MonitoredQuantity::Stats::getSampleCount(), stor::MonitoredQuantity::getStats(), streamRecords_, and streamRecordsMutex_.
|
privatevirtual |
Implements stor::MonitorCollection.
Definition at line 242 of file StreamsMonitorCollection.cc.
References allStreamsBandwidth_, allStreamsFileCount_, allStreamsVolume_, stor::MonitoredQuantity::reset(), streamRecords_, and streamRecordsMutex_.
|
privatevirtual |
Reimplemented from stor::MonitorCollection.
Definition at line 253 of file StreamsMonitorCollection.cc.
References allStreamsVolume_, bandwidthPerStream_, bandwidthToDisk_, eventsPerStream_, stor::MonitoredQuantity::FULL, stor::MonitoredQuantity::Stats::getSampleCount(), stor::MonitoredQuantity::Stats::getSampleRate(), stor::MonitoredQuantity::getStats(), stor::MonitoredQuantity::Stats::getValueRate(), stor::MonitoredQuantity::Stats::getValueSum(), ratePerStream_, stor::MonitoredQuantity::RECENT, storedEvents_, storedVolume_, streamNames_, streamRecords_, and streamRecordsMutex_.
|
inline |
Definition at line 128 of file StreamsMonitorCollection.h.
References allStreamsBandwidth_.
Referenced by stor::SMWebPageHelper::listStreamRecordsStats().
|
inline |
Definition at line 131 of file StreamsMonitorCollection.h.
References allStreamsBandwidth_.
|
inline |
Definition at line 114 of file StreamsMonitorCollection.h.
References allStreamsFileCount_.
Referenced by stor::SMWebPageHelper::listStreamRecordsStats().
|
inline |
Definition at line 117 of file StreamsMonitorCollection.h.
References allStreamsFileCount_.
|
inline |
Definition at line 121 of file StreamsMonitorCollection.h.
References allStreamsVolume_.
Referenced by stor::SMWebPageHelper::addDOMforStoredData(), and stor::SMWebPageHelper::listStreamRecordsStats().
|
inline |
Definition at line 124 of file StreamsMonitorCollection.h.
References allStreamsVolume_.
|
private |
Definition at line 172 of file StreamsMonitorCollection.cc.
References streamRecords_.
Referenced by reportAllLumiSectionInfos().
StreamsMonitorCollection::StreamRecordPtr stor::StreamsMonitorCollection::getNewStreamRecord | ( | ) |
Definition at line 28 of file StreamsMonitorCollection.cc.
References streamRecords_, streamRecordsMutex_, timeWindowForRecentResults_, and updateInterval_.
void stor::StreamsMonitorCollection::getStreamRecords | ( | StreamRecordList & | list | ) | const |
Definition at line 40 of file StreamsMonitorCollection.cc.
References streamRecords_, and streamRecordsMutex_.
Referenced by stor::SMWebPageHelper::addDOMforSummaryInformation(), and stor::SMWebPageHelper::listStreamRecordsStats().
bool stor::StreamsMonitorCollection::getStreamRecordsForOutputModuleLabel | ( | const std::string & | label, |
StreamRecordList & | list | ||
) | const |
Definition at line 60 of file StreamsMonitorCollection.cc.
Referenced by stor::SMWebPageHelper::addDOMforSummaryInformation().
|
private |
void stor::StreamsMonitorCollection::reportAllLumiSectionInfos | ( | DbFileHandlerPtr | dbFileHandler, |
EndOfRunReportPtr | endOfRunReport | ||
) |
Definition at line 138 of file StreamsMonitorCollection.cc.
References getListOfAllUnreportedLS(), streamRecords_, and streamRecordsMutex_.
Referenced by stor::DiskWriter::reportRemainingLumiSections().
bool stor::StreamsMonitorCollection::streamRecordsExist | ( | ) | const |
Definition at line 84 of file StreamsMonitorCollection.cc.
References streamRecords_, and streamRecordsMutex_.
Referenced by stor::SMWebPageHelper::addDOMforStoredData().
|
private |
Definition at line 160 of file StreamsMonitorCollection.h.
Referenced by do_calculateStatistics(), do_reset(), and getAllStreamsBandwidthMQ().
|
private |
Definition at line 158 of file StreamsMonitorCollection.h.
Referenced by do_calculateStatistics(), do_reset(), and getAllStreamsFileCountMQ().
|
private |
Definition at line 159 of file StreamsMonitorCollection.h.
Referenced by stor::StreamsMonitorCollection::StreamRecord::addSizeInBytes(), do_calculateStatistics(), do_reset(), do_updateInfoSpaceItems(), and getAllStreamsVolumeMQ().
|
private |
Definition at line 168 of file StreamsMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), and do_updateInfoSpaceItems().
|
private |
Definition at line 164 of file StreamsMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), and do_updateInfoSpaceItems().
|
private |
Definition at line 166 of file StreamsMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), and do_updateInfoSpaceItems().
|
private |
Definition at line 167 of file StreamsMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), and do_updateInfoSpaceItems().
|
private |
Definition at line 162 of file StreamsMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), and do_updateInfoSpaceItems().
|
private |
Definition at line 163 of file StreamsMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), and do_updateInfoSpaceItems().
|
private |
Definition at line 165 of file StreamsMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), and do_updateInfoSpaceItems().
|
private |
Definition at line 152 of file StreamsMonitorCollection.h.
Referenced by do_calculateStatistics(), do_reset(), do_updateInfoSpaceItems(), getListOfAllUnreportedLS(), getNewStreamRecord(), getStreamRecords(), reportAllLumiSectionInfos(), and streamRecordsExist().
|
mutableprivate |
Definition at line 153 of file StreamsMonitorCollection.h.
Referenced by do_calculateStatistics(), do_reset(), do_updateInfoSpaceItems(), getNewStreamRecord(), getStreamRecords(), reportAllLumiSectionInfos(), and streamRecordsExist().
|
private |
Definition at line 156 of file StreamsMonitorCollection.h.
Referenced by getNewStreamRecord().
|
private |
Definition at line 155 of file StreamsMonitorCollection.h.
Referenced by getNewStreamRecord().