reSIProcate/stack  9694
Public Types | Public Member Functions | Public Attributes
resip::StatisticsMessage::Payload Struct Reference

#include <StatisticsMessage.hxx>

Inheritance diagram for resip::StatisticsMessage::Payload:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { MaxCode = 700 }

Public Member Functions

 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 ()
Payloadoperator= (const Payload &payload)

Public Attributes

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

Definition at line 24 of file StatisticsMessage.hxx.


Member Enumeration Documentation

anonymous enum
Enumerator:
MaxCode 

Definition at line 26 of file StatisticsMessage.hxx.

{MaxCode = 700};

Constructor & Destructor Documentation

StatisticsMessage::Payload::Payload ( )

Definition at line 108 of file StatisticsMessage.cxx.

{
   zeroOut();
}

Member Function Documentation

StatisticsMessage::Payload & StatisticsMessage::Payload::operator= ( const Payload payload)

Definition at line 143 of file StatisticsMessage.cxx.

References activeClientTransactions, activeServerTransactions, activeTimers, openTcpConnections, pendingDnsQueries, requestsReceived, requestsReceivedByMethod, requestsRetransmitted, requestsRetransmittedByMethod, requestsSent, requestsSentByMethod, responsesByCode, responsesReceived, responsesReceivedByMethod, responsesReceivedByMethodByCode, responsesRetransmitted, responsesRetransmittedByMethod, responsesRetransmittedByMethodByCode, responsesSent, responsesSentByMethod, responsesSentByMethodByCode, transactionFifoSize, transportFifoSizeSum, and tuFifoSize.

Referenced by resip::StatisticsMessage::AtomicPayload::loadIn().

{
   if (&rhs != this)
   {
      transportFifoSizeSum = rhs.transportFifoSizeSum;
      tuFifoSize = rhs.tuFifoSize;
      activeTimers = rhs.activeTimers;
      transactionFifoSize = rhs.transactionFifoSize;

      openTcpConnections = rhs.openTcpConnections;
      activeClientTransactions = rhs.activeClientTransactions;
      activeServerTransactions = rhs.activeServerTransactions;
      pendingDnsQueries = rhs.pendingDnsQueries;

      requestsSent = rhs.requestsSent;
      responsesSent = rhs.responsesSent;
      requestsRetransmitted = rhs.requestsRetransmitted;
      responsesRetransmitted = rhs.responsesRetransmitted;
      requestsReceived = rhs.requestsReceived;
      responsesReceived = rhs.responsesReceived;

      memcpy(responsesByCode, rhs.responsesByCode, sizeof(responsesByCode));
      memcpy(requestsSentByMethod, rhs.requestsSentByMethod, sizeof(requestsSentByMethod));
      memcpy(requestsRetransmittedByMethod, rhs.requestsRetransmittedByMethod, sizeof(requestsRetransmittedByMethod));
      memcpy(requestsReceivedByMethod, rhs.requestsReceivedByMethod, sizeof(requestsReceivedByMethod));
      memcpy(responsesSentByMethod, rhs.responsesSentByMethod, sizeof(responsesSentByMethod));
      memcpy(responsesRetransmittedByMethod, rhs.responsesRetransmittedByMethod, sizeof(responsesRetransmittedByMethod));
      memcpy(responsesReceivedByMethod, rhs.responsesReceivedByMethod, sizeof(responsesReceivedByMethod));
      memcpy(responsesSentByMethodByCode, rhs.responsesSentByMethodByCode, sizeof(responsesSentByMethodByCode));
      memcpy(responsesRetransmittedByMethodByCode, rhs.responsesRetransmittedByMethodByCode, sizeof(responsesRetransmittedByMethodByCode));
      memcpy(responsesReceivedByMethodByCode, rhs.responsesReceivedByMethodByCode, sizeof(responsesReceivedByMethodByCode));
   }

   return *this;
}
unsigned int StatisticsMessage::Payload::sum2xxIn ( MethodTypes  method) const

Definition at line 45 of file StatisticsMessage.cxx.

References responsesReceivedByMethodByCode.

{
   unsigned int ret = 0;
   for (int code = 200; code < 300; ++code)
   {
      ret += responsesReceivedByMethodByCode[method][code];
   }

   return ret;
}
unsigned int StatisticsMessage::Payload::sum2xxOut ( MethodTypes  method) const

Definition at line 57 of file StatisticsMessage.cxx.

{
   unsigned int ret = 0;
   for (int code = 200; code < 300; ++code)
   {
      ret += responsesSentByMethodByCode[method][code];
   }

   return ret;
}
unsigned int StatisticsMessage::Payload::sumErrIn ( MethodTypes  method) const

Definition at line 69 of file StatisticsMessage.cxx.

{
   unsigned int ret = 0;
   for (int code = 300; code < MaxCode; ++code)
   {
      ret += responsesReceivedByMethodByCode[method][code];
   }

   return ret;
}
unsigned int StatisticsMessage::Payload::sumErrOut ( MethodTypes  method) const

Definition at line 81 of file StatisticsMessage.cxx.

{
   unsigned int ret = 0;
   for (int code = 300; code < MaxCode; ++code)
   {
      ret += responsesSentByMethodByCode[method][code];
   }

   return ret;
}
void StatisticsMessage::Payload::zeroOut ( )

Member Data Documentation

Definition at line 35 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::poll().

Definition at line 36 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::poll().

Definition at line 33 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::poll().

Definition at line 34 of file StatisticsMessage.hxx.

Referenced by operator=().

Definition at line 37 of file StatisticsMessage.hxx.

Referenced by operator=().

Definition at line 43 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::received().

Definition at line 50 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::received().

Definition at line 41 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::retransmitted().

Definition at line 49 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::retransmitted().

Definition at line 39 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::sent().

Definition at line 48 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::sent().

Definition at line 46 of file StatisticsMessage.hxx.

Referenced by operator=().

Definition at line 44 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::received().

Definition at line 53 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::received().

Definition at line 57 of file StatisticsMessage.hxx.

Referenced by operator=(), resip::StatisticsManager::received(), and sum2xxIn().

Definition at line 42 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::retransmitted().

Definition at line 52 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::retransmitted().

Definition at line 56 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::retransmitted().

Definition at line 40 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::sent().

Definition at line 51 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::sent().

Definition at line 55 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::sent().

Definition at line 32 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::poll().

Definition at line 31 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::poll().

Definition at line 30 of file StatisticsMessage.hxx.

Referenced by operator=(), and resip::StatisticsManager::poll().


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