|
|
This class contains a report for a set of streams. Note: No synchronization is done by StreamMonitorReport. The user has to take care for correct thread synchronization!
See also: StreamReport
StreamMonitorReport (const cardinal maxCount) |
Constructor.
Parameters:
maxCount | Maximum number of streams. |
~StreamMonitorReport () |
Destructor.
inline bool ready () |
Check, if StreamMonitorReport is ready.
Returns: true, if ready; false otherwise.
inline cardinal getCount () |
Get current stream report count.
Returns: Current stream report count.
inline cardinal getMaxCount () |
Get maximum stream report count.
Returns: Maximum stream report count.
inline void setAcceptedSourceList (multiset<PortableAddress>* set) |
Set list of accepted sources. Addresses with port number 0 are interpreted as any port. Warning: Do *not* change this set unsynchronized with StreamMonitorReport!
Parameters:
set | Set of accepted sources given by PortableAddress. |
inline void setAcceptedDestinationList (multiset<PortableAddress>* set) |
Set list of accepted destinations. Addresses with port number 0 are interpreted as any port. Warning: Do *not* change this set unsynchronized with StreamMonitorReport!
Parameters:
set | Set of accepted destinations given by PortableAddress. |
inline bool getAcceptAllSources () |
Check, if all sources are accepted.
Returns: true, if all sources are accepted; false otherwise.
inline void setAcceptAllSources (const bool setIt) |
Set, if all sources are accepted.
Parameters:
true | to accept all sources; false otherwise. |
inline bool getAcceptAllDestinations () |
Check, if all destinations are accepted.
Returns: true, if all destinations are accepted; false otherwise.
inline void setAcceptAllDestinations (const bool setIt) |
Set, if all destinations are accepted.
Parameters:
true | to accept all destinations; false otherwise. |
inline bool getPrintAccepted () |
Check, if accepted transmissions are printed to cout.
Returns: true, if accepted transmissions are printed to cout.
inline void setPrintAccepted (const bool printAccepted) |
Set, if accepted transmissions are printed to cout.
Parameters:
true | to print accepted transmissions to cout. |
inline bool getPrintRejected () |
Check, if rejected transmissions are printed to cout.
Returns: true, if rejected transmissions are printed to cout.
inline void setPrintRejected (const bool printRejected) |
Set, if rejected transmissions are printed to cout.
Parameters:
true | to print rejected transmissions to cout. |
void reset () |
Reset.
void update (const char* protocol, const PortableAddress& source, const PortableAddress& destination, const card32 flowLabel, const card8 trafficClass, const cardinal rawLength, const cardinal payloadLength) |
Update report with new a stream report.
Parameters:
Protocol | string (unused in this version!). |
source | Source address. |
destination | Destination address. |
flowLabel | Flow label. |
rawLength | Raw length (with headers). |
payloadLength | Payload length (without headers). |
inline StreamReport* getReport (const cardinal index) |
Get pointer to StreamReport at given index.
Parameters:
index | Index of StreamReport. |
Returns: Pointer to StreamReport.
card64 [TrafficClassValues::MaxValues] TotalBytesRaw |
Total raw bytes counter for each traffic class.
card64 [TrafficClassValues::MaxValues] TotalBytesPayload |
Total payload bytes counter for each traffic class.
card32 [TrafficClassValues::MaxValues] TotalPackets |
Total packets counter for each traffic class.