reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::StatisticsManager Class Reference

Keeps track of various statistics on the stack's operation, and periodically issues a StatisticsMessage to the TransactionUser (or, if the ExternalStatsHandler is set, it will be sent there). More...

#include <StatisticsManager.hxx>

Inheritance diagram for resip::StatisticsManager:
[legend]

Public Types

enum  Measurement {
  TransportFifoSize , TUFifoSize , ActiveTimers , OpenTcpConnections ,
  ActiveClientTransactions , ActiveServerTransactions , PendingDnsQueries , StatsMemUsed
}
 
- Public Types inherited from resip::StatisticsMessage::Payload
enum  { MaxCode = 700 }
 

Public Member Functions

 StatisticsManager (SipStack &stack, unsigned long intervalSecs=60)
 
 ~StatisticsManager ()
 
void process ()
 
void setInterval (unsigned long intvSecs)
 
void setExternalStatsHandler (ExternalStatsHandler *handler)
 Allows the application to set the ExternalStatsHandler for this StatisticsManager.
 
- Public Member Functions inherited from resip::StatisticsMessage::Payload
 Payload ()
 
unsigned int sum2xxIn (MethodTypes method) const
 
unsigned int sumErrIn (MethodTypes method) const
 
unsigned int sum2xxOut (MethodTypes method) const
 
unsigned int sumErrOut (MethodTypes method) const
 
void zeroOut ()
 
Payload & operator= (const Payload &payload)
 

Friends

class TransactionState
 

Additional Inherited Members

- Public Attributes inherited from resip::StatisticsMessage::Payload
unsigned int tuFifoSize
 
unsigned int transportFifoSizeSum
 
unsigned int transactionFifoSize
 
unsigned int activeTimers
 
unsigned int openTcpConnections
 
unsigned int activeClientTransactions
 
unsigned int activeServerTransactions
 
unsigned int pendingDnsQueries
 
unsigned int requestsSent
 
unsigned int responsesSent
 
unsigned int requestsRetransmitted
 
unsigned int responsesRetransmitted
 
unsigned int requestsReceived
 
unsigned int responsesReceived
 
unsigned int responsesByCode [MaxCode]
 
unsigned int requestsSentByMethod [MAX_METHODS]
 
unsigned int requestsRetransmittedByMethod [MAX_METHODS]
 
unsigned int requestsReceivedByMethod [MAX_METHODS]
 
unsigned int responsesSentByMethod [MAX_METHODS]
 
unsigned int responsesRetransmittedByMethod [MAX_METHODS]
 
unsigned int responsesReceivedByMethod [MAX_METHODS]
 
unsigned int responsesSentByMethodByCode [MAX_METHODS][MaxCode]
 
unsigned int responsesRetransmittedByMethodByCode [MAX_METHODS][MaxCode]
 
unsigned int responsesReceivedByMethodByCode [MAX_METHODS][MaxCode]
 

Detailed Description

Keeps track of various statistics on the stack's operation, and periodically issues a StatisticsMessage to the TransactionUser (or, if the ExternalStatsHandler is set, it will be sent there).

Definition at line 20 of file StatisticsManager.hxx.

Member Enumeration Documentation

◆ Measurement

Enumerator
TransportFifoSize 
TUFifoSize 
ActiveTimers 
OpenTcpConnections 
ActiveClientTransactions 
ActiveServerTransactions 
PendingDnsQueries 
StatsMemUsed 

Definition at line 24 of file StatisticsManager.hxx.

Constructor & Destructor Documentation

◆ StatisticsManager()

StatisticsManager::StatisticsManager ( SipStack &  stack,
unsigned long  intervalSecs = 60 
)

Definition at line 16 of file StatisticsManager.cxx.

◆ ~StatisticsManager()

StatisticsManager::~StatisticsManager ( )

Definition at line 25 of file StatisticsManager.cxx.

Member Function Documentation

◆ process()

void StatisticsManager::process ( )

Definition at line 85 of file StatisticsManager.cxx.

◆ setInterval()

void StatisticsManager::setInterval ( unsigned long  intvSecs)

Definition at line 32 of file StatisticsManager.cxx.

Friends And Related Symbol Documentation

◆ TransactionState

friend class TransactionState
friend

Definition at line 54 of file StatisticsManager.hxx.


The documentation for this class was generated from the following files: