version 1.19, 2006/01/30 16:18:16
|
version 1.20, 2006/02/17 19:20:12
|
|
|
PEG_TRACE_STRING(TRC_PROVIDERAGENT, Tracer::LEVEL2, | PEG_TRACE_STRING(TRC_PROVIDERAGENT, Tracer::LEVEL2, |
"Processed the agent initialization message."); | "Processed the agent initialization message."); |
| |
// Do not write a response for this request |
// Notify the cimserver that the provider agent is initialized. |
|
Uint32 messageLength = 0; |
|
_pipeToServer->writeBuffer((const char*)&messageLength, sizeof(Uint32)); |
} | } |
else if (request->getType() == CIM_NOTIFY_CONFIG_CHANGE_REQUEST_MESSAGE) | else if (request->getType() == CIM_NOTIFY_CONFIG_CHANGE_REQUEST_MESSAGE) |
{ | { |
|
|
| |
// If StopAllProviders, terminate the agent process. | // If StopAllProviders, terminate the agent process. |
// If DisableModule not successful, leave agent process running. | // If DisableModule not successful, leave agent process running. |
if ((respMsg->cimException.getCode() == CIM_ERR_SUCCESS) || |
if ((request->getType() == CIM_STOP_ALL_PROVIDERS_REQUEST_MESSAGE) || |
(request->getType() == CIM_STOP_ALL_PROVIDERS_REQUEST_MESSAGE)) |
((request->getType() == CIM_DISABLE_MODULE_REQUEST_MESSAGE) && |
|
(!dynamic_cast<CIMDisableModuleRequestMessage*>(request)-> |
|
disableProviderOnly) && |
|
(respMsg->cimException.getCode() == CIM_ERR_SUCCESS))) |
{ | { |
// Operation is successful. End the agent process. | // Operation is successful. End the agent process. |
_terminating = true; | _terminating = true; |