version 1.211, 2006/12/13 22:09:58
|
version 1.212, 2007/02/02 18:54:47
|
|
|
Thread::clearLanguages(); | Thread::clearLanguages(); |
} | } |
| |
|
try |
|
{ |
switch(message->getType()) | switch(message->getType()) |
{ | { |
case CIM_GET_INSTANCE_REQUEST_MESSAGE: | case CIM_GET_INSTANCE_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleGetInstanceRequest(message); | _handleGetInstanceRequest(message); |
} |
|
catch( ... ) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
case CIM_ENUMERATE_INSTANCES_REQUEST_MESSAGE: | case CIM_ENUMERATE_INSTANCES_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleEnumerateInstancesRequest(message); | _handleEnumerateInstancesRequest(message); |
} |
|
catch( ... ) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
case CIM_ENUMERATE_INSTANCE_NAMES_REQUEST_MESSAGE: | case CIM_ENUMERATE_INSTANCE_NAMES_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleEnumerateInstanceNamesRequest(message); | _handleEnumerateInstanceNamesRequest(message); |
} |
|
catch( ... ) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
case CIM_CREATE_INSTANCE_REQUEST_MESSAGE: | case CIM_CREATE_INSTANCE_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleCreateInstanceRequest(message); | _handleCreateInstanceRequest(message); |
} |
|
catch( ... ) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
case CIM_MODIFY_INSTANCE_REQUEST_MESSAGE: | case CIM_MODIFY_INSTANCE_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleModifyInstanceRequest(message); | _handleModifyInstanceRequest(message); |
} |
|
catch( ... ) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
case CIM_DELETE_INSTANCE_REQUEST_MESSAGE: | case CIM_DELETE_INSTANCE_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleDeleteInstanceRequest(message); | _handleDeleteInstanceRequest(message); |
} |
|
catch( ... ) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
case CIM_PROCESS_INDICATION_REQUEST_MESSAGE: | case CIM_PROCESS_INDICATION_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleProcessIndicationRequest(message); | _handleProcessIndicationRequest(message); |
} |
|
catch( ... ) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
case CIM_NOTIFY_PROVIDER_REGISTRATION_REQUEST_MESSAGE: | case CIM_NOTIFY_PROVIDER_REGISTRATION_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleNotifyProviderRegistrationRequest(message); | _handleNotifyProviderRegistrationRequest(message); |
} |
|
catch( ... ) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
case CIM_NOTIFY_PROVIDER_TERMINATION_REQUEST_MESSAGE: | case CIM_NOTIFY_PROVIDER_TERMINATION_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleNotifyProviderTerminationRequest(message); | _handleNotifyProviderTerminationRequest(message); |
} |
|
catch( ... ) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
case CIM_NOTIFY_PROVIDER_ENABLE_REQUEST_MESSAGE: | case CIM_NOTIFY_PROVIDER_ENABLE_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleNotifyProviderEnableRequest (message); | _handleNotifyProviderEnableRequest (message); |
} |
|
catch (...) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
case CIM_NOTIFY_PROVIDER_FAIL_REQUEST_MESSAGE: | case CIM_NOTIFY_PROVIDER_FAIL_REQUEST_MESSAGE: |
try |
|
{ |
|
_handleNotifyProviderFailRequest (message); | _handleNotifyProviderFailRequest (message); |
} |
|
catch (...) |
|
{ |
|
; |
|
} |
|
break; | break; |
| |
default: | default: |
|
|
// A message type not supported by the Indication Service | // A message type not supported by the Indication Service |
// Should not reach here | // Should not reach here |
// | // |
// << Mon Apr 29 16:29:10 2002 mdd >> |
|
PEG_TRACE_STRING(TRC_INDICATION_SERVICE, Tracer::LEVEL3, | PEG_TRACE_STRING(TRC_INDICATION_SERVICE, Tracer::LEVEL3, |
"IndicationService::handleEnqueue(msg *) rcv'd unsupported msg " |
"IndicationService::handleEnqueue(msg *) rcv'd unsupported " |
|
"msg " |
+ String(MessageTypeToString(message->getType()))); | + String(MessageTypeToString(message->getType()))); |
| |
// Note: not setting Content-Language in the response | // Note: not setting Content-Language in the response |
|
|
response->cimException = PEGASUS_CIM_EXCEPTION_L( | response->cimException = PEGASUS_CIM_EXCEPTION_L( |
CIM_ERR_NOT_SUPPORTED, | CIM_ERR_NOT_SUPPORTED, |
MessageLoaderParms( | MessageLoaderParms( |
"IndicationService.IndicationService.UNSUPPORTED_OPERATION", |
"IndicationService.IndicationService." |
"The requested operation is not supported or not recognized " |
"UNSUPPORTED_OPERATION", |
"by the indication service.")), |
"The requested operation is not supported or not " |
|
"recognized by the indication service.")), |
| |
_enqueueResponse (cimRequest, response); | _enqueueResponse (cimRequest, response); |
break; | break; |
} | } |
|
} |
|
catch(const Exception& e) |
|
{ |
|
PEG_TRACE_STRING(TRC_DISCARDED_DATA, Tracer::LEVEL2, |
|
"Exception caught in IndicationService::handleEnqueue(Message*): " + |
|
e.getMessage()); |
|
} |
|
catch(...) |
|
{ |
|
PEG_TRACE_STRING(TRC_DISCARDED_DATA, Tracer::LEVEL2, |
|
"Unknown error occurred in " |
|
"IndicationService::handleEnqueue(Message*)"); |
|
} |
| |
#ifdef PEGASUS_INDICATION_PERFINST | #ifdef PEGASUS_INDICATION_PERFINST |
stopWatch.stop(); | stopWatch.stop(); |