|
|
This class implements a writer for NetworkMonitorReports. The reports will be written to a file in given intervals.
NetLogWriter (const char* name, const card64 interval, NetworkMonitorInterface* monitor, StreamMonitorReport* smReport = NULL) |
Constructor for a new NetLogWriter. Note: NetLogWriter will *not* be started automatically. You have to call start()!
Parameters:
name | Name of log file to write. |
interval | Interval in microseonds the log is written. |
maxCount | Number of entries to be written. |
monitor | NetworkMonitorInterface to get the reports from. |
smReport | StreamMonitorReport (default NULL). |
See also: Thread#start
~NetLogWriter () |
Destructor.
inline bool ready () |
Check, if NetLogWriter is ready.
Returns: true, if ready; false, if not.
inline card64 getTimeStamp () |
Get time stamp of file (seconds since 01-Jan-1970).
Returns: Time stamp.
inline card64 getInterval () |
Get interval of the entries in file.
Returns: Interval in microseconds.
Reimplemented from TimedThread
inline card64 getCount () |
Get number of entries written into file.
Returns: Number of entries written.