#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 20 of file SQLMonitoringService.cc.
|
virtual |
Definition at line 26 of file SQLMonitoringService.cc.
|
virtual |
Return monitoring activity status
Definition at line 62 of file SQLMonitoringService.cc.
References m_events, and mergeVDriftHistosByStation::name.
Referenced by record().
|
virtual |
Definition at line 82 of file SQLMonitoringService.cc.
References m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Definition at line 72 of file SQLMonitoringService.cc.
References m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Return current monitoring level
Definition at line 52 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 179 of file SQLMonitoringService.cc.
References m_monitoredDS.
|
virtual |
Records an event without a payload ( time event for example )
Definition at line 93 of file SQLMonitoringService.cc.
References active(), m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Records an event with a payload
Definition at line 109 of file SQLMonitoringService.cc.
References active(), m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Records an event with a payload
Definition at line 125 of file SQLMonitoringService.cc.
References active(), m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Records an event with a payload
Definition at line 141 of file SQLMonitoringService.cc.
References active(), m_events, and mergeVDriftHistosByStation::name.
|
virtual |
Records an event with a payload
Definition at line 157 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 184 of file SQLMonitoringService.cc.
References funct::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 194 of file SQLMonitoringService.cc.
References funct::log(), m_events, mergeVDriftHistosByStation::name, and reportForSession().
|
virtual |
Return the current reporter
Definition at line 173 of file SQLMonitoringService.cc.
void cond::SQLMonitoringService::reportForSession | ( | Repository::const_iterator & | it, |
std::ostream & | os | ||
) | const |
Definition at line 237 of file SQLMonitoringService.cc.
References reportOnEvent().
Referenced by report(), and reportToOutputStream().
void cond::SQLMonitoringService::reportForSession | ( | Repository::const_iterator & | it, |
coral::MessageStream & | os | ||
) | const |
Definition at line 247 of file SQLMonitoringService.cc.
References reportOnEvent().
void cond::SQLMonitoringService::reportOnEvent | ( | EventStream::const_iterator & | it, |
std::ostream & | os | ||
) | const |
Definition at line 220 of file SQLMonitoringService.cc.
Referenced by reportForSession().
void cond::SQLMonitoringService::reportOnEvent | ( | EventStream::const_iterator & | it, |
coral::MessageStream & | os | ||
) | const |
Definition at line 229 of file SQLMonitoringService.cc.
|
virtual |
Reports the events to the specified output stream
contextKey | The session ID for which to make the report |
Definition at line 207 of file SQLMonitoringService.cc.
References funct::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 30 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().