ArtsAsMatrixAggregator


[ libArts | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class ArtsAsMatrixAggregator

{

public:
typedef struct counter_t;
ArtsAsMatrixAggregator(const Arts & arts);
void Add(const Arts & arts);
ArtsAsMatrix *ConvertToArtsAsMatrix() const;
vector<ArtsAsMatrixEntry> *TopSourcesByBytes(uint16_t numDests);
vector<ArtsAsMatrixEntry> *TopDestinationsByBytes(uint16_t numSources);
uint64_t TotalPkts() const;
uint64_t TotalBytes() const;
protected:
}; // ArtsAsMatrixAggregator

Back to the top of ArtsAsMatrixAggregator


DESCRIPTION


---------------------------------------------------------------------------
class ArtsAsMatrixAggregator
---------------------------------------------------------------------------
This class is used to aggregate AS matrix objects in the time domain.
---------------------------------------------------------------------------

Back to the top of ArtsAsMatrixAggregator


typedef struct counter_t;

No documentation available.

  typedef struct {
    uint64_t  Pkts;
    uint64_t  Bytes;
  } counter_t;

Back to the top of ArtsAsMatrixAggregator


ArtsAsMatrixAggregator(const Arts & arts);


-------------------------------------------------------------------------
ArtsAsMatrixAggregator(const Arts & arts)
.........................................................................
construct from an Arts object.
-------------------------------------------------------------------------

  ArtsAsMatrixAggregator(const Arts & arts);

Back to the top of ArtsAsMatrixAggregator


void Add(const Arts & arts);


-------------------------------------------------------------------------
void Add(const Arts & arts)
.........................................................................
Add the contents of an Arts object. The input Arts object must be an AS matrix object. The effect here is to add any new AS matrix entries and add to the counters for existing AS matrix entries.
-------------------------------------------------------------------------

  void Add(const Arts & arts);

Back to the top of ArtsAsMatrixAggregator


ArtsAsMatrix *ConvertToArtsAsMatrix() const;


-------------------------------------------------------------------------
ArtsAsMatrix *ConvertToArtsAsMatrix() const
.........................................................................
Return an ArtsAsMatrix object (dynamically allocated) containing the aggregate data. The caller is responsible for calling delete() on the returned ArtsAsMatrix pointer.
-------------------------------------------------------------------------

  ArtsAsMatrix *ConvertToArtsAsMatrix() const;

Back to the top of ArtsAsMatrixAggregator


vector<ArtsAsMatrixEntry> *TopSourcesByBytes(uint16_t numDests);


-------------------------------------------------------------------------
vectoruint16_t,counter_t> > * TopSourcesByBytes(uint16_t numSources)
.........................................................................
Returns a vector of ArtsAsMatrixEntry containing the top numSources source AS numbers and their corresponding pkt/byte counters. Note that instead of adding to our type space, we use the ArtsAsMatrixEntry class. In the returned vector, the Dst() for each ArtsAsMatrixEntry will always be 0 since we're adding up data to every destination AS for each source AS.

This member is what lets us easily pick out the top N source ASes 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 ASes.
-------------------------------------------------------------------------

  vector<ArtsAsMatrixEntry> *TopSourcesByBytes(uint16_t numDests);

Back to the top of ArtsAsMatrixAggregator


vector<ArtsAsMatrixEntry> *TopDestinationsByBytes(uint16_t numSources);


-------------------------------------------------------------------------
vector<ArtsAsMatrixEntry> * TopDestinationsByBytes(uint16_t numSources)
.........................................................................
Returns a vector of ArtsAsMatrixEntry containing the top numDests destination AS numbers and their corresponding pkt/byte counters. Note that instead of adding to our type space, we use the ArtsAsMatrixEntry class. In the returned vector, the Src() for each ArtsAsMatrixEntry will always be 0 since we're adding up traffic from every source AS for each destination AS.

This member is what lets us easily pick out the top N destination ASes 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 ASes.
-------------------------------------------------------------------------

  vector<ArtsAsMatrixEntry> *TopDestinationsByBytes(uint16_t numSources);

Back to the top of ArtsAsMatrixAggregator


uint64_t TotalPkts() const;


-------------------------------------------------------------------------
uint64_t TotalPkts() const
.........................................................................
Returns the sum of all packets in the ArtsAsMatrixAggregator object. This is the sum of all packets for all contained AS matrix entries.
-------------------------------------------------------------------------

  uint64_t TotalPkts() const;

Back to the top of ArtsAsMatrixAggregator


uint64_t TotalBytes() const;


-------------------------------------------------------------------------
uint64_t TotalBytes() const
.........................................................................
Returns the sum of all bytes in the ArtsAsMatrixAggregator object. This is the sum of all bytes for all contained AS matrix entries.
-------------------------------------------------------------------------

  uint64_t TotalBytes() const;

Back to the top of ArtsAsMatrixAggregator


All Members

public:
typedef struct counter_t;
void Add(const Arts & arts);
ArtsAsMatrix *ConvertToArtsAsMatrix() const;
vector<ArtsAsMatrixEntry> *TopSourcesByBytes(uint16_t numDests);
vector<ArtsAsMatrixEntry> *TopDestinationsByBytes(uint16_t numSources);
uint64_t TotalPkts() const;
uint64_t TotalBytes() const;
protected:

Back to the top of ArtsAsMatrixAggregator


Ancestors

Class does not inherit from any other class.

Back to the top of ArtsAsMatrixAggregator


Descendants

Class is not inherited by any others.

Back to the top of ArtsAsMatrixAggregator


Generated from source by the Cocoon utilities on Sat Oct 17 14:39:51 1998 .

Report problems to jkotula@unimax.com