ArtsPortTable


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

Quick Index

DESCRIPTION

Class Summary

class ArtsPortTable : public Arts

{

public:
ArtsPortTable();
~ArtsPortTable();
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<ArtsPortTableEntry> & PortEntries() const;
protected:
}; // ArtsPortTable

Back to the top of ArtsPortTable


DESCRIPTION


---------------------------------------------------------------------------
class ArtsPortTable : public Arts
---------------------------------------------------------------------------
This class abstracts an ARTS port table object. This is used to hold packet and byte counters for a series of port numbers. Typical use of this object is to track application usage in a network with software like cflowd.
---------------------------------------------------------------------------

Back to the top of ArtsPortTable


ArtsPortTable();


-------------------------------------------------------------------------
ArtsPortTable()
.........................................................................
constructor
-------------------------------------------------------------------------

  ArtsPortTable();

Back to the top of ArtsPortTable


~ArtsPortTable();


-------------------------------------------------------------------------
~ArtsPortTable()
.........................................................................
destructor
-------------------------------------------------------------------------

  ~ArtsPortTable();

Back to the top of ArtsPortTable


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 ArtsPortTable


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 ArtsPortTable


uint64_t TotalPkts() const;


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

  uint64_t TotalPkts() const;

Back to the top of ArtsPortTable


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 ports).
-------------------------------------------------------------------------

  uint64_t TotalPkts(uint64_t totalPkts);

Back to the top of ArtsPortTable


uint64_t TotalBytes() const;


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

  uint64_t TotalBytes() const;

Back to the top of ArtsPortTable


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 ports).
-------------------------------------------------------------------------

  uint64_t TotalBytes(uint64_t totalBytes);

Back to the top of ArtsPortTable


vector<ArtsPortTableEntry> & PortEntries() const;


-------------------------------------------------------------------------
vector<ArtsPortTableEntry> & PortEntries() const
.........................................................................
Returns a reference to the vector of port entries.
-------------------------------------------------------------------------

  vector<ArtsPortTableEntry> & PortEntries() const;

Back to the top of ArtsPortTable


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<ArtsPortTableEntry> & PortEntries() const;
protected:
struct _data;
mutable ArtsHeader _header;
mutable vector<ArtsAttribute> _attributes;

Back to the top of ArtsPortTable


Ancestors

Inheritance chain for ArtsPortTable:

Back to the top of ArtsPortTable


Descendants

Class is not inherited by any others.

Back to the top of ArtsPortTable


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

Report problems to jkotula@unimax.com