famouso::mw::afp::defrag::FragmentStats Struct Reference
Statistics about processed fragments. More...
#include <Statistics.h>
Public Member Functions | |
FragmentStats () | |
Constructor (init to zero). | |
void | reset () |
Reset statistics to zero. | |
Data Fields | |
unsigned int | expected |
Total fragment number of all (at least partially) received events. Increased when first fragment of an event is processed. | |
unsigned int | currently_expected |
Total number of fragments not received yet for all incomplete events. Increased when first fragment of an event is processed. Decreased for every processed fragment. After we are done with an event the value has been increased and decreased by the same number. | |
unsigned int | received |
Total number of all received fragments. Incremented when a fragment gets processed. received = incorrect_header + outdated + duplicates + used. | |
unsigned int | incorrect_header |
Total number of fragments that have be dopped because the header contains errors or uses features / size properties not available in the used AFP defrag configuration. | |
unsigned int | outdated |
Total number of outdated fragments. This includes fragments belonging to events which have already been reconstructed (late duplicates, redundancy fragments not needed) or dropped because of the timeout. | |
unsigned int | used |
Total number of fragments used for reconstruction of events. Incremented during fragment processing. | |
unsigned int | duplicates |
Total number of duplicates received during reconstruction of the events the duplicates belong to. Incremented during duplicate checking (if configured to check for duplicates). |
Detailed Description
Statistics about processed fragments.
The number of lost fragments can be approximated:
lost = expected - currently_expected - received
For short times the result may be slightly higher than the real value. The maximum difference is equal to the number of expected redundancy fragments not yet received.
- Attention:
- At the moment there is no overflow handling. Thus the statistics may be inconsistent if some values overflow while others do not yet.
- See also:
- EventStats, Statistics, NoStatistics
Constructor & Destructor Documentation
famouso::mw::afp::defrag::FragmentStats::FragmentStats | ( | ) | [inline] |
Constructor (init to zero).
References reset().
Member Function Documentation
void famouso::mw::afp::defrag::FragmentStats::reset | ( | ) | [inline] |
Reset statistics to zero.
Referenced by FragmentStats().
Field Documentation
Total number of fragments not received yet for all incomplete events. Increased when first fragment of an event is processed. Decreased for every processed fragment. After we are done with an event the value has been increased and decreased by the same number.
unsigned int famouso::mw::afp::defrag::FragmentStats::duplicates |
Total number of duplicates received during reconstruction of the events the duplicates belong to. Incremented during duplicate checking (if configured to check for duplicates).
unsigned int famouso::mw::afp::defrag::FragmentStats::expected |
Total fragment number of all (at least partially) received events. Increased when first fragment of an event is processed.
Total number of fragments that have be dopped because the header contains errors or uses features / size properties not available in the used AFP defrag configuration.
unsigned int famouso::mw::afp::defrag::FragmentStats::outdated |
Total number of outdated fragments. This includes fragments belonging to events which have already been reconstructed (late duplicates, redundancy fragments not needed) or dropped because of the timeout.
unsigned int famouso::mw::afp::defrag::FragmentStats::received |
Total number of all received fragments. Incremented when a fragment gets processed. received = incorrect_header + outdated + duplicates + used.
unsigned int famouso::mw::afp::defrag::FragmentStats::used |
Total number of fragments used for reconstruction of events. Incremented during fragment processing.
The documentation for this struct was generated from the following file:
- include/mw/afp/defrag/Statistics.h