(file) Return to StatisticalData.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/StatisticalData.h between version 1.29 and 1.30

version 1.29, 2006/09/08 17:25:01 version 1.30, 2006/11/10 18:14:58
Line 63 
Line 63 
  
 #define STAT_BYTESSENT \ #define STAT_BYTESSENT \
 Uint16 statType = (response->getType() >= CIM_GET_CLASS_RESPONSE_MESSAGE)? \ Uint16 statType = (response->getType() >= CIM_GET_CLASS_RESPONSE_MESSAGE)? \
   response->getType() - CIM_GET_CLASS_RESPONSE_MESSAGE:response->getType() - 1;\      response->getType() - CIM_GET_CLASS_RESPONSE_MESSAGE : \
 StatisticalData::current()->addToValue(message.size(), statType, StatisticalData::PEGASUS_STATDATA_BYTES_SENT);      response->getType() - 1; \
   StatisticalData::current()->addToValue( \
       message.size(), statType, StatisticalData::PEGASUS_STATDATA_BYTES_SENT);
  
  
 #define STAT_SERVEREND_ERROR \ #define STAT_SERVEREND_ERROR \
 response->endServer(); response->endServer();
  
 /*the request size value must be stored (requSize) and passed to the StatisticalData object at the  /*
  end of processing other wise it will be the ONLY vlaue that is passed to the client which reports      The request size value must be stored (requSize) and passed to the
  the current state of the object, not the pevious (one command ago) state */      StatisticalData object at the end of processing other wise it will be
       the ONLY vlaue that is passed to the client which reports the current
       state of the object, not the pevious (one command ago) state
   */
  
 #define STAT_BYTESREAD \ #define STAT_BYTESREAD \
 Uint16 statType = (request->getType() >= CIM_GET_CLASS_RESPONSE_MESSAGE)? \ Uint16 statType = (request->getType() >= CIM_GET_CLASS_RESPONSE_MESSAGE)? \
     request->getType() - CIM_GET_CLASS_RESPONSE_MESSAGE: request->getType()-1;\      request->getType() - CIM_GET_CLASS_RESPONSE_MESSAGE : \
       request->getType() - 1; \
 StatisticalData::current()->requSize = contentLength; StatisticalData::current()->requSize = contentLength;
  
 #else #else
Line 121 
Line 126 
 class PEGASUS_COMMON_LINKAGE StatisticalData class PEGASUS_COMMON_LINKAGE StatisticalData
 { {
    public:    public:
       enum StatRequestType{      enum StatRequestType
       {
          GET_CLASS,          GET_CLASS,
          GET_INSTANCE,          GET_INSTANCE,
          INDICATION_DELIVERY,          INDICATION_DELIVERY,
Line 150 
Line 156 
          NUMBER_OF_TYPES          NUMBER_OF_TYPES
       };       };
  
       enum StatDataType{      enum StatDataType
       {
          PEGASUS_STATDATA_SERVER,          PEGASUS_STATDATA_SERVER,
          PEGASUS_STATDATA_PROVIDER,          PEGASUS_STATDATA_PROVIDER,
          PEGASUS_STATDATA_BYTES_SENT,          PEGASUS_STATDATA_BYTES_SENT,
Line 171 
Line 178 
       Sint64 requestSize[NUMBER_OF_TYPES];       Sint64 requestSize[NUMBER_OF_TYPES];
         Sint64 requSize;        //tempory storage for requestSize vlaue         Sint64 requSize;        //tempory storage for requestSize vlaue
         Boolean copyGSD;         Boolean copyGSD;
 //      Uint64 totalServTime;  
       static StatisticalData* cur;       static StatisticalData* cur;
       void addToValue(Sint64 value, Uint16 type, Uint32 t);       void addToValue(Sint64 value, Uint16 type, Uint32 t);
       static String requestName[];       static String requestName[];


Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2