#include <SQLMonitoringService.h>
Public Member Functions | |
virtual bool | active (const std::string &contextKey) const |
virtual void | disable (const std::string &contextKey) |
virtual void | enable (const std::string &contextKey) |
virtual coral::monitor::Level | level (const std::string &contextKey) const |
virtual std::set< std::string > | monitoredDataSources () const |
virtual void | record (const std::string &contextKey, coral::monitor::Source source, coral::monitor::Type type, const std::string &description) |
virtual void | record (const std::string &contextKey, coral::monitor::Source source, coral::monitor::Type type, const std::string &description, int data) |
virtual void | record (const std::string &contextKey, coral::monitor::Source source, coral::monitor::Type type, const std::string &description, long long data) |
virtual void | record (const std::string &contextKey, coral::monitor::Source source, coral::monitor::Type type, const std::string &description, double data) |
virtual void | record (const std::string &contextKey, coral::monitor::Source source, coral::monitor::Type type, const std::string &description, const std::string &data) |
virtual void | report (unsigned int level) const |
virtual void | report (const std::string &contextKey, unsigned int level) const |
virtual const coral::IMonitoringReporter & | reporter () const |
void | reportForSession (Repository::const_iterator &it, std::ostream &os) const |
void | reportForSession (Repository::const_iterator &it, coral::MessageStream &os) const |
void | reportOnEvent (EventStream::const_iterator &it, std::ostream &os) const |
void | reportOnEvent (EventStream::const_iterator &it, coral::MessageStream &os) const |
virtual void | reportToOutputStream (const std::string &contextKey, std::ostream &os, unsigned int level) const |
virtual void | setLevel (const std::string &contextKey, coral::monitor::Level level) |
SQLMonitoringService (const std::string &) | |
virtual | ~SQLMonitoringService () |
Private Attributes | |
Repository | m_events |
The all events repository classified by the sessions' keys. More... | |
std::set< std::string > | m_monitoredDS |
Definition at line 40 of file SQLMonitoringService.h.
|
explicit |
Definition at line 21 of file SQLMonitoringService.cc.
|
virtual |
Definition at line 27 of file SQLMonitoringService.cc.
|
virtual |
Return monitoring activity status
Definition at line 63 of file SQLMonitoringService.cc.
References m_events, and mergeVDriftHistosByStation::name.
Referenced by record().
|
virtual |
Definition at line 83 of file SQLMonitoringService.cc.
References m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Definition at line 73 of file SQLMonitoringService.cc.
References m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Return current monitoring level
Definition at line 53 of file SQLMonitoringService.cc.
References m_events, and mergeVDriftHistosByStation::name.
Referenced by setLevel().
|
virtual |
Return the set of currently monitored data sources
Definition at line 180 of file SQLMonitoringService.cc.
References m_monitoredDS.
|
virtual |
Records an event without a payload ( time event for example )
Definition at line 94 of file SQLMonitoringService.cc.
References active(), m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Records an event with a payload
Definition at line 110 of file SQLMonitoringService.cc.
References active(), m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Records an event with a payload
Definition at line 126 of file SQLMonitoringService.cc.
References active(), m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Records an event with a payload
Definition at line 142 of file SQLMonitoringService.cc.
References active(), m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Records an event with a payload
Definition at line 158 of file SQLMonitoringService.cc.
References active(), m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Reports all the events
contextKey | The session ID for which to make the report |
Definition at line 185 of file SQLMonitoringService.cc.
References create_public_lumi_plots::log, m_events, and reportForSession().
|
virtual |
Reports the events to the default reporter
contextKey | The session ID for which to make the report |
Definition at line 195 of file SQLMonitoringService.cc.
References create_public_lumi_plots::log, m_events, mergeVDriftHistosByStation::name, and reportForSession().
|
virtual |
Return the current reporter
Definition at line 174 of file SQLMonitoringService.cc.
void cond::SQLMonitoringService::reportForSession | ( | Repository::const_iterator & | it, |
std::ostream & | os | ||
) | const |
Definition at line 322 of file SQLMonitoringService.cc.
References Debug, Default, reportOnEvent(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by report(), and reportToOutputStream().
void cond::SQLMonitoringService::reportForSession | ( | Repository::const_iterator & | it, |
coral::MessageStream & | os | ||
) | const |
Definition at line 345 of file SQLMonitoringService.cc.
References Debug, Default, reportOnEvent(), and AlCaHLTBitMon_QueryRunRegistry::string.
void cond::SQLMonitoringService::reportOnEvent | ( | EventStream::const_iterator & | it, |
std::ostream & | os | ||
) | const |
Definition at line 221 of file SQLMonitoringService.cc.
References source, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by reportForSession().
void cond::SQLMonitoringService::reportOnEvent | ( | EventStream::const_iterator & | it, |
coral::MessageStream & | os | ||
) | const |
Definition at line 272 of file SQLMonitoringService.cc.
References source, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Reports the events to the specified output stream
contextKey | The session ID for which to make the report |
Definition at line 208 of file SQLMonitoringService.cc.
References create_public_lumi_plots::log, m_events, mergeVDriftHistosByStation::name, and reportForSession().
|
virtual |
The implementation coral::IMonitoringService interface Sets the level
contextKey | The session ID for which to make the report |
level | The monitoring level ( Default, Debug, Trace ) |
Definition at line 31 of file SQLMonitoringService.cc.
References level(), m_events, and m_monitoredDS.
|
private |
The all events repository classified by the sessions' keys.
Definition at line 153 of file SQLMonitoringService.h.
Referenced by active(), disable(), enable(), level(), record(), report(), reportToOutputStream(), and setLevel().
|
private |
Definition at line 154 of file SQLMonitoringService.h.
Referenced by monitoredDataSources(), and setLevel().