version 1.66, 2006/09/08 17:25:01
|
version 1.67, 2006/11/10 18:14:58
|
|
|
return _MESSAGE_TYPE_STRINGS[messageType - 1]; | return _MESSAGE_TYPE_STRINGS[messageType - 1]; |
if(messageType == 0 ) | if(messageType == 0 ) |
return "HEARTBEAT/REPLY" ; | return "HEARTBEAT/REPLY" ; |
sprintf (s, "Unknown message type ( %d ) ( 0x%04X )", messageType, messageType); |
sprintf(s, "Unknown message type ( %d ) ( 0x%04X )", |
|
messageType, messageType); |
return s; | return s; |
} | } |
| |
| |
CIMOperationType Message::convertMessageTypetoCIMOpType(Uint32 type) | CIMOperationType Message::convertMessageTypetoCIMOpType(Uint32 type) |
{ | { |
|
|
CIMOperationType enum_type = CIMOPTYPE_GET_CLASS; | CIMOperationType enum_type = CIMOPTYPE_GET_CLASS; |
switch (type) | switch (type) |
{ | { |
|
|
case CIM_INVOKE_METHOD_RESPONSE_MESSAGE: | case CIM_INVOKE_METHOD_RESPONSE_MESSAGE: |
enum_type = CIMOPTYPE_INVOKE_METHOD; | enum_type = CIMOPTYPE_INVOKE_METHOD; |
break; | break; |
|
|
default: | default: |
// exicution should never get to this point | // exicution should never get to this point |
PEGASUS_ASSERT(false); | PEGASUS_ASSERT(false); |
|
|
} | } |
return enum_type; | return enum_type; |
} | } |
|
|
| |
/*This adds the number of bytes read to the total.the request size | /*This adds the number of bytes read to the total.the request size |
value must be stored (requSize) and passed to the StatisticalData | value must be stored (requSize) and passed to the StatisticalData |
object at the end of processing other wise it will be the ONLY vlaue |
object at the end of processingm otherwise it will be the ONLY value |
that is passed to the client which reports the current state of the | that is passed to the client which reports the current state of the |
object, not the pevious (one command ago) state */ |
object, not the previous (one command ago) state */ |
| |
StatisticalData::current()->addToValue(StatisticalData::current()->requSize, |
StatisticalData::current()->addToValue( |
statType, StatisticalData::PEGASUS_STATDATA_BYTES_READ); |
StatisticalData::current()->requSize, |
|
statType, |
|
StatisticalData::PEGASUS_STATDATA_BYTES_READ); |
} | } |
#endif | #endif |
| |