#include <ELadministrator.h>
Public Member Functions | |
ELdestControl | attach (const ELdestination &sink) |
ELdestControl | attach (const ELdestination &sink, const ELstring &name) |
ELseverityLevel | checkSeverity () |
void | finish () |
void | log (edm::ErrorObj &msg) |
void | resetSeverityCount (const ELseverityLevel &sev) |
void | resetSeverityCount (const ELseverityLevel &from, const ELseverityLevel &to) |
void | resetSeverityCount () |
void | setIntervals (const ELstring &id, int interval) |
void | setIntervals (const ELseverityLevel &sev, int interval) |
void | setLimits (const ELstring &id, int limit) |
void | setLimits (const ELseverityLevel &sev, int limit) |
void | setThresholds (const ELseverityLevel &sev) |
void | setTimespans (const ELstring &id, int seconds) |
void | setTimespans (const ELseverityLevel &sev, int seconds) |
int | severityCount (const ELseverityLevel &sev) const |
int | severityCount (const ELseverityLevel &from, const ELseverityLevel &to) const |
void | wipe () |
~ELadministrator () | |
Protected Member Functions | |
const ELseverityLevel & | abortThreshold () const |
ELadministrator () | |
const ELseverityLevel & | exitThreshold () const |
const ELseverityLevel & | highSeverity () const |
int | severityCounts (int lev) const |
std::list< std::shared_ptr < ELdestination > > & | sinks () |
Private Attributes | |
std::map< ELstring, std::shared_ptr< ELdestination > > | attachedDestinations_ |
ELseverityLevel | highSeverity_ |
int | severityCounts_ [ELseverityLevel::nLevels] |
std::list< std::shared_ptr < ELdestination > > | sinks_ |
Friends | |
class | ELcout |
class | MessageLoggerScribe |
class | ThreadSafeLogMessageLoggerScribe |
Definition at line 78 of file ELadministrator.h.
edm::service::ELadministrator::~ELadministrator | ( | ) |
Definition at line 323 of file ELadministrator.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, and sinks().
|
protected |
Definition at line 306 of file ELadministrator.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, edm::ELseverityLevel::nLevels, and severityCounts_.
|
protected |
ELdestControl edm::service::ELadministrator::attach | ( | const ELdestination & | sink | ) |
Definition at line 128 of file ELadministrator.cc.
References edm::service::ELdestination::clone(), alignCSCRings::dest, and sinks().
Referenced by log().
ELdestControl edm::service::ELadministrator::attach | ( | const ELdestination & | sink, |
const ELstring & | name | ||
) |
Definition at line 136 of file ELadministrator.cc.
References attachedDestinations_, edm::service::ELdestination::clone(), alignCSCRings::dest, mergeVDriftHistosByStation::name, and sinks().
ELseverityLevel edm::service::ELadministrator::checkSeverity | ( | ) |
Definition at line 145 of file ELadministrator.cc.
References edm::ELzeroSeverity, and highSeverity_.
|
protected |
void edm::service::ELadministrator::finish | ( | ) |
Definition at line 297 of file ELadministrator.cc.
References begin, ztail::d, and sinks().
Referenced by progressbar.ProgressBar::__next__().
|
protected |
Definition at line 207 of file ELadministrator.cc.
References highSeverity_.
void edm::service::ELadministrator::log | ( | edm::ErrorObj & | msg | ) |
Definition at line 97 of file ELadministrator.cc.
References attach(), begin, ecal_dqm_sourceclient-live_cfg::cerr, ztail::d, end, edm::ELseverityLevel::getLevel(), highSeverity_, edm::ErrorObj::setReactedTo(), edm::ELextendedID::severity, severityCounts_, sinks(), and edm::ErrorObj::xid().
void edm::service::ELadministrator::resetSeverityCount | ( | const ELseverityLevel & | sev | ) |
Definition at line 177 of file ELadministrator.cc.
References edm::ELseverityLevel::getLevel(), and severityCounts_.
void edm::service::ELadministrator::resetSeverityCount | ( | const ELseverityLevel & | from, |
const ELseverityLevel & | to | ||
) |
Definition at line 184 of file ELadministrator.cc.
References edm::ELseverityLevel::getLevel(), relval_steps::k, and severityCounts_.
void edm::service::ELadministrator::resetSeverityCount | ( | ) |
Definition at line 193 of file ELadministrator.cc.
References edm::ELhighestSeverity, and edm::ELzeroSeverity.
void edm::service::ELadministrator::setIntervals | ( | const ELstring & | id, |
int | interval | ||
) |
Definition at line 253 of file ELadministrator.cc.
References begin, ztail::d, and sinks().
void edm::service::ELadministrator::setIntervals | ( | const ELseverityLevel & | sev, |
int | interval | ||
) |
Definition at line 245 of file ELadministrator.cc.
References begin, and ztail::d.
void edm::service::ELadministrator::setLimits | ( | const ELstring & | id, |
int | limit | ||
) |
Definition at line 235 of file ELadministrator.cc.
References begin, ztail::d, and sinks().
void edm::service::ELadministrator::setLimits | ( | const ELseverityLevel & | sev, |
int | limit | ||
) |
Definition at line 262 of file ELadministrator.cc.
References begin, ztail::d, and sinks().
void edm::service::ELadministrator::setThresholds | ( | const ELseverityLevel & | sev | ) |
Definition at line 226 of file ELadministrator.cc.
References begin, ztail::d, and sinks().
void edm::service::ELadministrator::setTimespans | ( | const ELstring & | id, |
int | seconds | ||
) |
Definition at line 271 of file ELadministrator.cc.
References begin, ztail::d, and sinks().
void edm::service::ELadministrator::setTimespans | ( | const ELseverityLevel & | sev, |
int | seconds | ||
) |
Definition at line 280 of file ELadministrator.cc.
References begin, ztail::d, and sinks().
int edm::service::ELadministrator::severityCount | ( | const ELseverityLevel & | sev | ) | const |
Definition at line 154 of file ELadministrator.cc.
References edm::ELseverityLevel::getLevel(), and severityCounts_.
int edm::service::ELadministrator::severityCount | ( | const ELseverityLevel & | from, |
const ELseverityLevel & | to | ||
) | const |
Definition at line 161 of file ELadministrator.cc.
References edm::ELseverityLevel::getLevel(), relval_steps::k, and severityCounts_.
|
protected |
Definition at line 212 of file ELadministrator.cc.
References severityCounts_.
|
protected |
Definition at line 204 of file ELadministrator.cc.
References sinks_.
Referenced by attach(), finish(), log(), setIntervals(), setLimits(), setThresholds(), setTimespans(), wipe(), and ~ELadministrator().
void edm::service::ELadministrator::wipe | ( | ) |
Definition at line 289 of file ELadministrator.cc.
References begin, ztail::d, and sinks().
|
friend |
Definition at line 82 of file ELadministrator.h.
|
friend |
Definition at line 80 of file ELadministrator.h.
|
friend |
Definition at line 81 of file ELadministrator.h.
|
private |
Definition at line 144 of file ELadministrator.h.
Referenced by attach().
|
private |
Definition at line 141 of file ELadministrator.h.
Referenced by checkSeverity(), highSeverity(), and log().
|
private |
Definition at line 142 of file ELadministrator.h.
Referenced by ELadministrator(), log(), resetSeverityCount(), severityCount(), and severityCounts().
|
private |
Definition at line 140 of file ELadministrator.h.
Referenced by sinks().