[ libArts | Source | Keywords | Summary | Ancestors | All Members | Descendants ]
Back to the top of ArtsPortMatrixAggregator
Back to the top of ArtsPortMatrixAggregator
typedef struct counter_t;
No documentation available.
typedef struct { uint64_t Pkts; uint64_t Bytes; } counter_t;
Back to the top of ArtsPortMatrixAggregator
ArtsPortMatrixAggregator(const Arts & arts);
-------------------------------------------------------------------------
ArtsPortMatrixAggregator(const Arts & arts) .........................................................................
construct from an Arts object.
-------------------------------------------------------------------------
ArtsPortMatrixAggregator(const Arts & arts);
Back to the top of ArtsPortMatrixAggregator
void Add(const Arts & arts);
-------------------------------------------------------------------------
void Add(const Arts & arts) .........................................................................
Add the contents of an Arts object. The input Arts object must be a port matrix object. The effect here is to add any new port matrix entries and add to the counters for existing port matrix entries.
-------------------------------------------------------------------------
void Add(const Arts & arts);
Back to the top of ArtsPortMatrixAggregator
ArtsPortMatrix *ConvertToArtsPortMatrix() const;
-------------------------------------------------------------------------
ArtsPortMatrix *ConvertToArtsPortMatrix() const .........................................................................
Return an ArtsPortMatrix object (dynamically allocated) containing the aggregate data. The caller is responsible for calling delete() on the returned ArtsPortMatrix pointer.
-------------------------------------------------------------------------
ArtsPortMatrix *ConvertToArtsPortMatrix() const;
Back to the top of ArtsPortMatrixAggregator
uint16_t PickPort(const ArtsPortMatrixKeyValue & portmKey, const ArtsPortChooser & portChooser) const;
-------------------------------------------------------------------------
uint16_t PickPort(const ArtsPortMatrixKeyValue & portmKey, const ArtsPortChooser & portChooser) const .........................................................................
Given an ArtsPortMatrixKeyValue and an ArtsPortChooser, return the chosen port number. This returns the lower of the source and destination port numbers in ArtsPortMatrixKeyValue that qualifies the criteria in portChooser, or 0 if neither port meets the portChooser criteria.
-------------------------------------------------------------------------
uint16_t PickPort(const ArtsPortMatrixKeyValue & portmKey, const ArtsPortChooser & portChooser) const;
Back to the top of ArtsPortMatrixAggregator
ConvertToArtsSelectedPortTable(const ArtsPortChooser & portChooser) const;
No documentation available.
ConvertToArtsSelectedPortTable(const ArtsPortChooser & portChooser) const;
Back to the top of ArtsPortMatrixAggregator
Back to the top of ArtsPortMatrixAggregator
Back to the top of ArtsPortMatrixAggregator
Back to the top of ArtsPortMatrixAggregator
Back to the top of ArtsPortMatrixAggregator Back to the top of ArtsPortMatrixAggregator
Back to the top of ArtsPortMatrixAggregator
Back to the top of ArtsPortMatrixAggregator
vector<ArtsPortMatrixEntry> *TopSourcesByBytes(uint16_t numDests);
-------------------------------------------------------------------------
vector .........................................................................
Returns a vector of ArtsPortMatrixEntry containing the top numSources source port numbers and their corresponding pkt/byte counters. Note that instead of adding to our type space, we use the ArtsPortMatrixEntry class. In the returned vector, the Dst() for each ArtsPortMatrixEntry will always be 0 since we're adding up data to every destination port for each source port.
This member is what lets us easily pick out the top N source ports in an aggregate object, usually so we can then go back over the time-series data and create a stacked bar chart of bits/sec vs. time for each of the top N source ports.
-------------------------------------------------------------------------
vector<ArtsPortMatrixEntry> *TopSourcesByBytes(uint16_t numDests);
vector<ArtsPortMatrixEntry> *TopDestinationsByBytes(uint16_t numSources);
-------------------------------------------------------------------------
vector<ArtsPortMatrixEntry> * TopDestinationsByBytes(uint16_t numSources) .........................................................................
Returns a vector of ArtsPortMatrixEntry containing the top numDests destination port numbers and their corresponding pkt/byte counters. Note that instead of adding to our type space, we use the ArtsPortMatrixEntry class. In the returned vector, the Src() for each ArtsPortMatrixEntry will always be 0 since we're adding up traffic from every source port for each destination port.
This member is what lets us easily pick out the top N destination ports in an aggregate object, usually so we can then go back over the time-series data and create a stacked bar chart of bits/sec vs. time for each of the top N destination ports.
-------------------------------------------------------------------------
vector<ArtsPortMatrixEntry> *TopDestinationsByBytes(uint16_t numSources);
uint64_t TotalPkts() const;
-------------------------------------------------------------------------
uint64_t TotalPkts() const .........................................................................
Returns the sum of all packets in the ArtsPortMatrixAggregator object. This is the sum of all packets for all contained port matrix entries.
-------------------------------------------------------------------------
uint64_t TotalPkts() const;
uint64_t TotalBytes() const;
-------------------------------------------------------------------------
uint64_t TotalBytes() const .........................................................................
Returns the sum of all bytes in the ArtsPortMatrixAggregator object. This is the sum of all bytes for all contained port matrix entries.
-------------------------------------------------------------------------
uint64_t TotalBytes() const;
All Members
Ancestors
Class does not inherit from any other class.Descendants
Class is not inherited by any others.
Generated from source by the Cocoon utilities on Sat Oct 17 14:40:00 1998
.