#include <Logger.h>
Public Member Functions | |
void | connect (const std::string &logConnectionString, bool readOnly=false) |
void | createLogDBIfNonExist () |
void | logFailedOperationNow (const cond::UserLogInfo &userlogInfo, const std::string &destDB, const std::string &payloadToken, const std::string &payloadClass, const std::string &iovtag, const std::string &iovtimetype, unsigned int payloadIdx, unsigned long long lastSince, const std::string &exceptionMessage) |
Logger (DbSession &sessionHandle) | |
void | logOperationNow (const cond::UserLogInfo &userlogInfo, const std::string &destDB, const std::string &payloadToken, const std::string &payloadClass, const std::string &iovtag, const std::string &iovtimetype, unsigned int payloadIdx, unsigned long long lastSince) |
void | LookupLastEntryByProvenance (const std::string &provenance, LogDBEntry &logentry, bool filterFailedOp=true) const |
void | LookupLastEntryByTag (const std::string &iovtag, LogDBEntry &logentry, bool filterFailedOp=true) const |
void | LookupLastEntryByTag (const std::string &iovtag, const std::string &connectionStr, LogDBEntry &logentry, bool filterFailedOp=true) const |
~Logger () | |
Private Member Functions | |
void | insertLogRecord (unsigned long long logId, const std::string &utctime, const std::string &destDB, const std::string &payloadToken, const std::string &payloadClass, const cond::UserLogInfo &userLogInfo, const std::string &iovtag, const std::string &iovtimetype, unsigned int payloadIdx, unsigned long long lastSince, const std::string &exceptionMessage) |
Private Attributes | |
bool | m_locked |
bool | m_logTableExists |
SequenceManager * | m_sequenceManager |
DbSession | m_sessionHandle |
coral::IQuery * | m_statusEditorHandle |
|
explicit |
void cond::Logger::connect | ( | const std::string & | logConnectionString, |
bool | readOnly = false |
||
) |
Definition at line 41 of file Logger.cc.
References cond::Auth::COND_READER_ROLE, and cond::Auth::COND_WRITER_ROLE.
Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
void cond::Logger::createLogDBIfNonExist | ( | ) |
Definition at line 48 of file Logger.cc.
References cond::DbScopedTransaction::commit(), cond::SequenceManager::createSequencesTable(), idDealer::description, cond::SequenceManager::existSequencesTable(), cond::LogDBNames::LogTableName(), cond::LogDBNames::SequenceTableName(), and cond::DbScopedTransaction::start().
|
private |
Definition at line 295 of file Logger.cc.
References cppFunctionSkipper::exception, edm::hlt::Exception, cond::LogDBNames::LogTableName(), cond::UserLogInfo::provenance, and cond::UserLogInfo::usertext.
void cond::Logger::logFailedOperationNow | ( | const cond::UserLogInfo & | userlogInfo, |
const std::string & | destDB, | ||
const std::string & | payloadToken, | ||
const std::string & | payloadClass, | ||
const std::string & | iovtag, | ||
const std::string & | iovtimetype, | ||
unsigned int | payloadIdx, | ||
unsigned long long | lastSince, | ||
const std::string & | exceptionMessage | ||
) |
Definition at line 138 of file Logger.cc.
References cond::DbScopedTransaction::commit(), cond::LogDBNames::LogTableName(), cmsPerfSuiteHarvest::now, AlCaHLTBitMon_ParallelJobs::p, cond::LogDBNames::SequenceTableName(), cond::DbScopedTransaction::start(), and cond::to_string().
void cond::Logger::logOperationNow | ( | const cond::UserLogInfo & | userlogInfo, |
const std::string & | destDB, | ||
const std::string & | payloadToken, | ||
const std::string & | payloadClass, | ||
const std::string & | iovtag, | ||
const std::string & | iovtimetype, | ||
unsigned int | payloadIdx, | ||
unsigned long long | lastSince | ||
) |
Definition at line 112 of file Logger.cc.
References cond::DbScopedTransaction::commit(), cond::LogDBNames::LogTableName(), cmsPerfSuiteHarvest::now, AlCaHLTBitMon_ParallelJobs::p, cond::LogDBNames::SequenceTableName(), cond::DbScopedTransaction::start(), and cond::to_string().
void cond::Logger::LookupLastEntryByProvenance | ( | const std::string & | provenance, |
LogDBEntry & | logentry, | ||
bool | filterFailedOp = true |
||
) | const |
Definition at line 165 of file Logger.cc.
References cond::LogDBEntry::destinationDB, cond::LogDBEntry::execmessage, cond::LogDBEntry::exectime, cond::LogDBEntry::iovtag, cond::LogDBEntry::iovtimetype, cond::LogDBEntry::lastSince, cond::LogDBEntry::logId, cond::LogDBNames::LogTableName(), cond::LogDBEntry::payloadClass, cond::LogDBEntry::payloadIdx, cond::LogDBEntry::payloadToken, cond::LogDBEntry::provenance, o2o::query, and cond::LogDBEntry::usertext.
void cond::Logger::LookupLastEntryByTag | ( | const std::string & | iovtag, |
LogDBEntry & | logentry, | ||
bool | filterFailedOp = true |
||
) | const |
Definition at line 289 of file Logger.cc.
Referenced by popcon::PopCon::initialize().
void cond::Logger::LookupLastEntryByTag | ( | const std::string & | iovtag, |
const std::string & | connectionStr, | ||
cond::LogDBEntry & | logentry, | ||
bool | filterFailedOp = true |
||
) | const |
Definition at line 224 of file Logger.cc.
References cond::LogDBEntry::destinationDB, cond::LogDBEntry::execmessage, cond::LogDBEntry::exectime, cond::LogDBEntry::iovtag, cond::LogDBEntry::iovtimetype, cond::LogDBEntry::lastSince, cond::LogDBEntry::logId, cond::LogDBNames::LogTableName(), cond::LogDBEntry::payloadClass, cond::LogDBEntry::payloadIdx, cond::LogDBEntry::payloadToken, cond::LogDBEntry::provenance, o2o::query, and cond::LogDBEntry::usertext.
|
private |