class StreamMonitorReport

Stream Monitor Report. More...

Full nameCoral::StreamMonitorReport
Definition#include <streammonitorreport.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


Detailed Description

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:
maxCountMaximum number of streams.

~StreamMonitorReport ()

Destructor.

inline bool ready ()
[const]

Check, if StreamMonitorReport is ready.

Returns: true, if ready; false otherwise.

inline cardinal getCount ()
[const]

Get current stream report count.

Returns: Current stream report count.

inline cardinal getMaxCount ()
[const]

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:
setSet 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:
setSet of accepted destinations given by PortableAddress.

inline bool getAcceptAllSources ()
[const]

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:
trueto accept all sources; false otherwise.

inline bool getAcceptAllDestinations ()
[const]

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:
trueto accept all destinations; false otherwise.

inline bool getPrintAccepted ()
[const]

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:
trueto print accepted transmissions to cout.

inline bool getPrintRejected ()
[const]

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:
trueto 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:
Protocolstring (unused in this version!).
sourceSource address.
destinationDestination address.
flowLabelFlow label.
rawLengthRaw length (with headers).
payloadLengthPayload length (without headers).

inline StreamReport* getReport (const cardinal index)
[const]

Get pointer to StreamReport at given index.

Parameters:
indexIndex 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.