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. More...

void decIncoming (void)
 dec active incoming call count. More...

void incOutgoing (void)
 inc active outging call count. More...

void decOutgoing (void)
 dec active outgoing call count. More...

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


Protected Attributes

int capacity
CallStat:: { ... }  active
CallStat:: { ... }  max
CallStat:: { ... }  lastmax
CallStat:: { ... }  total
CallStat:: { ... }  lasttotal
int incoming
int outgoing
long incoming
long outgoing

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:
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 Wed Nov 21 12:17:03 2001 for Bayonne by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001