4 #ifndef EventFilter_StorageManager_FileHandler_h
5 #define EventFilter_StorageManager_FileHandler_h
13 #include "boost/shared_ptr.hpp"
17 #include <sys/types.h>
158 void renameFile(
const std::string& openFileName,
const std::string& closedFileName)
const;
200 #endif // EventFilter_StorageManager_FileHandler_h
TimePoint_t getCurrentTime()
uint64_t fileSize() const
void moveFileToClosed(const FilesMonitorCollection::FileRecord::ClosingReason &)
virtual void closeFile(const FilesMonitorCollection::FileRecord::ClosingReason &)=0
const uint64_t maxFileSize_
void insertFileInDatabase() const
boost::shared_ptr< FileRecord > FileRecordPtr
utils::TimePoint_t firstEntry_
const std::string logFile_
bool sizeMismatch(const uint64_t &initialSize, const uint64_t &finalSize) const
boost::shared_ptr< DbFileHandler > DbFileHandlerPtr
const std::string logPath_
FileHandler(FilesMonitorCollection::FileRecordPtr, const DbFileHandlerPtr, const uint64_t &maxFileSize)
utils::TimePoint_t lastEntry_
void updateDatabase() const
boost::posix_time::ptime TimePoint_t
void writeEvent(const I2OChain &)
const DiskWritingParams & diskWritingParams_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
void makeFileReadOnly(const std::string &fileName) const
FileHandler & operator=(FileHandler const &)
bool tooOld(const utils::TimePoint_t currentTime=utils::getCurrentTime())
void renameFile(const std::string &openFileName, const std::string &closedFileName) const
unsigned long long uint64_t
virtual void do_writeEvent(const I2OChain &event)=0
FilesMonitorCollection::FileRecordPtr fileRecord_
uint32_t lumiSection() const
uint64_t checkFileSizeMatch(const std::string &fileName, const uint64_t &size) const
void checkDirectories() const
bool tooLarge(const uint64_t &dataSize)
const DbFileHandlerPtr dbFileHandler_
tuple size
Write out results.
double calcPctDiff(const uint64_t &, const uint64_t &) const
bool isFromLumiSection(const uint32_t lumiSection)
void checkAdler32(const std::string &fileName) const