Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CallStat Class Reference

A call statistic class is used to manipulate call stats with a mutex lock to prevent errors during "adjustment" periods. call statistic collection object. More...

#include <bayonne.h>

Inheritance diagram for CallStat:

Mutex TrunkGroup List of all members.

Public Methods

 CallStat ()
int getCapacity (void)
 Get current call capacity. More...

long getStat (statitem_t item)
 get a stat item. More...

void incIncoming (void)
 inc active incoming call count.

void decIncoming (void)
 dec active incoming call count.

void incOutgoing (void)
 inc active outging call count.

void decOutgoing (void)
 dec active outgoing call count.

void Update (void)
 Update stats, active to last.


Protected Attributes

int capacity
struct {
   int   incoming
   int   outgoing
active
struct {
   int   incoming
   int   outgoing
max
struct {
   int   incoming
   int   outgoing
lastmax
struct {
   long   incoming
   long   outgoing
total
struct {
   long   incoming
   long   outgoing
lasttotal

Detailed Description

A call statistic class is used to manipulate call stats with a mutex lock to prevent errors during "adjustment" periods. call statistic collection object.

Author(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

CallStat::CallStat ( )
 


Member Function Documentation

void CallStat::Update ( void )
 

Update stats, active to last.

void CallStat::decIncoming ( void )
 

dec active incoming call count.

void CallStat::decOutgoing ( void )
 

dec active outgoing call count.

int CallStat::getCapacity ( void ) [inline]
 

Get current call capacity.

Returns:
capacity of this stat item.

long CallStat::getStat ( statitem_t item )
 

get a stat item.

Parameters:
statitem   to request.
Returns:
item value.

void CallStat::incIncoming ( void )
 

inc active incoming call count.

void CallStat::incOutgoing ( void )
 

inc active outging call count.


Member Data Documentation

struct { ... } CallStat::active [protected]
 

int CallStat::capacity [protected]
 

long CallStat::incoming [protected]
 

int CallStat::incoming [protected]
 

struct { ... } CallStat::lastmax [protected]
 

struct { ... } CallStat::lasttotal [protected]
 

struct { ... } CallStat::max [protected]
 

long CallStat::outgoing [protected]
 

int CallStat::outgoing [protected]
 

struct { ... } CallStat::total [protected]
 


The documentation for this class was generated from the following file:
Generated at Fri Dec 15 12:35:19 2000 for Bayonne by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000