1 #ifndef CondCore_PoolDBOutputService_h
2 #define CondCore_PoolDBOutputService_h
59 if( !payload )
throwException(
"Provided payload pointer is invalid.",
"PoolDBOutputService::writeOne");
60 std::lock_guard<std::recursive_mutex>
lock(
m_mutex);
73 bool withlogging=
false);
81 bool withlogging=
false){
82 if( !firstPayloadObj )
throwException(
"Provided payload pointer is invalid.",
"PoolDBOutputService::createNewIOV");
83 std::lock_guard<std::recursive_mutex>
lock(
m_mutex);
98 bool withlogging=
false);
105 bool withlogging=
false);
111 bool withlogging=
false){
112 if( !payloadObj )
throwException(
"Provided payload pointer is invalid.",
"PoolDBOutputService::appendSinceTime");
126 bool withlogging=
false);
190 void initDB(
bool forReading=
true );
207 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 initDB(bool forReading=true)
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 preGlobalBeginLumi(edm::GlobalContext const &)
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 throwException(std::string const &message, std::string const &methodName)
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::string m_logConnectionString
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)
const cond::Logger & queryLog() const
PoolDBOutputService(const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR)
std::auto_ptr< cond::Logger > m_logdb