Namespaces | |
auth | |
persistency | |
RelationalAuthenticationService | |
serialization | |
service | |
time | |
utilities | |
XMLAuthenticationService | |
Classes | |
struct | AuthorizationData |
class | BaseKeyed |
class | BasicPayload |
class | Binary |
class | CoralServiceFactory |
class | CoralServiceManager |
struct | CredentialData |
class | CredentialStore |
class | CSScopedSession |
class | DataProxyWrapperBase |
struct | DefaultInitializer |
class | EmptyIOVSource |
class | FileReader |
class | GenericSummary |
class | GTEntry_t |
struct | GTMetadata_t |
struct | Iov_t |
class | IOVDescription |
class | IOVKeysDescription |
class | IOVProvenance |
class | IOVUserMetaData |
class | KeyedElement |
struct | LessFrame |
struct | LogDBEntry_t |
struct | PrincipalData |
struct | RealTimeType |
struct | RealTimeType< hash > |
struct | RealTimeType< lumiid > |
struct | RealTimeType< runnumber > |
struct | RealTimeType< timestamp > |
struct | RealTimeType< userid > |
class | SmallWORMDict |
class | StreamerInfo |
class | Summary |
struct | Tag_t |
struct | TagInfo_t |
struct | TagMetadata_t |
struct | TimeTypeSpecs |
struct | TimeTypeTraits |
class | UnregisteredRecordException |
struct | UserLogInfo |
class | Utilities |
class | UtilitiesError |
Typedefs | |
typedef cond::serialization::InputArchive | CondInputArchive |
typedef cond::serialization::OutputArchive | CondOutputArchive |
typedef edmplugin::PluginFactory < coral::Service *(const std::string &) > | CoralServicePluginFactory |
typedef persistency::Exception | Exception |
typedef ora::Guid | Guid |
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 > | |
std::string | convertToXML (const std::string &payloadData, const std::string &payloadType) |
template<typename T > | |
T * | createPayload (const std::string &payloadTypeName) |
template<> | |
HcalCalibrationQIEData * | createPayload< HcalCalibrationQIEData > (const std::string &payloadTypeName) |
template<typename T > | |
boost::shared_ptr< T > | default_deserialize (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<typename T > | |
boost::shared_ptr< T > | deserialize (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
boost::shared_ptr< BaseKeyed > | deserialize< BaseKeyed > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
boost::shared_ptr < condex::Efficiency > | deserialize< condex::Efficiency > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
boost::shared_ptr < CSCReadoutMapping > | deserialize< CSCReadoutMapping > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
boost::shared_ptr < CSCReadoutMappingForSliceTest > | deserialize< CSCReadoutMappingForSliceTest > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
template<> | |
boost::shared_ptr < PerformancePayload > | deserialize< PerformancePayload > (const std::string &payloadType, const Binary &payloadData, const Binary &streamerInfoData) |
const TimeTypeSpecs & | findSpecs (std::string const &name) |
void * | genMD5 (void *buffer, unsigned long len, void *code) |
void | genMD5 (const std::string &s, void *code) |
void | genMD5 (const string &s, void *code) |
std::string | getLoginName () |
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) |
std::pair< std::string, int > | parseToken (const std::string &objectId) |
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) |
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::string | writeToken (const std::string &containerName, int oid0, int oid1, const std::string &className) |
std::string | writeTokenContainerFragment (const std::string &containerName, const std::string &className) |
Variables | |
static const char * | fmt_oid = "[OID=%08X-%08X]" |
static const char * | fmt_tech = "[TECH=%08X]" |
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 [] |
Serialization.h CondCore/CondDB/interface/Serialization.h Description: functions for serializing the payload objects.
Definition at line 50 of file Serialization.h.
Definition at line 51 of file Serialization.h.
typedef edmplugin::PluginFactory< coral::Service*(const std::string&) > cond::CoralServicePluginFactory |
Definition at line 24 of file CoralServiceFactory.h.
Definition at line 25 of file Exception.h.
typedef ora::Guid cond::Guid |
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().
std::string cond::convertToXML | ( | const std::string & | payloadData, |
const std::string & | payloadType | ||
) |
Definition at line 21 of file PayloadToXML.h.
T* cond::createPayload | ( | const std::string & | payloadTypeName | ) |
Definition at line 30 of file Serialization.h.
References ora::ClassUtils::demangledName(), AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
HcalCalibrationQIEData* cond::createPayload< HcalCalibrationQIEData > | ( | const std::string & | payloadTypeName | ) |
Definition at line 34 of file plugin.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
boost::shared_ptr<T> cond::default_deserialize | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 73 of file Serialization.h.
References cond::Binary::data(), alignCSCRings::e, cppFunctionSkipper::exception, cond::Binary::size(), AlCaHLTBitMon_QueryRunRegistry::string, cond::StreamerInfo::techVersion(), and throwException().
boost::shared_ptr<T> cond::deserialize | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
boost::shared_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, HLT_25ns10e33_v2_cff::payloadType, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
boost::shared_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, HLT_25ns10e33_v2_cff::payloadType, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
boost::shared_ptr<CSCReadoutMapping> cond::deserialize< CSCReadoutMapping > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 64 of file plugin.cc.
References DESERIALIZE_POLIMORPHIC_CASE, HLT_25ns10e33_v2_cff::payloadType, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
boost::shared_ptr<CSCReadoutMappingForSliceTest> cond::deserialize< CSCReadoutMappingForSliceTest > | ( | const std::string & | payloadType, |
const Binary & | payloadData, | ||
const Binary & | streamerInfoData | ||
) |
Definition at line 72 of file plugin.cc.
References DESERIALIZE_POLIMORPHIC_CASE, HLT_25ns10e33_v2_cff::payloadType, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
boost::shared_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, HLT_25ns10e33_v2_cff::payloadType, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
const TimeTypeSpecs & cond::findSpecs | ( | std::string const & | name | ) |
Definition at line 33 of file Time.cc.
References Exception, i, TIMETYPE_LIST_MAX, and timeTypeSpecs.
Referenced by cond::time::timeTypeFromName().
void * cond::genMD5 | ( | void * | buffer, |
unsigned long | len, | ||
void * | code | ||
) |
Definition at line 358 of file GenMD5.cc.
Referenced by writeTokenContainerFragment().
void cond::genMD5 | ( | const std::string & | s, |
void * | code | ||
) |
std::string cond::getLoginName | ( | ) |
Definition at line 41 of file DecodingKey.cc.
References visualization-live-secondInstance_cfg::msg, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
Referenced by cond::auth::DecodingKey::init().
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, testEve_cfg::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, runTheMatrix::ret, and cond::Iov_t::since.
Referenced by BOOST_PYTHON_MODULE().
void cond::parseLineForNamedParams | ( | const std::string & | line, |
std::map< std::string, std::string > & | params | ||
) |
Definition at line 57 of file DecodingKey.cc.
References ItemSeparator, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::auth::DecodingKey::createFromInputFile().
std::pair< std::string, int > cond::parseToken | ( | const std::string & | objectId | ) |
Definition at line 16 of file PoolToken.cc.
References fmt_oid, p1, p2, p3, source, AlCaHLTBitMon_QueryRunRegistry::string, ora::throwException(), and tmp.
Referenced by ora::CondMetadataTable::getObjectByName().
const char * cond::pluginCategory | ( | ) |
Definition at line 33 of file ProxyFactory.cc.
char cond::randomChar | ( | ) |
Definition at line 36 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 | ||
) |
std::string defaultConnectionString( const std::string& serviceConnectionString, const std::string& serviceName, const std::string& userName ){ size_t pos = serviceConnectionString.find( serviceName ); std::string technologyPrefix = serviceConnectionString.substr(0,pos); std::stringstream connStr; connStr << technologyPrefix; if( !userName.empty() ) connStr <<"/"<< userName; return connStr.str(); }
Definition at line 164 of file CredentialStore.cc.
References runTheMatrix::ret, serviceName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::CredentialStore::importForPrincipal(), and schemaLabelForCredentialStore().
std::string cond::schemaLabelForCredentialStore | ( | const std::string & | connectionString | ) |
Definition at line 172 of file CredentialStore.cc.
References mps_alisetup::parser, schemaLabel(), serviceName, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::CredentialStore::installAdmin(), and cond::CredentialStore::updatePrincipal().
bool cond::selectAuthorization | ( | coral::ISchema & | schema, |
int | principalId, | ||
const std::string & | role, | ||
const std::string & | connectionString, | ||
AuthorizationData & | destination | ||
) |
Definition at line 301 of file CredentialStore.cc.
References AUTH_ID_COL(), AUTH_KEY_COL(), C_ID_COL(), COND_AUTHORIZATION_TABLE(), cond::AuthorizationData::connectionId, newFWLiteAna::found, cond::AuthorizationData::id, cond::AuthorizationData::key, P_ID_COL(), o2o::query, ROLE_COL(), SCHEMA_COL(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::CredentialStore::setPermission().
bool cond::selectConnection | ( | coral::ISchema & | schema, |
const std::string & | connectionLabel, | ||
CredentialData & | destination | ||
) |
Definition at line 257 of file CredentialStore.cc.
References COND_CREDENTIAL_TABLE(), CONNECTION_ID_COL(), CONNECTION_KEY_COL(), CONNECTION_LABEL_COL(), cond::CredentialData::connectionKey, newFWLiteAna::found, cond::CredentialData::id, cond::CredentialData::password, PASSWORD_COL(), o2o::query, AlCaHLTBitMon_QueryRunRegistry::string, cond::CredentialData::userName, USERNAME_COL(), VERIFICATION_KEY_COL(), and cond::CredentialData::verificationKey.
Referenced by cond::CredentialStore::removeConnection(), cond::CredentialStore::setPermission(), cond::CredentialStore::updateConnection(), and cond::CredentialStore::updatePrincipal().
bool cond::selectPrincipal | ( | coral::ISchema & | schema, |
const std::string & | principal, | ||
PrincipalData & | destination | ||
) |
Definition at line 213 of file CredentialStore.cc.
References ADMIN_KEY_COL(), cond::PrincipalData::adminKey, COND_AUTHENTICATION_TABLE(), newFWLiteAna::found, cond::PrincipalData::id, PRINCIPAL_ID_COL(), PRINCIPAL_KEY_COL(), PRINCIPAL_NAME_COL(), cond::PrincipalData::principalKey, o2o::query, AlCaHLTBitMon_QueryRunRegistry::string, VERIFICATION_COL(), and cond::PrincipalData::verifKey.
Referenced by cond::CredentialStore::importForPrincipal(), cond::CredentialStore::installAdmin(), cond::CredentialStore::removePrincipal(), cond::CredentialStore::setPermission(), cond::CredentialStore::startSession(), cond::CredentialStore::unsetPermission(), and cond::CredentialStore::updatePrincipal().
Definition at line 54 of file Serialization.h.
References alignCSCRings::e, cppFunctionSkipper::exception, cond::StreamerInfo::jsonString(), runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and throwException().
Referenced by cond::persistency::Session::storePayload(), and RawEventFileWriterForBU::writeJsds().
SynchronizationType cond::synchronizationTypeFromName | ( | const std::string & | name | ) |
Definition at line 50 of file Types.cc.
References citk::for(), i, s_obsoleteSynchronizationTypeArray, s_synchronizationTypeArray, and throwException().
Referenced by cond::persistency::GetFromRow< cond::SynchronizationType >::operator()().
std::string cond::synchronizationTypeNames | ( | SynchronizationType | type | ) |
Definition at line 46 of file Types.cc.
References s_synchronizationTypeArray.
Referenced by cond::persistency::IOVEditor::flush().
void cond::throwException | ( | const std::string & | message, |
const std::string & | methodName | ||
) |
Definition at line 21 of file Exception.cc.
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 >(), 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::auth::DecodingKey::init(), cond::service::PoolDBOutputService::initDB(), cond::CredentialStore::installAdmin(), cond::persistency::KeyList::load(), cond::persistency::IOVEditor::load(), cond::service::PoolDBOutputService::lookUpRecord(), cond::CredentialStore::removeConnection(), cond::CredentialStore::removePrincipal(), serialize(), cond::CredentialStore::setPermission(), cond::CredentialStore::setUpForService(), cond::Binary::size(), synchronizationTypeFromName(), cond::CredentialStore::unsetPermission(), cond::CredentialStore::updatePrincipal(), and cond::service::PoolDBOutputService::writeOne().
const Time_t cond::TIMELIMIT | ( | std::numeric_limits< Time_t >:: | max() | ) |
Referenced by CondDBESSource::setIntervalFor().
std::string const & cond::timeTypeNames | ( | int | i | ) |
Definition at line 15 of file Time.cc.
References i, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CondDBESSource::setIntervalFor(), and cond::TimeTypeTraits< type >::specs().
std::string cond::writeToken | ( | const std::string & | containerName, |
int | oid0, | ||
int | oid1, | ||
const std::string & | className | ||
) |
Definition at line 45 of file PoolToken.cc.
References fmt_oid, AlCaHLTBitMon_QueryRunRegistry::string, runonSM::text, and writeTokenContainerFragment().
Referenced by ora::CondMetadataTable::getNamesForObject(), and ora::CondMetadataTable::setObjectName().
std::string cond::writeTokenContainerFragment | ( | const std::string & | containerName, |
const std::string & | className | ||
) |
Definition at line 56 of file PoolToken.cc.
References edm::TypeWithDict::byName(), fmt_tech, genMD5(), ora::ClassUtils::getClassProperty(), ora::Guid::null(), AlCaHLTBitMon_QueryRunRegistry::string, runonSM::text, and ora::Guid::toString().
Referenced by ora::CondMetadataTable::getNamesForContainer(), and writeToken().
|
static |
Definition at line 14 of file PoolToken.cc.
Referenced by parseToken(), and writeToken().
|
static |
Definition at line 13 of file PoolToken.cc.
Referenced by writeTokenContainerFragment().
|
static |
Definition at line 42 of file Types.cc.
Referenced by synchronizationTypeFromName().
|
static |
Definition at line 32 of file Types.cc.
Referenced by synchronizationTypeFromName(), and synchronizationTypeNames().
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 cond::service::PoolDBOutputService::beginOfTime(), RunRangeDependentPedeLabeler::buildRunRangeDependencyMap(), AlignmentProducer::endOfJob(), cond::service::PoolDBOutputService::endOfTime(), findSpecs(), MillePedeAlignmentAlgorithm::initialize(), AlignmentProducer::makeNonOverlappingRunRanges(), PCLTrackerAlProducer::makeNonOverlappingRunRanges(), CondDBESSource::setIntervalFor(), PCLTrackerAlProducer::storeAlignmentsToDB(), and cond::service::PoolDBOutputService::Record::timetypestr().