FACT++  1.0
DimWriteStatistics::DimWriteStatistics ( const std::string &  serverName,
MessageImp log 
)

Constructor.

Constructor with correct service name. The state machine using this object should give it its own name as a parameter

Parameters
serverNamethe name of the server which created this object

Definition at line 26 of file DimWriteStatistics.cc.

References fThread, and UpdateService().

Referenced by GetFileSizeOnDisk().

26  :
27  fLog(log),
28  fDimService(server + "/STATS", "X:1;X:1;X:1;X:1",
29  "Statistics about size written"
30  "|FreeSpace[bytes]:Free space on disk"
31  "|Written[bytes]:Bytes written in total"
32  "|Rate[bytes]:Bytes written since last update"
33  "|Elapsed[ms]:Milliseconds elapsed since last update"),
34  fCurrentFolder("."),
35  fUpdateInterval(1000),
36  fBaseSize(0),
37  fDebug(false)
38 {
39  fThread = boost::thread(boost::bind(&DimWriteStatistics::UpdateService, this));
40 }
uint16_t fUpdateInterval
Current folder being watched for free space.
DimDescribedService fDimService
void UpdateService()
Main loop.
boost::thread fThread
The boost thread used to update the service.
std::string fCurrentFolder
bool fDebug
List of all opened files. set is used to easily check for entries.
size_t fBaseSize
Duration, in millisecond between two service updates. 0 means no more updates.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: