Namespaces | |
auth | |
payloadInspector | |
persistency | |
RelationalAuthenticationService | |
serialization | |
service | |
time | |
XMLAuthenticationService | |
Typedefs | |
typedef cond::serialization::InputArchive | CondInputArchive |
typedef cond::serialization::OutputArchive | CondOutputArchive |
typedef edmplugin::PluginFactory< cond::CoralServiceWrapperBase *() > | CoralServicePluginFactory |
typedef persistency::Exception | Exception |
typedef std::string | Hash |
typedef edmplugin::PluginFactory< cond::DataProxyWrapperBase *() > | ProxyFactory |
typedef TagInfo_t | TagInfo |
typedef unsigned long long | Time_t |
typedef unsigned long long | uint64_t |
typedef std::pair< unsigned int, unsigned int > | UnpackedTime |
typedef std::pair< Time_t, Time_t > | ValidityInterval |
Enumerations | |
enum | SynchronizationType { SYNCH_ANY = 0, SYNCH_VALIDATION, SYNCH_OFFLINE, SYNCH_MC, SYNCH_RUNMC, SYNCH_HLT, SYNCH_EXPRESS, SYNCH_PROMPT, SYNCH_PCL } |
enum | TimeType { invalid =-1, runnumber =0, timestamp, lumiid, hash, userid } |
Functions | |
std::string | classNameForTypeId (const std::type_info &typeInfo) |
template<typename T > | |
T * | createPayload (const std::string &payloadTypeName) |
template<> | |
HcalCalibrationQIEData * | createPayload< HcalCalibrationQIEData > (const std::string &payloadTypeName) |
template<> | |
std::string * | createPayload< std::string > (const std::string &payloadTypeName) |
template<typename T > | |
std::unique_ptr< T > | default_deserialize (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<typename T > | |
std::unique_ptr< T > | deserialize (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
std::unique_ptr< BaseKeyed > | deserialize< BaseKeyed > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
std::unique_ptr< condex::Efficiency > | deserialize< condex::Efficiency > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
std::unique_ptr< CSCReadoutMapping > | deserialize< CSCReadoutMapping > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
std::unique_ptr< CSCReadoutMappingForSliceTest > | deserialize< CSCReadoutMappingForSliceTest > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
std::unique_ptr< PerformancePayload > | deserialize< PerformancePayload > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
const TimeTypeSpecs & | findSpecs (std::string const &name) |
int | getch () |
std::string | getLoginName () |
bool | getNextSequenceValue (coral::ISchema &schema, const std::string &sequenceName, int &value) |
std::string | getpass (const std::string &prompt, bool show_asterisk=true) |
std::string | getpassForUser (const std::string &userName) |
unsigned long long | hash64 (unsigned char *k, unsigned long long length, unsigned long long level) |
const Time_t | invalidTime (0) |
const std::string | invalidToken (" ") |
Iov_t | makeIov (cond::Time_t since, const Hash &payloadId) |
void | parseLineForNamedParams (const std::string &line, std::map< std::string, std::string > ¶ms) |
const char * | pluginCategory () |
char | randomChar () |
std::string | schemaLabel (const std::string &serviceName, const std::string &userName) |
std::string | schemaLabelForCredentialStore (const std::string &connectionString) |
bool | selectAuthorization (coral::ISchema &schema, int principalId, const std::string &role, const std::string &connectionString, AuthorizationData &destination) |
bool | selectConnection (coral::ISchema &schema, const std::string &connectionLabel, CredentialData &destination) |
bool | selectPrincipal (coral::ISchema &schema, const std::string &principal, PrincipalData &destination) |
template<typename T > | |
std::pair< Binary, Binary > | serialize (const T &payload) |
bool | setPermissionData (coral::ISchema &schema, int principalId, const std::string &principalKey, const std::string &role, const std::string &connectionString, int connectionId, const std::string &connectionKey) |
SynchronizationType | synchronizationTypeFromName (const std::string &name) |
std::string | synchronizationTypeNames (SynchronizationType type) |
void | throwException (const std::string &message, const std::string &methodName) |
const Time_t | TIMELIMIT (std::numeric_limits< Time_t >::max()) |
std::string const & | timeTypeNames (int) |
std::pair< int, std::string > | updateConnectionData (coral::ISchema &schema, const std::string &adminKey, const std::string &connectionLabel, const std::string &userName, const std::string &password, bool forceUpdate) |
std::pair< int, std::string > | updatePrincipalData (coral::ISchema &schema, const std::string &authenticationKey, const std::string &principalName, const std::string &adminKey, bool init=false) |
Variables | |
static constexpr unsigned int | HASH_SIZE = 40 |
static std::pair< const char *, SynchronizationType > | s_obsoleteSynchronizationTypeArray [] |
static std::pair< const char *, SynchronizationType > | s_synchronizationTypeArray [] |
const unsigned int | TIMETYPE_LIST_MAX =5 |
const cond::TimeType | timeTypeList [TIMETYPE_LIST_MAX] |
const TimeTypeSpecs | timeTypeSpecs [] |
const cond::TimeType | timeTypeValues [] |
The wrapper is used to allow edm::PluginFactory to change its return type to unique_ptr from a raw pointer. The unique_ptr does not work for coral::Service, because its destructor is protected and ownership is managed by intrusive reference counting.
Serialization.h CondCore/CondDB/interface/Serialization.h Description: functions for serializing the payload objects.
Definition at line 58 of file Serialization.h.
Definition at line 59 of file Serialization.h.
typedef edmplugin::PluginFactory< cond::CoralServiceWrapperBase*() > cond::CoralServicePluginFactory |
Definition at line 25 of file CoralServiceFactory.h.
Definition at line 25 of file Exception.h.
typedef std::string cond::Hash |
typedef edmplugin::PluginFactory< cond::DataProxyWrapperBase* () > cond::ProxyFactory |
Definition at line 29 of file ProxyFactory.h.
typedef TagInfo_t cond::TagInfo |
typedef unsigned long long cond::Time_t |
typedef unsigned long long cond::uint64_t |
typedef std::pair<unsigned int, unsigned int> cond::UnpackedTime |
typedef std::pair<Time_t, Time_t> cond::ValidityInterval |
Enumerator | |
---|---|
SYNCH_ANY | |
SYNCH_VALIDATION | |
SYNCH_OFFLINE | |
SYNCH_MC | |
SYNCH_RUNMC | |
SYNCH_HLT | |
SYNCH_EXPRESS | |
SYNCH_PROMPT | |
SYNCH_PCL |
Definition at line 29 of file Types.h.
enum cond::TimeType |
|
inline |
Definition at line 29 of file PoolDBOutputService.h.
References edm::TypeID::className().
T* cond::createPayload | ( | const std::string & | payloadTypeName | ) |
Definition at line 30 of file Serialization.h.
References AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
HcalCalibrationQIEData* cond::createPayload< HcalCalibrationQIEData > | ( | const std::string & | payloadTypeName | ) |
Definition at line 37 of file plugin.cc.
References MillePedeFileConverter_cfg::e, HcalFrontEndMap::initialize(), HcalSiPMCharacteristics::initialize(), HcalElectronicsMap::initialize(), HcalDcsMap::initialize(), AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
|
inline |
Definition at line 38 of file Serialization.h.
References AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::unique_ptr<T> cond::default_deserialize | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 81 of file Serialization.h.
References cond::Binary::data(), MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, jets_cff::payload, cond::Binary::size(), AlCaHLTBitMon_QueryRunRegistry::string, cond::StreamerInfo::techVersion(), and throwException().
std::unique_ptr<T> cond::deserialize | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 113 of file Serialization.h.
std::unique_ptr< BaseKeyed > cond::deserialize< BaseKeyed > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 39 of file plugin.cc.
References DESERIALIZE_BASE_CASE, DESERIALIZE_POLIMORPHIC_CASE, MillePedeFileConverter_cfg::e, condex::Efficiency::initialize(), AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::unique_ptr<condex::Efficiency> cond::deserialize< condex::Efficiency > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 25 of file plugin.cc.
References DESERIALIZE_POLIMORPHIC_CASE, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::unique_ptr<CSCReadoutMapping> cond::deserialize< CSCReadoutMapping > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 65 of file plugin.cc.
References DESERIALIZE_POLIMORPHIC_CASE, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::unique_ptr<CSCReadoutMappingForSliceTest> cond::deserialize< CSCReadoutMappingForSliceTest > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 73 of file plugin.cc.
References DESERIALIZE_POLIMORPHIC_CASE, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
std::unique_ptr<PerformancePayload> cond::deserialize< PerformancePayload > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 17 of file PerformanceRecordPlugin.cc.
References DESERIALIZE_POLIMORPHIC_CASE, MillePedeFileConverter_cfg::e, PerformancePayload::initialize(), AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
const TimeTypeSpecs & cond::findSpecs | ( | std::string const & | name | ) |
Definition at line 33 of file Time.cc.
References Exception, mps_fire::i, and TIMETYPE_LIST_MAX.
Referenced by cond::TimeTypeTraits< type >::specs(), and cond::time::timeTypeFromName().
int cond::getch | ( | ) |
Definition at line 23 of file Utilities.cc.
Referenced by getpass().
std::string cond::getLoginName | ( | ) |
Definition at line 42 of file DecodingKey.cc.
References mps_check::msg, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
Referenced by cond::auth::DecodingKey::init().
bool cond::getNextSequenceValue | ( | coral::ISchema & | schema, |
const std::string & | sequenceName, | ||
int & | value | ||
) |
Definition at line 335 of file CredentialStore.cc.
References das::query(), SEQUENCE_NAME_COL(), SEQUENCE_TABLE_NAME(), SEQUENCE_VALUE_COL(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setPermissionData(), updateConnectionData(), and updatePrincipalData().
std::string cond::getpass | ( | const std::string & | prompt, |
bool | show_asterisk = true |
||
) |
Definition at line 38 of file Utilities.cc.
References gather_cfg::cout, getch(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getpassForUser().
std::string cond::getpassForUser | ( | const std::string & | userName | ) |
Definition at line 62 of file Utilities.cc.
References getpass(), and AlCaHLTBitMon_QueryRunRegistry::string.
ub8 cond::hash64 | ( | unsigned char * | k, |
unsigned long long | length, | ||
unsigned long long | level | ||
) |
Definition at line 45 of file hash64.cc.
References a, b, EnergyCorrector::c, hcalDigis_cfi::level, and mix64.
Referenced by cond::KeyedElement::convert().
const Time_t cond::invalidTime | ( | 0 | ) |
Referenced by cond::TimeTypeTraits< type >::specs().
const std::string cond::invalidToken | ( | " " | ) |
Iov_t cond::makeIov | ( | cond::Time_t | since, |
const Hash & | payloadId | ||
) |
Definition at line 20 of file CondDBPyWrappers.cc.
References cond::Iov_t::payloadId, cond::Iov_t::since, and ntuplemaker::since.
Referenced by BOOST_PYTHON_MODULE().
void cond::parseLineForNamedParams | ( | const std::string & | line, |
std::map< std::string, std::string > & | params | ||
) |
Definition at line 58 of file DecodingKey.cc.
References ItemSeparator, str, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::auth::DecodingKey::createFromInputFile().
const char * cond::pluginCategory | ( | ) |
Definition at line 33 of file ProxyFactory.cc.
char cond::randomChar | ( | ) |
Definition at line 37 of file DecodingKey.cc.
References b64str, and rand().
Referenced by cond::auth::KeyGenerator::make().
std::string cond::schemaLabel | ( | const std::string & | serviceName, |
const std::string & | userName | ||
) |
Definition at line 153 of file CredentialStore.cc.
References serviceName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::CredentialStore::createSchema(), cond::CredentialStore::importForPrincipal(), cond::CredentialStore::resetAdmin(), and schemaLabelForCredentialStore().
std::string cond::schemaLabelForCredentialStore | ( | const std::string & | connectionString | ) |
Definition at line 162 of file CredentialStore.cc.
References writedatasetfile::parser, schemaLabel(), serviceName, and AlCaHLTBitMon_QueryRunRegistry::string.
bool cond::selectAuthorization | ( | coral::ISchema & | schema, |
int | principalId, | ||
const std::string & | role, | ||
const std::string & | connectionString, | ||
AuthorizationData & | destination | ||
) |
Definition at line 297 of file CredentialStore.cc.
References AUTH_ID_COL(), AUTH_KEY_COL(), C_ID_COL(), COND_AUTHORIZATION_TABLE(), cond::AuthorizationData::connectionId, runEdmFileComparison::found, cond::AuthorizationData::id, cond::AuthorizationData::key, P_ID_COL(), das::query(), ROLE_COL(), SCHEMA_COL(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setPermissionData().
bool cond::selectConnection | ( | coral::ISchema & | schema, |
const std::string & | connectionLabel, | ||
CredentialData & | destination | ||
) |
Definition at line 251 of file CredentialStore.cc.
References COND_CREDENTIAL_TABLE(), CONNECTION_ID_COL(), CONNECTION_KEY_COL(), CONNECTION_LABEL_COL(), cond::CredentialData::connectionKey, runEdmFileComparison::found, cond::CredentialData::id, cond::CredentialData::password, PASSWORD_COL(), das::query(), AlCaHLTBitMon_QueryRunRegistry::string, cond::CredentialData::userName, USERNAME_COL(), VERIFICATION_KEY_COL(), and cond::CredentialData::verificationKey.
Referenced by cond::CredentialStore::removeConnection(), cond::CredentialStore::setPermission(), updateConnectionData(), and cond::CredentialStore::updatePrincipal().
bool cond::selectPrincipal | ( | coral::ISchema & | schema, |
const std::string & | principal, | ||
PrincipalData & | destination | ||
) |
Definition at line 204 of file CredentialStore.cc.
References ADMIN_KEY_COL(), cond::PrincipalData::adminKey, COND_AUTHENTICATION_TABLE(), runEdmFileComparison::found, cond::PrincipalData::id, PRINCIPAL_ID_COL(), PRINCIPAL_KEY_COL(), PRINCIPAL_NAME_COL(), cond::PrincipalData::principalKey, das::query(), AlCaHLTBitMon_QueryRunRegistry::string, VERIFICATION_COL(), and cond::PrincipalData::verifKey.
Referenced by cond::CredentialStore::importForPrincipal(), cond::CredentialStore::removePrincipal(), cond::CredentialStore::resetAdmin(), cond::CredentialStore::setPermission(), cond::CredentialStore::startSession(), cond::CredentialStore::unsetPermission(), and updatePrincipalData().
Definition at line 62 of file Serialization.h.
References MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, cond::StreamerInfo::jsonString(), jets_cff::payload, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
Referenced by cond::persistency::Session::storePayload< std::string >(), cond::persistency::Session::storePayload(), and RawEventFileWriterForBU::writeJsds().
bool cond::setPermissionData | ( | coral::ISchema & | schema, |
int | principalId, | ||
const std::string & | principalKey, | ||
const std::string & | role, | ||
const std::string & | connectionString, | ||
int | connectionId, | ||
const std::string & | connectionKey | ||
) |
Definition at line 427 of file CredentialStore.cc.
References AUTH_ID_COL(), AUTH_KEY_COL(), cond::auth::Cipher::b64encrypt(), C_ID_COL(), COND_AUTHORIZATION_TABLE(), idDealer::editor, runEdmFileComparison::found, getNextSequenceValue(), cond::AuthorizationData::id, GetRecoTauVFromDQM_MC_cff::next, P_ID_COL(), ROLE_COL(), SCHEMA_COL(), selectAuthorization(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::throwException().
Referenced by cond::CredentialStore::createSchema(), cond::CredentialStore::importForPrincipal(), cond::CredentialStore::resetAdmin(), cond::CredentialStore::setPermission(), and cond::CredentialStore::updatePrincipal().
SynchronizationType cond::synchronizationTypeFromName | ( | const std::string & | name | ) |
Definition at line 50 of file Types.cc.
References mps_fire::i, and throwException().
Referenced by cond::persistency::GetFromRow< cond::SynchronizationType >::operator()().
std::string cond::synchronizationTypeNames | ( | SynchronizationType | type | ) |
Definition at line 46 of file Types.cc.
Referenced by cond::persistency::f_add_attribute(), and cond::persistency::IOVEditor::flush().
void cond::throwException | ( | const std::string & | message, |
const std::string & | methodName | ||
) |
Definition at line 21 of file Exception.cc.
References cond::persistency::Exception::Exception().
Referenced by cond::service::PoolDBOutputService::appendSinceTime(), cond::auth::Cipher::b64decrypt(), cond::service::PoolDBOutputService::closeIOV(), cond::auth::DecodingKey::createFromInputFile(), cond::service::PoolDBOutputService::createNewIOV(), createPayload(), createPayload< HcalCalibrationQIEData >(), createPayload< std::string >(), cond::CredentialStore::createSchema(), cond::RelationalAuthenticationService::RelationalAuthenticationService::credentials(), cond::Binary::data(), default_deserialize(), deserialize< BaseKeyed >(), deserialize< condex::Efficiency >(), deserialize< CSCReadoutMapping >(), deserialize< CSCReadoutMappingForSliceTest >(), deserialize< PerformancePayload >(), cond::auth::DecodingKey::flush(), cond::persistency::getConnectionParams(), getLoginName(), cond::CredentialStore::importForPrincipal(), cond::persistency::importPayload(), cond::auth::DecodingKey::init(), cond::service::PoolDBOutputService::initDB(), cond::persistency::KeyList::load(), cond::persistency::IOVEditor::load(), cond::service::PoolDBOutputService::lookUpRecord(), cond::CredentialStore::removeConnection(), cond::CredentialStore::removePrincipal(), cond::CredentialStore::resetAdmin(), serialize(), cond::CredentialStore::setPermission(), cond::CredentialStore::setUpForService(), cond::Binary::size(), synchronizationTypeFromName(), cond::CredentialStore::unsetPermission(), and cond::CredentialStore::updatePrincipal().
Referenced by CondDBESSource::setIntervalFor().
std::string const & cond::timeTypeNames | ( | int | i | ) |
Definition at line 15 of file Time.cc.
References mps_fire::i, DTRecHitClients_cfi::local, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CondDBESSource::setIntervalFor(), and cond::TimeTypeTraits< type >::specs().
std::pair<int,std::string> cond::updateConnectionData | ( | coral::ISchema & | schema, |
const std::string & | adminKey, | ||
const std::string & | connectionLabel, | ||
const std::string & | userName, | ||
const std::string & | password, | ||
bool | forceUpdate | ||
) |
Definition at line 474 of file CredentialStore.cc.
References cond::auth::Cipher::b64decrypt(), cond::auth::Cipher::b64encrypt(), COND_CREDENTIAL_TABLE(), cond::auth::COND_DB_KEY_SIZE, CONNECTION_ID_COL(), CONNECTION_KEY_COL(), CONNECTION_LABEL_COL(), cond::CredentialData::connectionKey, idDealer::editor, runEdmFileComparison::found, relval_steps::gen(), getNextSequenceValue(), cond::CredentialData::id, cond::auth::KeyGenerator::make(), PASSWORD_COL(), selectConnection(), AlCaHLTBitMon_QueryRunRegistry::string, cond::persistency::throwException(), USERNAME_COL(), VERIFICATION_KEY_COL(), and cond::CredentialData::verificationKey.
Referenced by cond::CredentialStore::createSchema(), cond::CredentialStore::importForPrincipal(), cond::CredentialStore::resetAdmin(), and cond::CredentialStore::updateConnection().
std::pair<int,std::string> cond::updatePrincipalData | ( | coral::ISchema & | schema, |
const std::string & | authenticationKey, | ||
const std::string & | principalName, | ||
const std::string & | adminKey, | ||
bool | init = false |
||
) |
Definition at line 370 of file CredentialStore.cc.
References ADMIN_KEY_COL(), cond::PrincipalData::adminKey, cond::auth::Cipher::b64decrypt(), cond::auth::Cipher::b64encrypt(), COND_AUTHENTICATION_TABLE(), cond::auth::COND_DB_KEY_SIZE, idDealer::editor, runEdmFileComparison::found, relval_steps::gen(), getNextSequenceValue(), cond::PrincipalData::id, cond::auth::KeyGenerator::make(), PRINCIPAL_ID_COL(), PRINCIPAL_KEY_COL(), PRINCIPAL_NAME_COL(), selectPrincipal(), AlCaHLTBitMon_QueryRunRegistry::string, cond::persistency::throwException(), and VERIFICATION_COL().
Referenced by cond::CredentialStore::createSchema(), cond::CredentialStore::resetAdmin(), and cond::CredentialStore::updatePrincipal().
|
static |
|
static |
const unsigned int cond::TIMETYPE_LIST_MAX =5 |
Definition at line 22 of file Time.h.
Referenced by findSpecs().
const cond::TimeType cond::timeTypeList |
const TimeTypeSpecs cond::timeTypeSpecs |
Definition at line 22 of file Time.cc.
Referenced by AlignmentProducerBase::AlignmentProducerBase(), MCMisalignmentScaler::analyze(), MillePedeAlignmentAlgorithm::areIOVsSpecified(), cond::service::PoolDBOutputService::beginOfTime(), MillePedeAlignmentAlgorithm::beginRun(), SiStripLorentzAngleCalibration::beginRun(), SiPixelLorentzAngleCalibration::beginRun(), RunRangeDependentPedeLabeler::buildRunRangeDependencyMap(), cond::service::PoolDBOutputService::endOfTime(), MillePedeAlignmentAlgorithm::initialize(), align::makeNonOverlappingRunRanges(), align::makeUniqueRunRanges(), CondDBESSource::setIntervalFor(), cond::TimeTypeTraits< type >::specs(), cond::service::PoolDBOutputService::Record::timetypestr(), and CreateIdealTkAlRecords::writeToDB().