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

Diff for /pegasus/src/Pegasus/Common/StatisticalData.cpp between version 1.22 and 1.22.8.4

version 1.22, 2008/12/02 09:00:52 version 1.22.8.4, 2013/09/29 19:09:50
Line 72 
Line 72 
   "SetQualifier",                   //    22          23   "SetQualifier",                   //    22          23
   "DeleteQualifier",                //    23          24   "DeleteQualifier",                //    23          24
   "EnumerateQualifiers",            //    24          25   "EnumerateQualifiers",            //    24          25
   //EXP_PULL_BEGIN
   //// TODO these are not defined in CIM_StatisticalData class
     "OpenEnumerateInstances",         //    71
     "OpenEnumerateInstancePaths",     //    72
     "OpenReferences",                 //    73
     "OpenReferenceNames",             //    74
     "OpenAssociators",                //    75
     "OpenAssociatorPaths",            //    76
     "PullInstancesWithPath",          //    77
     "PullInstancePaths",              //    77
     "CloseEnumeration" ,              //    79
   //EXP_PULL_END
   "InvokeMethod"                    //    25          Not Present   "InvokeMethod"                    //    25          Not Present
 }; };
  
Line 102 
Line 114 
     }     }
 } }
  
 void StatisticalData::addToValue(Sint64 value, Uint16 type, Uint32 t)  void StatisticalData::addToValue(Sint64 value, MessageType msgType, Uint32 t)
 { {
       // Map MessageType to statistic type
       Uint16 type;
       if ((msgType) >= CIM_OPEN_ENUMERATE_INSTANCES_RESPONSE_MESSAGE)
       {
           type = msgType - CIM_SET_QUALIFIER_RESPONSE_MESSAGE;
       }
       else if (msgType >= CIM_ENUMERATE_CLASSES_RESPONSE_MESSAGE)
       {
          type = msgType - CIM_OPEN_ENUMERATE_INSTANCES_REQUEST_MESSAGE;
       }
       else if (msgType >= CIM_GET_CLASS_RESPONSE_MESSAGE)
       {
           type = msgType - CIM_GET_CLASS_RESPONSE_MESSAGE;
       }
       else
       {
           type = msgType - 1;
       }
   
       cout << "StatisticalData::addToValue " << MessageTypeToString(msgType)
            << " # " << msgType << " stat type " << type << endl;
       // Test if valid statistic type
     if (type >= NUMBER_OF_TYPES)     if (type >= NUMBER_OF_TYPES)
     {     {
          PEG_TRACE((TRC_DISCARDED_DATA, Tracer::LEVEL2,          PEG_TRACE((TRC_DISCARDED_DATA, Tracer::LEVEL2,


Legend:
Removed from v.1.22  
changed lines
  Added in v.1.22.8.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2