version 1.22, 2008/12/02 09:00:52
|
version 1.22.8.4, 2013/09/29 19:09:50
|
|
|
"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 |
}; | }; |
| |
|
|
} | } |
} | } |
| |
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, |