(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.34 and 1.34.10.1

version 1.34, 2012/11/15 09:39:13 version 1.34.10.1, 2013/10/15 05:10:36
Line 61 
Line 61 
 response->endServer();\ response->endServer();\
  
 #define STAT_BYTESSENT \ #define STAT_BYTESSENT \
 Uint16 statType = (response->getType() >= CIM_GET_CLASS_RESPONSE_MESSAGE) ? \  
     response->getType() - CIM_GET_CLASS_RESPONSE_MESSAGE : \  
     response->getType() - 1; \  
 StatisticalData::current()->addToValue( \ StatisticalData::current()->addToValue( \
     message.size(), statType, StatisticalData::PEGASUS_STATDATA_BYTES_SENT);      message.size(), response->getType(), \
       StatisticalData::PEGASUS_STATDATA_BYTES_SENT);
  
 #define STAT_SERVEREND_ERROR \ #define STAT_SERVEREND_ERROR \
 response->endServer(); response->endServer();
Line 122 
Line 119 
 class PEGASUS_COMMON_LINKAGE StatisticalData class PEGASUS_COMMON_LINKAGE StatisticalData
 { {
 public: public:
       // Statistical data type is Request Type - 3;
     enum StatRequestType     enum StatRequestType
     {     {
         GET_CLASS,  //      UNKNOWN,
   //      OTHER,        // Other type not defined
   //      BATCHED,      // NOT used by Pegasus
           GET_CLASS,    // 0
         GET_INSTANCE,         GET_INSTANCE,
         INDICATION_DELIVERY,         INDICATION_DELIVERY,
         DELETE_CLASS,         DELETE_CLASS,
Line 134 
Line 135 
         MODIFY_CLASS,         MODIFY_CLASS,
         MODIFY_INSTANCE,         MODIFY_INSTANCE,
         ENUMERATE_CLASSES,         ENUMERATE_CLASSES,
         ENUMERATE_CLASS_NAMES,          ENUMERATE_CLASS_NAMES,  // 10
         ENUMERATE_INSTANCES,         ENUMERATE_INSTANCES,
         ENUMERATE_INSTANCE_NAMES,         ENUMERATE_INSTANCE_NAMES,
         EXEC_QUERY,         EXEC_QUERY,
Line 144 
Line 145 
         REFERENCE_NAMES,         REFERENCE_NAMES,
         GET_PROPERTY,         GET_PROPERTY,
         SET_PROPERTY,         SET_PROPERTY,
         GET_QUALIFIER,          GET_QUALIFIER,   // 20
         SET_QUALIFIER,         SET_QUALIFIER,
         DELETE_QUALIFIER,         DELETE_QUALIFIER,
         ENUMERATE_QUALIFIERS,          ENUMERATE_QUALIFIERS,  // 23
         INVOKE_METHOD,  // Types beyond the here are NOT part of the valueMap,Values defined
   // in CIM_CIMOMStatisticalData.mof and must be treated as Other in
   // the preperation of the instance output.
           INVOKE_METHOD,  // 24
         NUMBER_OF_TYPES         NUMBER_OF_TYPES
     };     };
  
Line 161 
Line 165 
     };     };
  
     static const Uint32 length;     static const Uint32 length;
     static StatisticalData* current();  
  
     StatisticalData();      /**
           Static function to get address of singleton StatisticalData
           instance. Creates a new object if none exists.
   
           @return StatisticalData*  Pointer to the object which
                   contains the table of accumulated statistics.
        */
       static StatisticalData* current();
  
     timeval timestamp;     timeval timestamp;
  
       // Statistics entries where statistics information is aggregated from
       // each operation.
     Sint64 numCalls[NUMBER_OF_TYPES];     Sint64 numCalls[NUMBER_OF_TYPES];
     Sint64 cimomTime[NUMBER_OF_TYPES];     Sint64 cimomTime[NUMBER_OF_TYPES];
     Sint64 providerTime[NUMBER_OF_TYPES];     Sint64 providerTime[NUMBER_OF_TYPES];
     Sint64 responseSize[NUMBER_OF_TYPES];     Sint64 responseSize[NUMBER_OF_TYPES];
     Sint64 requestSize[NUMBER_OF_TYPES];     Sint64 requestSize[NUMBER_OF_TYPES];
     Sint64 requSize;    //tempory storage for requestSize vlaue      Sint64 requSize;    //temporary storage for requestSize value
     Boolean copyGSD;     Boolean copyGSD;
     static StatisticalData* cur;  
     void addToValue(Sint64 value, Uint16 type, Uint32 t);      static StatisticalData* table;
     static String requestName[];  
       /** Add the value parameter to the current value for the
           messagetype msgType and the StatDataType
   
           @param value Sint64 type to add
           @param msgType Pegasus message type (may be either request
                          or response
           @param t StatDataType stat type to which value is added
        */
       void addToValue(Sint64 value, MessageType msgType, StatDataType t);
   
       /** Clear the StatisticalData table entries back to zero
        */
       void clear();
   
       /**
           Get the name for the statistics type
        */
       String getRequestName(Uint16 i);
   
       /** Set the copyGSD flag that controls whether statistics are to
           be gathered and displayed into the singleton object
           @param flag
        */
     void setCopyGSD(Boolean flag);     void setCopyGSD(Boolean flag);
  
 protected: protected:
     Mutex _mutex;     Mutex _mutex;
   
   private:
       StatisticalData();
       StatisticalData(const StatisticalData&);        // Prevent copy-construction
       StatisticalData& operator=(const StatisticalData&);
       static String requestName[];
 }; };
  
  


Legend:
Removed from v.1.34  
changed lines
  Added in v.1.34.10.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2