class NetLogWriter

Network Log Writer. More...

Full nameCoral::NetLogWriter
Definition#include <netlogwriter.h>
InheritsCoral::TimedThread
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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:
nameName of log file to write.
intervalInterval in microseonds the log is written.
maxCountNumber of entries to be written.
monitorNetworkMonitorInterface to get the reports from.
smReportStreamMonitorReport (default NULL).

NetLogWriter ()

Destructor.

inline bool  ready ()

[const]

Check, if NetLogWriter is ready.

Returns: true, if ready; false, if not.

inline card64  getTimeStamp ()

[const]

Get time stamp of file (seconds since 01-Jan-1970).

Returns: Time stamp.

inline card64  getInterval ()

[const]

Get interval of the entries in file.

Returns: Interval in microseconds.

Reimplemented from TimedThread.

inline card64  getCount ()

[const]

Get number of entries written into file.

Returns: Number of entries written.