31 fileRecord->fileSize = 0;
32 fileRecord->eventCount = 0;
33 fileRecord->adler32 = 0;
61 infoSpaceItems.push_back(std::make_pair(
"openFiles", &
openFiles_));
62 infoSpaceItems.push_back(std::make_pair(
"closedFiles", &
closedFiles_));
73 FileRecordList::const_iterator it =
fileRecords_.begin(),
93 case LSended:
return "LS ended";
95 case size:
return "file size";
98 default:
return "unknown";
107 case open:
return ( baseFilePath +
"/open/" );
108 case closed:
return ( baseFilePath +
"/closed/" );
109 case current:
return ( baseFilePath + (isOpen ?
"/open/" :
"/closed/") );
118 fileName << coreFileName
119 <<
"." << std::setfill(
'0') << std::setw(4) << fileCounter
121 return fileName.str();
FilesMonitorCollection(const utils::Duration_t &updateInterval)
const FileRecordPtr getNewFileRecord()
virtual void do_updateInfoSpaceItems()
FileRecordList fileRecords_
boost::shared_ptr< FileRecord > FileRecordPtr
virtual void do_appendInfoSpaceItems(InfoSpaceItems &)
std::string closingReason()
boost::posix_time::time_duration Duration_t
std::string filePath(FileStatus status=current)
void getFileRecords(FileRecordList &) const
const unsigned int maxFileEntries_
xdata::UnsignedInteger32 closedFiles_
std::vector< std::pair< std::string, xdata::Serializable * > > InfoSpaceItems
xdata::UnsignedInteger32 openFiles_
boost::circular_buffer< FileRecordPtr > FileRecordList
boost::mutex fileRecordsMutex_
virtual void do_calculateStatistics()