ArtsProtocolTable


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

Quick Index

DESCRIPTION

Class Summary

class ArtsProtocolTable : public Arts

{

public:
ArtsProtocolTable();
~ArtsProtocolTable();
uint16_t SampleInterval() const;
uint16_t SampleInterval(uint16_t sampleInterval);
uint64_t TotalPkts() const;
uint64_t TotalPkts(uint64_t totalPkts);
uint64_t TotalBytes() const;
uint64_t TotalBytes(uint64_t totalBytes);
vector<ArtsProtocolTableEntry> & ProtocolEntries() const;
protected:
}; // ArtsProtocolTable

Back to the top of ArtsProtocolTable


DESCRIPTION


---------------------------------------------------------------------------
class ArtsProtocolTable : public Arts
---------------------------------------------------------------------------
This class abstracts an ARTS protocol table object. This is used to hold packet and byte counters for a series of protocols (TCP, UDP, ICMP, et. al.). Typical use of this object is to track protocol usage in a network with software like cflowd.
---------------------------------------------------------------------------

Back to the top of ArtsProtocolTable


ArtsProtocolTable();


-------------------------------------------------------------------------
ArtsProtocolTable()
.........................................................................
constructor
-------------------------------------------------------------------------

  ArtsProtocolTable();

Back to the top of ArtsProtocolTable


~ArtsProtocolTable();


-------------------------------------------------------------------------
~ArtsProtocolTable()
.........................................................................
destructor
-------------------------------------------------------------------------

  ~ArtsProtocolTable();

Back to the top of ArtsProtocolTable


uint16_t SampleInterval() const;


-------------------------------------------------------------------------
uint16_t SampleInterval() const
.........................................................................
Returns the sampling interval used to collect the data. This is for the case where our counter data came from 1:N sampling of packet headers. This function returns the N.
-------------------------------------------------------------------------

  uint16_t SampleInterval() const;

Back to the top of ArtsProtocolTable


uint16_t SampleInterval(uint16_t sampleInterval);


-------------------------------------------------------------------------
uint16_t SampleInterval(uint16_t sampleInterval)
.........................................................................
Sets and returns the sampling interval used to collect the data. This is for the case where our counter data came from 1:N sampling of packet headers. This function returns the N.
-------------------------------------------------------------------------

  uint16_t SampleInterval(uint16_t sampleInterval);

Back to the top of ArtsProtocolTable


uint64_t TotalPkts() const;


-------------------------------------------------------------------------
uint64_t TotalPkts() const
.........................................................................
Returns the total number of packets in the table (sum of packets for all protocols).
-------------------------------------------------------------------------

  uint64_t TotalPkts() const;

Back to the top of ArtsProtocolTable


uint64_t TotalPkts(uint64_t totalPkts);


-------------------------------------------------------------------------
uint64_t TotalPkts(uint64_t totalPkts)
.........................................................................
Sets and returns the total number of packets in the table (sum of packets for all protocols).
-------------------------------------------------------------------------

  uint64_t TotalPkts(uint64_t totalPkts);

Back to the top of ArtsProtocolTable


uint64_t TotalBytes() const;


-------------------------------------------------------------------------
uint64_t TotalBytes() const
.........................................................................
Returns the total number of bytes in the table (sum of bytes for all protocols).
-------------------------------------------------------------------------

  uint64_t TotalBytes() const;

Back to the top of ArtsProtocolTable


uint64_t TotalBytes(uint64_t totalBytes);


-------------------------------------------------------------------------
uint64_t TotalBytes(uint64_t totalBytes)
.........................................................................
Sets and returns the total number of bytes in the table (sum of bytes for all protocols).
-------------------------------------------------------------------------

  uint64_t TotalBytes(uint64_t totalBytes);

Back to the top of ArtsProtocolTable


vector<ArtsProtocolTableEntry> & ProtocolEntries() const;


-------------------------------------------------------------------------
vector<ArtsProtocolTableEntry> & ProtocolEntries() const
.........................................................................
Returns a reference to the vector of protocol entries.
-------------------------------------------------------------------------

  vector<ArtsProtocolTableEntry> & ProtocolEntries() const;

Back to the top of ArtsProtocolTable


All Members

public:
void AddHostAttribute(ipv4addr_t hostAddr);
void AddCreationAttribute(uint32_t creationTime);
void AddPeriodAttribute(uint32_t startTime, uint32_t endTime);
void AddIfIndexAttribute(uint16_t ifIndex);
ArtsHeader & Header() const ;
vector<ArtsAttribute> & Attributes() const ;
ArtsIpPathData* IpPathData() const ;
ArtsAsMatrixData* AsMatrixData() const ;
ArtsNetMatrixData* NetMatrixData() const ;
ArtsPortTableData* PortTableData() const ;
ArtsSelectedPortTableData* SelectedPortTableData() const ;
ArtsPortMatrixData* PortMatrixData() const ;
ArtsProtocolTableData* ProtocolTableData() const ;
istream & read(istream & is);
int read(int fd);
ostream& write(ostream& os);
int write(int fd);
Arts & operator = (const Arts & arts);
friend ostream& operator << (ostream& os, const Arts & arts);
uint16_t SampleInterval() const;
uint16_t SampleInterval(uint16_t sampleInterval);
uint64_t TotalPkts() const;
uint64_t TotalPkts(uint64_t totalPkts);
uint64_t TotalBytes() const;
uint64_t TotalBytes(uint64_t totalBytes);
vector<ArtsProtocolTableEntry> & ProtocolEntries() const;
protected:
struct _data;
mutable ArtsHeader _header;
mutable vector<ArtsAttribute> _attributes;

Back to the top of ArtsProtocolTable


Ancestors

Inheritance chain for ArtsProtocolTable:

Back to the top of ArtsProtocolTable


Descendants

Class is not inherited by any others.

Back to the top of ArtsProtocolTable


Generated from source by the Cocoon utilities on Sat Oct 17 14:40:03 1998 .

Report problems to jkotula@unimax.com