CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
stor::FileHandler Class Referenceabstract

#include <FileHandler.h>

Inheritance diagram for stor::FileHandler:
stor::EventFileHandler stor::FRDFileHandler

Public Member Functions

virtual void closeFile (const FilesMonitorCollection::FileRecord::ClosingReason &)=0
 
uint32_t events () const
 
 FileHandler (FilesMonitorCollection::FileRecordPtr, const DbFileHandlerPtr, const uint64_t &maxFileSize)
 
uint64_t fileSize () const
 
bool isFromLumiSection (const uint32_t lumiSection)
 
uint32_t lumiSection () const
 
bool tooLarge (const uint64_t &dataSize)
 
bool tooOld (const utils::TimePoint_t currentTime=utils::getCurrentTime())
 
void writeEvent (const I2OChain &)
 
virtual ~FileHandler ()
 

Protected Member Functions

virtual void do_writeEvent (const I2OChain &event)=0
 
void insertFileInDatabase () const
 
void moveFileToClosed (const FilesMonitorCollection::FileRecord::ClosingReason &)
 
void updateDatabase () const
 

Protected Attributes

const DbFileHandlerPtr dbFileHandler_
 
const DiskWritingParamsdiskWritingParams_
 
FilesMonitorCollection::FileRecordPtr fileRecord_
 
utils::TimePoint_t firstEntry_
 
utils::TimePoint_t lastEntry_
 

Private Member Functions

double calcPctDiff (const uint64_t &, const uint64_t &) const
 
void checkAdler32 (const std::string &fileName) const
 
void checkDirectories () const
 
uint64_t checkFileSizeMatch (const std::string &fileName, const uint64_t &size) const
 
 FileHandler (FileHandler const &)
 
void makeFileReadOnly (const std::string &fileName) const
 
FileHandleroperator= (FileHandler const &)
 
void renameFile (const std::string &openFileName, const std::string &closedFileName) const
 
bool sizeMismatch (const uint64_t &initialSize, const uint64_t &finalSize) const
 

Private Attributes

std::string cmsver_
 
const std::string logFile_
 
const std::string logPath_
 
const uint64_t maxFileSize_
 

Detailed Description

Abstract representation of a physical file

Author:
mommsen
Revision:
1.21
Date:
2012/04/04 12:16:57

Definition at line 32 of file FileHandler.h.

Constructor & Destructor Documentation

stor::FileHandler::FileHandler ( FilesMonitorCollection::FileRecordPtr  fileRecord,
const DbFileHandlerPtr  dbFileHandler,
const uint64_t &  maxFileSize 
)

Definition at line 26 of file FileHandler.cc.

30  :
31  fileRecord_(fileRecord),
32  dbFileHandler_(dbFileHandler),
35  diskWritingParams_(dbFileHandler->getDiskWritingParams()),
36  maxFileSize_(maxFileSize),
38  {
39  // stripp quotes if present
40  if(cmsver_[0]=='"') cmsver_=cmsver_.substr(1,cmsver_.size()-2);
41 
43 
45  }
TimePoint_t getCurrentTime()
Definition: Utils.h:158
const uint64_t maxFileSize_
Definition: FileHandler.h:191
std::string cmsver_
Definition: FileHandler.h:195
void insertFileInDatabase() const
Definition: FileHandler.cc:100
utils::TimePoint_t firstEntry_
Definition: FileHandler.h:184
utils::TimePoint_t lastEntry_
Definition: FileHandler.h:185
const DiskWritingParams & diskWritingParams_
Definition: FileHandler.h:187
std::string getReleaseVersion()
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
void checkDirectories() const
Definition: FileHandler.cc:330
const DbFileHandlerPtr dbFileHandler_
Definition: FileHandler.h:182
virtual stor::FileHandler::~FileHandler ( )
inlinevirtual

Definition at line 43 of file FileHandler.h.

43 {};
stor::FileHandler::FileHandler ( FileHandler const &  )
private

Member Function Documentation

double stor::FileHandler::calcPctDiff ( const uint64_t &  value1,
const uint64_t &  value2 
) const
private

Return the relative difference btw to file sizes

Definition at line 339 of file FileHandler.cc.

References max(), and min.

Referenced by sizeMismatch().

340  {
341  if (value1 == value2) return 0;
342  uint64_t largerValue = std::max(value1,value2);
343  uint64_t smallerValue = std::min(value1,value2);
344  return ( largerValue > 0 ? (largerValue - smallerValue) / largerValue : 0 );
345  }
#define min(a, b)
Definition: mlp_lapack.h:161
const T & max(const T &a, const T &b)
unsigned long long uint64_t
Definition: Time.h:15
void stor::FileHandler::checkAdler32 ( const std::string &  fileName) const
private

Compare Adler32 checksum of file with calculated one

Definition at line 271 of file FileHandler.cc.

References a, cms::Adler32(), b, stor::DiskWritingParams::checkAdler32_, diskWritingParams_, mergeVDriftHistosByStation::file, fileRecord_, recoMuon::in, lumiQueryAPI::msg, and findQualityFiles::size.

272  {
273  if (!diskWritingParams_.checkAdler32_) return;
274 
275  std::ifstream file(fileName.c_str(), std::ios::in | std::ios::binary | std::ios::ate);
276  if (!file.is_open())
277  {
278  std::ostringstream msg;
279  msg << "File " << fileName << " could not be opened.\n";
280  XCEPT_RAISE(stor::exception::DiskWriting, msg.str());
281  }
282 
283  std::ifstream::pos_type size = file.tellg();
284  file.seekg (0, std::ios::beg);
285 
286  boost::shared_array<char> ptr(new char[1024*1024]);
287  uint32_t a = 1, b = 0;
288 
289  std::ifstream::pos_type rsize = 0;
290  while(rsize < size)
291  {
292  file.read(ptr.get(), 1024*1024);
293  rsize += 1024*1024;
294  if(file.gcount())
295  cms::Adler32(ptr.get(), file.gcount(), a, b);
296  else
297  break;
298  }
299  file.close();
300 
301  const uint32 adler = (b << 16) | a;
302  if (adler != fileRecord_->adler32)
303  {
304  std::ostringstream msg;
305  msg << "Disk resident file " << fileName <<
306  " has Adler32 checksum " << std::hex << adler <<
307  ", while the expected checkum is " << std::hex << fileRecord_->adler32;
308  XCEPT_RAISE(stor::exception::DiskWriting, msg.str());
309  }
310  }
const DiskWritingParams & diskWritingParams_
Definition: FileHandler.h:187
unsigned int uint32
Definition: MsgTools.h:13
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
double b
Definition: hdecay.h:120
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
double a
Definition: hdecay.h:121
tuple size
Write out results.
void stor::FileHandler::checkDirectories ( ) const
private

Check if all directories needed for the file output are available. Throws a stor::execption::NoSuchDirectory when a directory does not exist.

Definition at line 330 of file FileHandler.cc.

References stor::utils::checkDirectory(), diskWritingParams_, stor::DiskWritingParams::filePath_, and fileRecord_.

331  {
333  utils::checkDirectory(fileRecord_->baseFilePath);
334  utils::checkDirectory(fileRecord_->baseFilePath + "/open");
335  utils::checkDirectory(fileRecord_->baseFilePath + "/closed");
336  }
const DiskWritingParams & diskWritingParams_
Definition: FileHandler.h:187
void checkDirectory(const std::string &)
Definition: Utils.cc:80
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
uint64_t stor::FileHandler::checkFileSizeMatch ( const std::string &  fileName,
const uint64_t &  size 
) const
private

Check that the file size matches the given size. Returns the actual size.

Definition at line 216 of file FileHandler.cc.

References fileRecord_, stor::FilesMonitorCollection::FileRecord::inaccessible, lumiQueryAPI::msg, sizeMismatch(), and stor::FilesMonitorCollection::FileRecord::truncated.

217  {
218  #if linux
219  struct stat64 statBuff;
220  int statStatus = stat64(fileName.c_str(), &statBuff);
221  #else
222  struct stat statBuff;
223  int statStatus = stat(fileName.c_str(), &statBuff);
224  #endif
225  if ( statStatus != 0 )
226  {
228  std::ostringstream msg;
229  msg << "Error checking the status of file "
230  << fileName
231  << ": " << strerror(errno);
232  XCEPT_RAISE(stor::exception::DiskWriting, msg.str());
233  }
234 
235  if ( sizeMismatch(size, statBuff.st_size) )
236  {
238  std::ostringstream msg;
239  msg << "Found an unexpected file size when trying to move"
240  << " the file to the closed state. File " << fileName
241  << " has an actual size of " << statBuff.st_size
242  << " (" << statBuff.st_blocks << " blocks)"
243  << " instead of the expected size of " << size
244  << " (" << (size/512)+1 << " blocks).";
245  XCEPT_RAISE(stor::exception::FileTruncation, msg.str());
246  }
247 
248  return static_cast<uint64_t>(statBuff.st_size);
249  }
bool sizeMismatch(const uint64_t &initialSize, const uint64_t &finalSize) const
Definition: FileHandler.cc:252
unsigned long long uint64_t
Definition: Time.h:15
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
tuple size
Write out results.
virtual void stor::FileHandler::closeFile ( const FilesMonitorCollection::FileRecord::ClosingReason )
pure virtual
virtual void stor::FileHandler::do_writeEvent ( const I2OChain event)
protectedpure virtual

Write the I2OChain to the file

Implemented in stor::EventFileHandler, and stor::FRDFileHandler.

Referenced by writeEvent().

uint32_t stor::FileHandler::events ( ) const

Return the number of events in the file

Definition at line 172 of file FileHandler.cc.

References fileRecord_.

Referenced by insertFileInDatabase(), tooLarge(), and updateDatabase().

173  {
174  return fileRecord_->eventCount;
175  }
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
uint64_t stor::FileHandler::fileSize ( ) const

Return the size of the file in bytes

Definition at line 178 of file FileHandler.cc.

References fileRecord_.

Referenced by insertFileInDatabase(), tooLarge(), and updateDatabase().

179  {
180  return fileRecord_->fileSize;
181  }
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
void stor::FileHandler::insertFileInDatabase ( ) const
protected

Write command to insert a new file into the CMS_STOMGR.TIER0_INJECTION table into the logFile_.

Definition at line 100 of file FileHandler.cc.

References cmsver_, dbFileHandler_, diskWritingParams_, events(), fileRecord_, fileSize(), firstEntry_, stor::DiskWritingParams::hostName_, stor::DiskWritingParams::initialSafetyLevel_, stor::utils::secondsSinceEpoch(), stor::DiskWritingParams::setupLabel_, and stor::DiskWritingParams::smInstanceString_.

101  {
102  std::ostringstream oss;
103  oss << "./insertFile.pl "
104  << " --FILENAME " << fileRecord_->fileName()
105  << " --FILECOUNTER " << fileRecord_->fileCounter
106  << " --NEVENTS " << events()
107  << " --FILESIZE " << fileSize()
108  << " --STARTTIME " << utils::secondsSinceEpoch(firstEntry_)
109  << " --STOPTIME 0"
110  << " --STATUS open"
111  << " --RUNNUMBER " << fileRecord_->runNumber
112  << " --LUMISECTION " << fileRecord_->lumiSection
113  << " --PATHNAME " << fileRecord_->filePath()
114  << " --HOSTNAME " << diskWritingParams_.hostName_
115  << " --SETUPLABEL " << diskWritingParams_.setupLabel_
116  << " --STREAM " << fileRecord_->streamLabel
117  << " --INSTANCE " << diskWritingParams_.smInstanceString_
118  << " --SAFETY " << diskWritingParams_.initialSafetyLevel_
119  << " --APPVERSION " << cmsver_
120  << " --APPNAME CMSSW"
121  << " --TYPE streamer"
122  << " --CHECKSUM 0"
123  << " --CHECKSUMIND 0";
124 
125  dbFileHandler_->writeOld( firstEntry_, oss.str() );
126  }
uint64_t fileSize() const
Definition: FileHandler.cc:178
std::string smInstanceString_
Definition: Configuration.h:51
std::string cmsver_
Definition: FileHandler.h:195
long secondsSinceEpoch(TimePoint_t const &)
Definition: Utils.h:152
utils::TimePoint_t firstEntry_
Definition: FileHandler.h:184
const DiskWritingParams & diskWritingParams_
Definition: FileHandler.h:187
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
const DbFileHandlerPtr dbFileHandler_
Definition: FileHandler.h:182
uint32_t events() const
Definition: FileHandler.cc:172
bool stor::FileHandler::isFromLumiSection ( const uint32_t  lumiSection)

Returns true if the file corresponds to the given lumi section

Definition at line 144 of file FileHandler.cc.

References closeFile(), fileRecord_, and stor::FilesMonitorCollection::FileRecord::LSended.

Referenced by stor::StreamHandler::closeFilesForLumiSection().

145  {
146  if (lumiSection == fileRecord_->lumiSection)
147  {
149  return true;
150  }
151  else
152  {
153  return false;
154  }
155  }
virtual void closeFile(const FilesMonitorCollection::FileRecord::ClosingReason &)=0
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
uint32_t lumiSection() const
Definition: FileHandler.h:79
uint32_t stor::FileHandler::lumiSection ( ) const
inline

Return the luminosity section the file belongs to

Definition at line 79 of file FileHandler.h.

References fileRecord_.

80  { return fileRecord_->lumiSection; }
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
void stor::FileHandler::makeFileReadOnly ( const std::string &  fileName) const
private

Changes the file permissions to read-only

Definition at line 259 of file FileHandler.cc.

References lumiQueryAPI::msg.

260  {
261  int ronly = chmod(fileName.c_str(), S_IREAD|S_IRGRP|S_IROTH);
262  if (ronly != 0) {
263  std::ostringstream msg;
264  msg << "Unable to change permissions of " << fileName
265  << " to read only: " << strerror(errno);
266  XCEPT_RAISE(stor::exception::DiskWriting, msg.str());
267  }
268  }
void stor::FileHandler::moveFileToClosed ( const FilesMonitorCollection::FileRecord::ClosingReason reason)
protected

Move index and streamer file to "closed" directory

Definition at line 190 of file FileHandler.cc.

References stor::FilesMonitorCollection::FileRecord::closed, alignCSCRings::e, stor::FilesMonitorCollection::FileRecord::open, Association::reason, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by stor::FRDFileHandler::closeFile(), and stor::EventFileHandler::closeFile().

193  {
194  const std::string openFileName(fileRecord_->completeFileName(FilesMonitorCollection::FileRecord::open));
195  const std::string closedFileName(fileRecord_->completeFileName(FilesMonitorCollection::FileRecord::closed));
196 
197  const uint64_t openFileSize = checkFileSizeMatch(openFileName, fileSize());
198 
199  makeFileReadOnly(openFileName);
200  try
201  {
202  renameFile(openFileName, closedFileName);
203  }
204  catch (stor::exception::DiskWriting& e)
205  {
206  XCEPT_RETHROW(stor::exception::DiskWriting,
207  "Could not move streamer file to closed area.", e);
208  }
209  fileRecord_->isOpen = false;
210  fileRecord_->whyClosed = reason;
211  checkFileSizeMatch(closedFileName, openFileSize);
212  checkAdler32(closedFileName);
213  }
uint64_t fileSize() const
Definition: FileHandler.cc:178
string reason
Definition: Association.py:177
void makeFileReadOnly(const std::string &fileName) const
Definition: FileHandler.cc:259
void renameFile(const std::string &openFileName, const std::string &closedFileName) const
Definition: FileHandler.cc:314
unsigned long long uint64_t
Definition: Time.h:15
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
uint64_t checkFileSizeMatch(const std::string &fileName, const uint64_t &size) const
Definition: FileHandler.cc:216
void checkAdler32(const std::string &fileName) const
Definition: FileHandler.cc:271
FileHandler& stor::FileHandler::operator= ( FileHandler const &  )
private
void stor::FileHandler::renameFile ( const std::string &  openFileName,
const std::string &  closedFileName 
) const
private

Rename the file

Definition at line 314 of file FileHandler.cc.

References lumiQueryAPI::msg, stor::FilesMonitorCollection::FileRecord::notClosed, and query::result.

318  {
319  int result = rename( openFileName.c_str(), closedFileName.c_str() );
320  if (result != 0) {
322  std::ostringstream msg;
323  msg << "Unable to move " << openFileName << " to "
324  << closedFileName << ": " << strerror(errno);
325  XCEPT_RAISE(stor::exception::DiskWriting, msg.str());
326  }
327  }
tuple result
Definition: query.py:137
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
bool stor::FileHandler::sizeMismatch ( const uint64_t &  initialSize,
const uint64_t &  finalSize 
) const
private

Check that the 2 sizes agree

Definition at line 252 of file FileHandler.cc.

References calcPctDiff(), diskWritingParams_, and stor::DiskWritingParams::fileSizeTolerance_.

Referenced by checkFileSizeMatch().

253  {
254  double pctDiff = calcPctDiff(initialSize, finalSize);
255  return (pctDiff > diskWritingParams_.fileSizeTolerance_);
256  }
const DiskWritingParams & diskWritingParams_
Definition: FileHandler.h:187
double calcPctDiff(const uint64_t &, const uint64_t &) const
Definition: FileHandler.cc:339
bool stor::FileHandler::tooLarge ( const uint64_t &  dataSize)

Returns true if the additional data size would push the file size beyond maxFileSize.

Definition at line 158 of file FileHandler.cc.

References closeFile(), events(), fileSize(), maxFileSize_, and stor::FilesMonitorCollection::FileRecord::size.

159  {
160  if ( ((fileSize() + dataSize) > maxFileSize_) && (events() > 0) )
161  {
163  return true;
164  }
165  else
166  {
167  return false;
168  }
169  }
uint64_t fileSize() const
Definition: FileHandler.cc:178
virtual void closeFile(const FilesMonitorCollection::FileRecord::ClosingReason &)=0
const uint64_t maxFileSize_
Definition: FileHandler.h:191
uint32_t events() const
Definition: FileHandler.cc:172
bool stor::FileHandler::tooOld ( const utils::TimePoint_t  currentTime = utils::getCurrentTime())

Returns true if the file has not seen any recent events

Definition at line 129 of file FileHandler.cc.

References closeFile(), diskWritingParams_, lastEntry_, stor::DiskWritingParams::lumiSectionTimeOut_, seconds(), and stor::FilesMonitorCollection::FileRecord::timeout.

Referenced by stor::StreamHandler::closeTimedOutFiles().

130  {
133  {
135  return true;
136  }
137  else
138  {
139  return false;
140  }
141  }
virtual void closeFile(const FilesMonitorCollection::FileRecord::ClosingReason &)=0
utils::Duration_t lumiSectionTimeOut_
Definition: Configuration.h:41
double seconds()
utils::TimePoint_t lastEntry_
Definition: FileHandler.h:185
const DiskWritingParams & diskWritingParams_
Definition: FileHandler.h:187
void stor::FileHandler::updateDatabase ( ) const
protected

Write command to update the file information in the CMS_STOMGR.TIER0_INJECTION table into the logFile_.

Definition at line 70 of file FileHandler.cc.

References cmsver_, dbFileHandler_, diskWritingParams_, events(), fileRecord_, fileSize(), firstEntry_, stor::DiskWritingParams::hostName_, stor::DiskWritingParams::initialSafetyLevel_, lastEntry_, stor::utils::secondsSinceEpoch(), stor::DiskWritingParams::setupLabel_, and stor::DiskWritingParams::smInstanceString_.

Referenced by stor::FRDFileHandler::closeFile(), and stor::EventFileHandler::closeFile().

71  {
72  std::ostringstream oss;
73  oss << "./closeFile.pl "
74  << " --FILENAME " << fileRecord_->fileName()
75  << " --FILECOUNTER " << fileRecord_->fileCounter
76  << " --NEVENTS " << events()
77  << " --FILESIZE " << fileSize()
78  << " --STARTTIME " << utils::secondsSinceEpoch(firstEntry_)
79  << " --STOPTIME " << utils::secondsSinceEpoch(lastEntry_)
80  << " --STATUS " << "closed"
81  << " --RUNNUMBER " << fileRecord_->runNumber
82  << " --LUMISECTION " << fileRecord_->lumiSection
83  << " --PATHNAME " << fileRecord_->filePath()
84  << " --HOSTNAME " << diskWritingParams_.hostName_
85  << " --SETUPLABEL " << diskWritingParams_.setupLabel_
86  << " --STREAM " << fileRecord_->streamLabel
87  << " --INSTANCE " << diskWritingParams_.smInstanceString_
88  << " --SAFETY " << diskWritingParams_.initialSafetyLevel_
89  << " --APPVERSION " << cmsver_
90  << " --APPNAME CMSSW"
91  << " --TYPE streamer"
92  << " --DEBUGCLOSE " << fileRecord_->whyClosed
93  << " --CHECKSUM " << std::hex << fileRecord_->adler32
94  << " --CHECKSUMIND 0";
95 
96  dbFileHandler_->writeOld( lastEntry_, oss.str() );
97  }
uint64_t fileSize() const
Definition: FileHandler.cc:178
std::string smInstanceString_
Definition: Configuration.h:51
std::string cmsver_
Definition: FileHandler.h:195
long secondsSinceEpoch(TimePoint_t const &)
Definition: Utils.h:152
utils::TimePoint_t firstEntry_
Definition: FileHandler.h:184
utils::TimePoint_t lastEntry_
Definition: FileHandler.h:185
const DiskWritingParams & diskWritingParams_
Definition: FileHandler.h:187
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181
const DbFileHandlerPtr dbFileHandler_
Definition: FileHandler.h:182
uint32_t events() const
Definition: FileHandler.cc:172
void stor::FileHandler::writeEvent ( const I2OChain event)

Write the event contained in the I2OChain

Definition at line 47 of file FileHandler.cc.

References do_writeEvent(), fileRecord_, stor::utils::getCurrentTime(), lastEntry_, and lumiQueryAPI::msg.

48  {
49  if ( ! fileRecord_->isOpen )
50  {
51  std::ostringstream msg;
52  msg << "Tried to write an event to "
53  << fileRecord_->completeFileName()
54  << "which has already been closed.";
55  XCEPT_RAISE(stor::exception::DiskWriting, msg.str());
56  }
57 
59 
60  fileRecord_->fileSize += event.totalDataSize();
61  ++fileRecord_->eventCount;
63  }
TimePoint_t getCurrentTime()
Definition: Utils.h:158
utils::TimePoint_t lastEntry_
Definition: FileHandler.h:185
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
virtual void do_writeEvent(const I2OChain &event)=0
FilesMonitorCollection::FileRecordPtr fileRecord_
Definition: FileHandler.h:181

Member Data Documentation

std::string stor::FileHandler::cmsver_
private

Definition at line 195 of file FileHandler.h.

Referenced by insertFileInDatabase(), and updateDatabase().

const DbFileHandlerPtr stor::FileHandler::dbFileHandler_
protected

Definition at line 182 of file FileHandler.h.

Referenced by insertFileInDatabase(), and updateDatabase().

const DiskWritingParams& stor::FileHandler::diskWritingParams_
protected
FilesMonitorCollection::FileRecordPtr stor::FileHandler::fileRecord_
protected
utils::TimePoint_t stor::FileHandler::firstEntry_
protected

Definition at line 184 of file FileHandler.h.

Referenced by insertFileInDatabase(), and updateDatabase().

utils::TimePoint_t stor::FileHandler::lastEntry_
protected
const std::string stor::FileHandler::logFile_
private

Definition at line 194 of file FileHandler.h.

const std::string stor::FileHandler::logPath_
private

Definition at line 193 of file FileHandler.h.

const uint64_t stor::FileHandler::maxFileSize_
private

Definition at line 191 of file FileHandler.h.

Referenced by tooLarge().