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

Diff for /pegasus/src/Pegasus/ControlProviders/ProviderRegistrationProvider/ProviderRegistrationProvider.cpp between version 1.58 and 1.64

version 1.58, 2003/11/04 19:00:59 version 1.64, 2004/04/16 22:17:41
Line 142 
Line 142 
  
     try     try
     {     {
         instance = _providerRegistrationManager->getInstance(instanceReference);          instance = _providerRegistrationManager->getInstance(instanceReference,
                                                                includeQualifiers,
                                                                includeClassOrigin,
                                                                propertyList);
     }     }
     catch(CIMException& e)     catch(CIMException& e)
     {     {
Line 189 
Line 192 
  
     try     try
     {     {
         enumInstances = _providerRegistrationManager->enumerateInstances(classReference);          enumInstances =
               _providerRegistrationManager->enumerateInstances(classReference,
                                                                includeQualifiers,
                                                                includeClassOrigin,
                                                                propertyList);
     }     }
     catch(CIMException& e)     catch(CIMException& e)
     {     {
Line 329 
Line 336 
     try     try
     {     {
         _providerRegistrationManager->modifyInstance(instanceReference,         _providerRegistrationManager->modifyInstance(instanceReference,
             instanceObject, includeQualifiers, propertyArray);                                                       instanceObject,
                                                        includeQualifiers,
                                                        propertyArray);
     }     }
     catch(CIMException& e)     catch(CIMException& e)
     {     {
Line 448 
Line 457 
         instanceObject.getProperty(ifcTypeIndex).getValue().         instanceObject.getProperty(ifcTypeIndex).getValue().
             get(ifcTypeString);             get(ifcTypeString);
  
         if(ifcTypeString != "C++Default" && ifcTypeString != "CMPI" )          if (ifcTypeString != "C++Default"
   #ifdef ENABLE_CMPI_PROVIDER_MANAGER
               && ifcTypeString != "CMPI"
   #endif
                   )
         {         {
                 //l10n 485                 //l10n 485
             //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED,             //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED,
Line 472 
Line 485 
         String ifcVersionString;         String ifcVersionString;
         instanceObject.getProperty(ifcVersionIndex).getValue().         instanceObject.getProperty(ifcVersionIndex).getValue().
             get(ifcVersionString);             get(ifcVersionString);
         if ((ifcVersionString != "2.1.0") &&          if (
             (ifcVersionString != "2.2.0") &&  #ifdef ENABLE_CMPI_PROVIDER_MANAGER
             (ifcVersionString != "2.3.0"))             (ifcTypeString == "CMPI" &&
               ifcVersionString != "2.0.0") ||
   #endif
              (ifcTypeString == "C++Default" &&
               ifcVersionString != "2.1.0" &&
               ifcVersionString != "2.2.0" &&
               ifcVersionString != "2.3.0"))
         {         {
                 //l10n 485                 //l10n 485
             //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED,             //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_SUPPORTED,
Line 1485 
Line 1504 
         if (enabled)         if (enabled)
         {         {
             //             //
             // if the module is enabled, need to send enable message to              // Since module is enabled, need get updated module instance
               //
               CIMInstance UpdatedModuleInstance =
                   _providerRegistrationManager->getInstance(moduleRef);
   
               //
               // The module is enabled, need to send enable message to
             // subscription service if the provider is an indication provider             // subscription service if the provider is an indication provider
             //             //
  
Line 1546 
Line 1571 
                     //                     //
                     if (capInstances.size() != 0)                     if (capInstances.size() != 0)
                     {                     {
                         _sendEnableMessageToSubscription(mInstance,                          _sendEnableMessageToSubscription(UpdatedModuleInstance,
                                                          pInstance,                                                          pInstance,
                                                          capInstances,                                                          capInstances,
                                                          al);                                                          al);
Line 1596 
Line 1621 
                 enable_req,                 enable_req,
                 _queueId);                 _queueId);
  
         if( false  == _controller->ClientSendForget(          AsyncReply * asyncReply =
                       *_client_handle,              _controller->ClientSendWait(*_client_handle,
                       _queueId,                       _queueId,
                       asyncRequest))                                          asyncRequest);
   
           CIMNotifyProviderEnableResponseMessage * response =
               reinterpret_cast<CIMNotifyProviderEnableResponseMessage *>(
                   (static_cast<AsyncLegacyOperationResult *>(asyncReply))->get_result());
   
           if (response->cimException.getCode() != CIM_ERR_SUCCESS)
         {         {
               CIMException e = response->cimException;
             delete asyncRequest;             delete asyncRequest;
             throw PEGASUS_CIM_EXCEPTION(CIM_ERR_NOT_FOUND, String::EMPTY);              delete asyncReply;
               delete response;
               throw (e);
         }         }
  
           delete asyncRequest;
           delete asyncReply;
           delete response;
     }     }
 } }
  


Legend:
Removed from v.1.58  
changed lines
  Added in v.1.64

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2