FACT++
1.0
|
provides a statistics service telling the free space on disk and the total size written so far More...
#include <DimWriteStatistics.h>
Classes | |
struct | Stats |
Public Member Functions | |
DimWriteStatistics (const std::string &serverName, MessageImp &log) | |
Constructor. More... | |
~DimWriteStatistics () | |
Default destructor. More... | |
bool | SetCurrentFolder (const std::string &folder) |
Configures that current folder where files are written to. More... | |
bool | FileOpened (const std::string &fileName) |
void | SetDebugMode (bool) |
void | SetUpdateInterval (const int16_t millisec) |
const Stats & | GetTotalSizeWritten () const |
uint16_t | GetUpdateInterval () const |
Static Public Member Functions | |
static int64_t | GetFileSizeOnDisk (const std::string &file, MessageImp &imp) |
Returns the size on disk of a given file. More... | |
static bool | DoesPathExist (std::string path, MessageImp &log) |
Private Member Functions | |
void | UpdateService () |
Main loop. More... | |
int64_t | GetFreeSpace () |
Returns the free space on the disk of the folder being watched (fCurrentFolder) More... | |
int64_t | GetFileSizeOnDisk (const std::string &file) |
Returns the size on disk of a given file. More... | |
int | Write (const Time &t, const std::string &txt, int qos) |
Private Attributes | |
MessageImp & | fLog |
DimDescribedService | fDimService |
std::string | fCurrentFolder |
uint16_t | fUpdateInterval |
Current folder being watched for free space. More... | |
size_t | fBaseSize |
Duration, in millisecond between two service updates. 0 means no more updates. More... | |
std::set< std::string > | fOpenedFiles |
Total base size of all opened files. More... | |
bool | fDebug |
List of all opened files. set is used to easily check for entries. More... | |
Stats | fStats |
The data structure holding the stat data. More... | |
boost::thread | fThread |
The boost thread used to update the service. More... | |
provides a statistics service telling the free space on disk and the total size written so far
Definition at line 19 of file DimWriteStatistics.h.