1 #ifndef CondCore_PoolDBOutputService_h
2 #define CondCore_PoolDBOutputService_h
55 if( !payload )
throwException(
"Provided payload pointer is invalid.",
"PoolDBOutputService::writeOne");
56 std::lock_guard<std::recursive_mutex>
lock(
m_mutex);
69 bool withlogging=
false);
77 bool withlogging=
false){
78 if( !firstPayloadObj )
throwException(
"Provided payload pointer is invalid.",
"PoolDBOutputService::createNewIOV");
79 std::lock_guard<std::recursive_mutex>
lock(
m_mutex);
94 bool withlogging=
false);
101 bool withlogging=
false);
107 bool withlogging=
false){
108 if( !payloadObj )
throwException(
"Provided payload pointer is invalid.",
"PoolDBOutputService::appendSinceTime");
122 bool withlogging=
false);
189 void initDB(
bool dummy=
false );
204 std::vector< std::pair<std::string,std::string> >
m_newtags;
std::vector< std::pair< std::string, std::string > > m_newtags
const TimeTypeSpecs timeTypeSpecs[]
void closeIOV(Time_t lastTill, const std::string &recordName, bool withlogging=false)
void preEventProcessing(edm::StreamContext const &)
void fillRecord(edm::ParameterSet &pset)
std::map< std::string, cond::UserLogInfo > m_logheaders
cond::persistency::Session session() const
std::vector< cond::Time_t > m_currentTimes
void initDB(bool dummy=false)
void preGlobalBeginLumi(edm::GlobalContext const &)
void throwException(const std::string &message, const std::string &methodName)
std::string tag(const std::string &recordName)
std::string demangledName(const std::type_info &typeInfo)
std::string classNameForTypeId(const std::type_info &typeInfo)
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
unsigned long long Time_t
bool isNewTagRequest(const std::string &recordName)
Record & lookUpRecord(const std::string &recordName)
cond::Time_t beginOfTime() const
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
cond::persistency::Session m_session
cond::TimeType m_timetype
void createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
void setLogHeaderForRecord(const std::string &recordName, const std::string &provenance, const std::string &usertext)
virtual ~PoolDBOutputService()
void tagInfo(const std::string &recordName, cond::TagInfo_t &result)
cond::Time_t endOfTime() const
void preGlobalBeginRun(edm::GlobalContext const &)
std::string timetypestr() const
cond::Hash storePayload(const T &payload, const boost::posix_time::ptime &creationTime=boost::posix_time::microsec_clock::universal_time())
std::recursive_mutex m_mutex
cond::Time_t currentTime() const
void postModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::string const & className() const
cond::TimeType m_timetype
std::map< std::string, Record > m_callbacks
volatile std::atomic< bool > shutdown_flag false
void preModuleEvent(edm::StreamContext const &, edm::ModuleCallingContext const &)
std::string m_timetypestr
cond::UserLogInfo & lookUpUserLogInfo(const std::string &recordName)
PoolDBOutputService(const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR)