Namespaces | |
COND_LOG_TABLE | |
GLOBAL_TAG | |
GLOBAL_TAG_MAP | |
IOV | |
PAYLOAD | |
PAYLOAD_MIGRATION | |
TAG | |
TAG_MIGRATION | |
Enumerations | |
enum | DbAuthenticationSystem { UndefinedAuthentication =0, CondDbKey, CoralXMLFile } |
enum | UpdatePolicy { NEW =0, UPDATE, REPLACE } |
Functions | |
BackendType | checkBackendType (boost::shared_ptr< coral::ISessionProxy > &coralSession, const std::string &connectionString) |
bool | compareTags (const std::string &firstTag, Session &firstSession, const std::string &firstFileName, const std::string &secondTag, Session &secondSession, const std::string &secondFileName) |
std::string | convertoToOracleConnection (const std::string &input) |
bool | copyIov (Session &session, const std::string &sourceTag, const std::string &destTag, cond::Time_t souceSince, cond::Time_t destSince, const std::string &description, bool log) |
size_t | copyTag (const std::string &sourceTag, Session &sourceSession, const std::string &destTag, Session &destSession, UpdatePolicy policy, bool log, bool forValidation) |
unsigned int | countslash (const std::string &input) |
static const boost::regex | duplicate ("duplicateIOV[[:print:]]+?[S|s]ince[=| ]([[:alnum:]]+?);.*") |
static const boost::regex | exportIOV ("exportIOV[[:print:]]+?;since=([[:alnum:]]+?),[[:print:]]+?; *copied=([[:alnum:]]+?);.*") |
size_t | exportTagToFile (const std::string &tag, const std::string &destTag, Session &session, const std::string fileName) |
template<typename T > | |
void | f_add_column_description (coral::TableDescription &table, const std::string &columnName, size_t size=0, bool notNull=true) |
std::pair< std::string, boost::shared_ptr< void > > | fetch (const cond::Hash &payloadId, Session &session) |
std::pair< std::string, boost::shared_ptr< void > > | fetchIfExists (const cond::Hash &payloadId, Session &session, bool &exists) |
std::pair< std::string, boost::shared_ptr< void > > | fetchOne (const std::string &payloadTypeName, const cond::Binary &data, const cond::Binary &streamerInfo, boost::shared_ptr< void > payloadPtr, bool is Ora) |
std::pair< std::string, boost::shared_ptr< void > > | fetchOne (const std::string &payloadTypeName, const cond::Binary &data, const cond::Binary &streamerInfo, boost::shared_ptr< void > payloadPtr, bool isOra) |
std::pair< std::string, std::string > | getConnectionParams (const std::string &connectionString, const std::string &transactionId) |
std::string | getConnectionProtocol (const std::string &connectionString) |
bool | getInsertionLogs (const std::string &tag, cond::DbSession &logDbSession, std::vector< std::pair< cond::Time_t, boost::posix_time::ptime > > &loggedInsertions) |
cond::Hash | import (Session &source, const cond::Hash &sourcePayloadId, const std::string &inputTypeName, const void *inputPtr, Session &destination) |
size_t | importIovs (const std::string &sourceTag, Session &sourceSession, const std::string &destTag, Session &destSession, cond::Time_t begin, cond::Time_t end, const std::string &description, bool log) |
template<typename T , typename Arg1 > | |
bool | is_same_any () |
template<typename T , typename Arg1 , typename Arg2 , typename... Args> | |
bool | is_same_any () |
cond::Hash | makeHash (const std::string &objectType, const cond::Binary &data) |
size_t | migrateTag (const std::string &sourceTag, Session &sourceSession, const std::string &destTag, Session &destSession, UpdatePolicy policy, cond::DbSession &logDbSession) |
static const std::string | ORA_IOV_TABLE_1 ("ORA_C_COND_IOVSEQUENCE") |
static const std::string | ORA_IOV_TABLE_2 ("ORA_C_COND_IOVSEQU_A0") |
static const std::string | ORA_IOV_TABLE_3 ("ORA_C_COND_IOVSEQU_A1") |
std::tuple< std::string, std::string, std::string > | parseConnectionString (const std::string &connectionString) |
std::pair< std::string, std::string > | parseTag (const std::string &tag) |
static const std::string | POOL_IOV_TABLE_DATA ("IOV_DATA") |
static const boost::regex | popcon_many ("PopCon[[:print:]]+?first payload Since ([[:alnum:]]+?),.*") |
static const boost::regex | popcon_one ("PopCon[[:print:]]+?;Since ([[:alnum:]]+?);.*") |
template<typename T > | |
std::vector< T >::const_iterator | search (const cond::Time_t &val, const std::vector< T > &container) |
template<typename T , typename P > | |
void | static_assert_is_same_decayed () |
void | throwException (const std::string &message, const std::string &methodName) |
static const std::string | time_0 ("2008-01-01 00:00:42.000") |
bool | validateTag (const std::string &refTag, Session &refSession, const std::string &candTag, Session &candSession) |
Enumerator | |
---|---|
UndefinedAuthentication | |
CondDbKey | |
CoralXMLFile |
Definition at line 28 of file ConnectionPool.h.
Enumerator | |
---|---|
NEW | |
UPDATE | |
REPLACE |
Definition at line 15 of file CondDBTools.h.
BackendType cond::persistency::checkBackendType | ( | boost::shared_ptr< coral::ISessionProxy > & | coralSession, |
const std::string & | connectionString | ||
) |
Definition at line 63 of file SessionImpl.cc.
References cond::DbTransaction::commit(), cond::COND_DB, cond::DbSession::open(), cond::ORA_DB, run_regression::ret, cond::DbTransaction::start(), cond::DbSession::transaction(), and cond::UNKNOWN_DB.
Referenced by cond::persistency::ConnectionPool::createSession().
bool cond::persistency::compareTags | ( | const std::string & | firstTag, |
Session & | firstSession, | ||
const std::string & | firstFileName, | ||
const std::string & | secondTag, | ||
Session & | secondSession, | ||
const std::string & | secondFileName | ||
) |
Definition at line 385 of file CondDBTools.cc.
References cond::persistency::Session::connectionString(), gather_cfg::cout, exportTagToFile(), timingPdfMaker::file1, N, NULL, cmsHarvester::path, diffTwoXMLs::r1, diffTwoXMLs::r2, python.multivaluedict::remove(), and throwException().
Referenced by validateTag().
|
inline |
Definition at line 66 of file Utils.h.
References dbtoconf::account, match(), fff_monitoring::service, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
bool cond::persistency::copyIov | ( | Session & | session, |
const std::string & | sourceTag, | ||
const std::string & | destTag, | ||
cond::Time_t | souceSince, | ||
cond::Time_t | destSince, | ||
const std::string & | description, | ||
bool | log | ||
) |
Definition at line 333 of file CondDBTools.cc.
References gather_cfg::cout, cond::persistency::Session::createIov(), cond::persistency::Session::editIov(), idDealer::editor, cond::persistency::IOVProxy::end(), cond::persistency::Session::existsIov(), cond::persistency::IOVProxy::find(), cond::persistency::IOVEditor::flush(), cond::persistency::IOVEditor::insert(), cond::persistency::IOVProxy::loadedSize(), AlCaHLTBitMon_ParallelJobs::p, cond::persistency::IOVProxy::payloadObjectType(), cond::persistency::IOVEditor::payloadType(), cond::persistency::Session::readIov(), cond::persistency::IOVEditor::setDescription(), cond::persistency::TransactionScope::start(), cond::persistency::IOVProxy::synchronizationType(), throwException(), cond::persistency::IOVEditor::timeType(), cond::persistency::IOVProxy::timeType(), and cond::persistency::Session::transaction().
size_t cond::persistency::copyTag | ( | const std::string & | sourceTag, |
Session & | sourceSession, | ||
const std::string & | destTag, | ||
Session & | destSession, | ||
UpdatePolicy | policy, | ||
bool | log, | ||
bool | forValidation | ||
) |
Definition at line 29 of file CondDBTools.cc.
References cond::persistency::Session::clearIov(), cond::persistency::Session::connectionString(), gather_cfg::cout, cond::persistency::Session::createDatabase(), cond::persistency::Session::createIov(), cond::persistency::Session::editIov(), idDealer::editor, cond::persistency::Session::existsDatabase(), cond::persistency::Session::existsIov(), fetch(), cond::persistency::IOVEditor::flush(), cond::persistency::IOVEditor::insert(), o2o::iov, cond::persistency::IOVProxy::loadedSize(), NEW, AlCaHLTBitMon_ParallelJobs::p, cond::persistency::IOVProxy::payloadObjectType(), cond::persistency::Session::readIov(), REPLACE, cond::persistency::Transaction::rollback(), cond::persistency::IOVEditor::setDescription(), cond::persistency::IOVEditor::setValidationMode(), EcalCondDB::sinces, cond::persistency::TransactionScope::start(), cond::persistency::IOVProxy::synchronizationType(), throwException(), cond::persistency::IOVProxy::timeType(), and cond::persistency::Session::transaction().
Referenced by exportTagToFile().
unsigned int cond::persistency::countslash | ( | const std::string & | input | ) |
Definition at line 15 of file DbConnectionString.cc.
References prof2calltree::count.
Referenced by getConnectionParams().
|
static |
|
static |
Referenced by getInsertionLogs().
size_t cond::persistency::exportTagToFile | ( | const std::string & | tag, |
const std::string & | destTag, | ||
Session & | session, | ||
const std::string | fileName | ||
) |
Definition at line 378 of file CondDBTools.cc.
References copyTag(), cond::persistency::ConnectionPool::createSession(), NEW, and run_regression::ret.
Referenced by compareTags().
void cond::persistency::f_add_column_description | ( | coral::TableDescription & | table, |
const std::string & | columnName, | ||
size_t | size = 0 , |
||
bool | notNull = true |
||
) |
std::pair< std::string, boost::shared_ptr< void > > cond::persistency::fetch | ( | const cond::Hash & | payloadId, |
Session & | session | ||
) |
Definition at line 340 of file CondDBImport.cc.
References data, fetchOne(), cond::persistency::Session::fetchPayloadData(), newFWLiteAna::found, cond::persistency::Session::isOraSession(), AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
Referenced by copyTag(), LMFDat::fetch(), importIovs(), and migrateTag().
std::pair<std::string,boost::shared_ptr<void> > cond::persistency::fetchIfExists | ( | const cond::Hash & | payloadId, |
Session & | session, | ||
bool & | exists | ||
) |
Definition at line 45 of file CondDBImport.cc.
References data, fetchOne(), cond::persistency::Session::fetchPayloadData(), cond::persistency::Session::isOraSession(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by import().
std::pair<std::string, boost::shared_ptr<void> > cond::persistency::fetchOne | ( | const std::string & | payloadTypeName, |
const cond::Binary & | data, | ||
const cond::Binary & | streamerInfo, | ||
boost::shared_ptr< void > | payloadPtr, | ||
bool is | Ora | ||
) |
Referenced by fetch(), and fetchIfExists().
std::pair<std::string, boost::shared_ptr<void> > cond::persistency::fetchOne | ( | const std::string & | payloadTypeName, |
const cond::Binary & | data, | ||
const cond::Binary & | streamerInfo, | ||
boost::shared_ptr< void > | payloadPtr, | ||
bool | isOra | ||
) |
Definition at line 351 of file CondDBImport.cc.
References data, FETCH_PAYLOAD_CASE, match(), AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::pair< std::string, std::string > cond::persistency::getConnectionParams | ( | const std::string & | connectionString, |
const std::string & | transactionId | ||
) |
Definition at line 29 of file DbConnectionString.cc.
References countslash(), getConnectionProtocol(), cond::FipProtocolParser::getRealConnect(), edm::Service< T >::isAvailable(), prof2calltree::l, edm::SiteLocalConfig::lookupCalibConnect(), geometryXMLtoCSV::parser, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
Referenced by cond::persistency::ConnectionPool::createCoralSession(), and cond::persistency::ConnectionPool::createSession().
|
inline |
Definition at line 35 of file Utils.h.
References AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
Referenced by getConnectionParams(), and parseConnectionString().
bool cond::persistency::getInsertionLogs | ( | const std::string & | tag, |
cond::DbSession & | logDbSession, | ||
std::vector< std::pair< cond::Time_t, boost::posix_time::ptime > > & | loggedInsertions | ||
) |
Definition at line 99 of file CondDBTools.cc.
References cond::DbTransaction::commit(), gather_cfg::cout, duplicate(), exportIOV(), first, h, m, cond::DbSession::nominalSchema(), popcon_many(), popcon_one(), lumiQueryAPI::q, alignCSCRings::s, python.multivaluedict::sort(), cond::DbTransaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, throwException(), and cond::DbSession::transaction().
Referenced by migrateTag().
cond::Hash cond::persistency::import | ( | Session & | source, |
const cond::Hash & | sourcePayloadId, | ||
const std::string & | inputTypeName, | ||
const void * | inputPtr, | ||
Session & | destination | ||
) |
Definition at line 57 of file CondDBImport.cc.
References L1TriggerKeyList::addKey(), gather_cfg::cout, roll_playback::destination, fetchIfExists(), IMPORT_PAYLOAD_CASE, match(), getGTfromDQMFile::obj, sysUtil::pid, L1TriggerKeyList::recordTypeToKeyToTokenMap(), source, AlCaHLTBitMon_QueryRunRegistry::string, throwException(), and L1TriggerKeyList::tscKeyToTokenMap().
size_t cond::persistency::importIovs | ( | const std::string & | sourceTag, |
Session & | sourceSession, | ||
const std::string & | destTag, | ||
Session & | destSession, | ||
cond::Time_t | begin, | ||
cond::Time_t | end, | ||
const std::string & | description, | ||
bool | log | ||
) |
Definition at line 256 of file CondDBTools.cc.
References begin, cond::persistency::IOVProxy::begin(), cond::persistency::Session::connectionString(), gather_cfg::cout, cond::persistency::Session::createDatabase(), cond::persistency::Session::createIov(), cond::persistency::Session::editIov(), idDealer::editor, end, cond::persistency::IOVProxy::end(), cond::persistency::Session::existsDatabase(), cond::persistency::Session::existsIov(), fetch(), cond::persistency::IOVProxy::find(), cond::persistency::IOVEditor::flush(), cond::persistency::IOVProxy::getInterval(), cond::persistency::IOVEditor::insert(), cond::persistency::IOVProxy::loadedSize(), AlCaHLTBitMon_ParallelJobs::p, cond::persistency::IOVProxy::payloadObjectType(), cond::persistency::IOVEditor::payloadType(), cond::persistency::Session::readIov(), cond::persistency::IOVEditor::setDescription(), EcalCondDB::sinces, cond::persistency::TransactionScope::start(), cond::persistency::IOVProxy::synchronizationType(), throwException(), cond::persistency::IOVEditor::timeType(), cond::persistency::IOVProxy::timeType(), and cond::persistency::Session::transaction().
bool cond::persistency::is_same_any | ( | ) |
bool cond::persistency::is_same_any | ( | ) |
cond::Hash cond::persistency::makeHash | ( | const std::string & | objectType, |
const cond::Binary & | data | ||
) |
Definition at line 10 of file IOVSchema.cc.
References cond::Binary::data(), cond::hash, i, cond::Binary::size(), throwException(), and tmp.
Referenced by cond::persistency::PAYLOAD::Table::insertIfNew().
size_t cond::persistency::migrateTag | ( | const std::string & | sourceTag, |
Session & | sourceSession, | ||
const std::string & | destTag, | ||
Session & | destSession, | ||
UpdatePolicy | policy, | ||
cond::DbSession & | logDbSession | ||
) |
Definition at line 168 of file CondDBTools.cc.
References cond::persistency::Session::clearIov(), gather_cfg::cout, cond::persistency::Session::createDatabase(), cond::persistency::Session::createIov(), cond::persistency::Session::editIov(), idDealer::editor, cond::persistency::Session::existsDatabase(), cond::persistency::Session::existsIov(), fetch(), cond::persistency::IOVEditor::flush(), getInsertionLogs(), cond::persistency::IOVProxy::getMetadata(), cond::persistency::IOVEditor::insert(), o2o::iov, cond::persistency::IOVProxy::loadedSize(), NEW, AlCaHLTBitMon_ParallelJobs::p, cond::persistency::IOVProxy::payloadObjectType(), cond::persistency::Session::readIov(), REPLACE, cond::persistency::Transaction::rollback(), search(), edm::second(), cond::persistency::IOVEditor::setDescription(), EcalCondDB::sinces, cond::persistency::TransactionScope::start(), cond::persistency::IOVProxy::synchronizationType(), throwException(), time_0(), cond::persistency::IOVProxy::timeType(), and cond::persistency::Session::transaction().
|
static |
|
static |
|
static |
|
inline |
Definition at line 43 of file Utils.h.
References getConnectionProtocol(), serviceName, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
Referenced by validateTag().
std::pair< std::string, std::string > cond::persistency::parseTag | ( | const std::string & | tag | ) |
Definition at line 8 of file GTProxy.cc.
References dbtoconf::pfn, AlCaHLTBitMon_QueryRunRegistry::string, and edmStreamStallGrapher::t.
Referenced by CondDBESSource::CondDBESSource(), and CondDBESSource::setIntervalFor().
|
static |
|
static |
Referenced by getInsertionLogs().
|
static |
Referenced by getInsertionLogs().
std::vector< T >::const_iterator cond::persistency::search | ( | const cond::Time_t & | val, |
const std::vector< T > & | container | ||
) |
Definition at line 252 of file IOVProxy.cc.
References AlCaHLTBitMon_ParallelJobs::p.
Referenced by dqm_interfaces.DirID::__eq__(), ValidationMatrix::add_to_blacklist(), ValidationMatrix::do_comparisons_threaded(), AlignmentMonitorTemplate::event(), cond::persistency::IOVProxy::find(), FileNamesHelper::getJobID_fromFileName(), ValidationMatrix::guess_blacklists(), ValidationMatrix::guess_params(), migrateTag(), and duplicateReflexLibrarySearch::searchClassDefXml().
|
inline |
Definition at line 82 of file DbCore.h.
References relativeConstraints::value.
void cond::persistency::throwException | ( | const std::string & | message, |
const std::string & | methodName | ||
) |
Definition at line 11 of file Exception.cc.
References edm::hlt::Exception.
Referenced by L1CondDBIOVWriter::analyze(), L1CondDBPayloadWriter::analyze(), cond::persistency::GTEditor::checkTransaction(), cond::persistency::IOVEditor::checkTransaction(), cond::persistency::GTProxy::checkTransaction(), cond::persistency::IOVProxy::checkTransaction(), compareTags(), convertoToOracleConnection(), copyIov(), copyTag(), cond::persistency::Session::coralSession(), cond::persistency::TAG::Table::create(), cond::persistency::PAYLOAD::Table::create(), cond::persistency::IOV::Table::create(), cond::persistency::TAG_MIGRATION::Table::create(), cond::persistency::PAYLOAD_MIGRATION::Table::create(), cond::persistency::Session::createGlobalTag(), cond::persistency::Session::createIov(), cond::persistency::Session::createIovForPayload(), cond::persistency::Query< Types...>::currentRow(), cond::persistency::OraIOVTable::erase(), fetch(), fetchOne(), cond::persistency::Session::fetchPayload(), cond::persistency::GTEditor::flush(), cond::persistency::IOVEditor::flush(), cond::persistency::KeyList::get(), getConnectionParams(), getConnectionProtocol(), getInsertionLogs(), cond::persistency::IOVProxy::getInterval(), cond::persistency::IOVProxy::getMetadata(), import(), importIovs(), cond::persistency::OraIOVTable::insertMany(), cond::persistency::OraIOVTable::insertOne(), cond::persistency::SessionImpl::isOra(), cond::persistency::GTEditor::load(), cond::persistency::IOVProxy::load(), cond::persistency::GTProxy::load(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::loadPayload(), makeHash(), migrateTag(), cond::persistency::Query< Types...>::next(), cond::persistency::SessionImpl::openGTDb(), cond::persistency::SessionImpl::openIovDb(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::operator()(), cond::persistency::GetFromRow< std::array< char, n > >::operator()(), parseConnectionString(), cond::persistency::IOVSchema::parsePoolToken(), cond::persistency::OraIOVSchema::payloadMigrationTable(), cond::CredentialStore::startSession(), cond::persistency::SessionImpl::startTransaction(), cond::persistency::OraIOVSchema::tagMigrationTable(), cond::persistency::OraTagTable::update(), cond::CredentialStore::updateConnection(), cond::persistency::Session::updateMigratedPayload(), and cond::persistency::Session::updateMigrationLog().
|
static |
Referenced by migrateTag().
bool cond::persistency::validateTag | ( | const std::string & | refTag, |
Session & | refSession, | ||
const std::string & | candTag, | ||
Session & | candSession | ||
) |
Definition at line 445 of file CondDBTools.cc.
References compareTags(), cond::persistency::Session::connectionString(), gather_cfg::cout, dtTTrigAnalyzer_cfg::dbLabel, parseConnectionString(), cmsHarvester::path, python.multivaluedict::remove(), run_regression::ret, and AlCaHLTBitMon_QueryRunRegistry::string.