#include <FilesMonitorCollection.h>
Classes | |
struct | FileRecord |
Public Types | |
typedef boost::circular_buffer < FileRecordPtr > | FileRecordList |
typedef boost::shared_ptr < FileRecord > | FileRecordPtr |
Public Types inherited from stor::MonitorCollection | |
typedef std::vector< std::pair < std::string, xdata::Serializable * > > | InfoSpaceItems |
Public Member Functions | |
FilesMonitorCollection (const utils::Duration_t &updateInterval) | |
void | getFileRecords (FileRecordList &) const |
const FileRecordPtr | getNewFileRecord () |
Public Member Functions inherited from stor::MonitorCollection | |
void | appendInfoSpaceItems (InfoSpaceItems &) |
void | calculateStatistics (const utils::TimePoint_t &now) |
MonitorCollection (const utils::Duration_t &updateInterval) | |
void | reset (const utils::TimePoint_t &now) |
void | updateInfoSpaceItems () |
virtual | ~MonitorCollection () |
Private Member Functions | |
virtual void | do_appendInfoSpaceItems (InfoSpaceItems &) |
virtual void | do_calculateStatistics () |
virtual void | do_reset () |
virtual void | do_updateInfoSpaceItems () |
FilesMonitorCollection (FilesMonitorCollection const &) | |
FilesMonitorCollection & | operator= (FilesMonitorCollection const &) |
Private Attributes | |
xdata::UnsignedInteger32 | closedFiles_ |
uint32_t | entryCounter_ |
FileRecordList | fileRecords_ |
boost::mutex | fileRecordsMutex_ |
const unsigned int | maxFileEntries_ |
xdata::UnsignedInteger32 | openFiles_ |
Additional Inherited Members |
A collection of monitoring entities for open and closed files
Definition at line 31 of file FilesMonitorCollection.h.
typedef boost::circular_buffer<FileRecordPtr> stor::FilesMonitorCollection::FileRecordList |
Definition at line 78 of file FilesMonitorCollection.h.
typedef boost::shared_ptr<FileRecord> stor::FilesMonitorCollection::FileRecordPtr |
Definition at line 77 of file FilesMonitorCollection.h.
|
explicit |
Definition at line 14 of file FilesMonitorCollection.cc.
References fileRecords_, fileRecordsMutex_, and maxFileEntries_.
|
private |
|
privatevirtual |
Reimplemented from stor::MonitorCollection.
Definition at line 59 of file FilesMonitorCollection.cc.
References closedFiles_, and openFiles_.
|
privatevirtual |
Implements stor::MonitorCollection.
Definition at line 45 of file FilesMonitorCollection.cc.
|
privatevirtual |
Implements stor::MonitorCollection.
Definition at line 51 of file FilesMonitorCollection.cc.
References entryCounter_, fileRecords_, and fileRecordsMutex_.
|
privatevirtual |
Reimplemented from stor::MonitorCollection.
Definition at line 66 of file FilesMonitorCollection.cc.
References closedFiles_, entryCounter_, fileRecords_, fileRecordsMutex_, and openFiles_.
void stor::FilesMonitorCollection::getFileRecords | ( | FileRecordList & | fileRecords | ) | const |
Definition at line 38 of file FilesMonitorCollection.cc.
References fileRecords_, and fileRecordsMutex_.
Referenced by stor::SMWebPageHelper::addDOMforFiles().
const FilesMonitorCollection::FileRecordPtr stor::FilesMonitorCollection::getNewFileRecord | ( | ) |
Definition at line 25 of file FilesMonitorCollection.cc.
References entryCounter_, fileRecords_, and fileRecordsMutex_.
|
private |
|
private |
Definition at line 105 of file FilesMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), and do_updateInfoSpaceItems().
|
private |
Definition at line 103 of file FilesMonitorCollection.h.
Referenced by do_reset(), do_updateInfoSpaceItems(), and getNewFileRecord().
|
private |
Definition at line 99 of file FilesMonitorCollection.h.
Referenced by do_reset(), do_updateInfoSpaceItems(), FilesMonitorCollection(), getFileRecords(), and getNewFileRecord().
|
mutableprivate |
Definition at line 100 of file FilesMonitorCollection.h.
Referenced by do_reset(), do_updateInfoSpaceItems(), FilesMonitorCollection(), getFileRecords(), and getNewFileRecord().
|
private |
Definition at line 102 of file FilesMonitorCollection.h.
Referenced by FilesMonitorCollection().
|
private |
Definition at line 106 of file FilesMonitorCollection.h.
Referenced by do_appendInfoSpaceItems(), and do_updateInfoSpaceItems().