man CallStat () - A call statistic class is used to manipulate call stats with a mutex lock to prevent errors during 'adjustment' periods. call statistic collection object.

NAME

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

SYNOPSIS



#include <bayonne.h>

Inherited by TrunkGroup.

Public Member Functions

int getCapacity (void)

Get current call capacity. long getStat (statitem_t item)

get a stat item. void getStat (unsigned long *save)

Get a stat record at once. 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

Static Protected Attributes

unsigned long upincoming

unsigned long upoutgoing

time_t uptime

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>

Member Function Documentation

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.

void CallStat::getStat (unsigned long * save)

Get a stat record at once.

Parameters: pointer to stats to copy.

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.

void CallStat::update (void)

Update stats, active to last.

Author

Generated automatically by Doxygen for Bayonne from the source code.