(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.96 and 1.97

version 1.96, 2007/04/20 18:26:56 version 1.97, 2007/07/31 19:13:43
Line 103 
Line 103 
  
     CIMInstance instance;     CIMInstance instance;
  
     try      instance = _providerRegistrationManager->getInstance(
     {          instanceReference, includeQualifiers, includeClassOrigin, propertyList);
         instance = _providerRegistrationManager->getInstance(instanceReference,  
                                                              includeQualifiers,  
                                                              includeClassOrigin,  
                                                              propertyList);  
     }  
     catch(const CIMException&)  
     {  
         throw;  
     }  
  
     handler.deliver(instance);     handler.deliver(instance);
  
Line 153 
Line 144 
  
     Array<CIMInstance> enumInstances;     Array<CIMInstance> enumInstances;
  
     try  
     {  
         enumInstances =         enumInstances =
             _providerRegistrationManager->enumerateInstancesForClass(             _providerRegistrationManager->enumerateInstancesForClass(
                 classReference,                 classReference,
                 includeQualifiers,                 includeQualifiers,
                 includeClassOrigin,                 includeClassOrigin,
                 propertyList);                 propertyList);
     }  
     catch(const CIMException&)  
     {  
         throw;  
     }  
  
     handler.deliver(enumInstances);     handler.deliver(enumInstances);
  
Line 203 
Line 187 
     Array<CIMObjectPath> enumInstanceNames;     Array<CIMObjectPath> enumInstanceNames;
  
     // get all instance names from repository     // get all instance names from repository
     try  
     {  
         enumInstanceNames =         enumInstanceNames =
             _providerRegistrationManager->enumerateInstanceNamesForClass(             _providerRegistrationManager->enumerateInstanceNamesForClass(
                 classReference);                 classReference);
     }  
     catch(const CIMException&)  
     {  
         throw;  
     }  
  
     handler.deliver(enumInstanceNames);     handler.deliver(enumInstanceNames);
  
Line 298 
Line 275 
     // begin processing the request     // begin processing the request
     handler.processing();     handler.processing();
  
     try      _providerRegistrationManager->modifyInstance(
     {          instanceReference, instanceObject, includeQualifiers, propertyArray);
         _providerRegistrationManager->modifyInstance(instanceReference,  
                                                      instanceObject,  
                                                      includeQualifiers,  
                                                      propertyArray);  
     }  
     catch(const CIMException&)  
     {  
         throw;  
     }  
  
     // complete processing the request     // complete processing the request
     handler.complete();     handler.complete();
Line 800 
Line 768 
     // begin processing the request     // begin processing the request
     handler.processing();     handler.processing();
  
     try      returnReference = _providerRegistrationManager->createInstance(
     {          instanceReference, instance);
         returnReference =  
             _providerRegistrationManager->createInstance(instanceReference,  
                     instance);  
     }  
     catch(const CIMException&)  
     {  
         throw;  
     }  
  
     handler.deliver(returnReference);     handler.deliver(returnReference);
  
Line 914 
Line 874 
         //         //
         // disable the provider         // disable the provider
         //         //
         try          Sint16 ret_value = _disableModule(
         {              instanceReference, moduleName, true, al);
              Sint16 ret_value = _disableModule(instanceReference,  
                      moduleName, true, al);  
  
              //              //
              // if the provider disable failed              // if the provider disable failed
              //              //
              // l10n  
              if (ret_value == -1)              if (ret_value == -1)
              {              {
                  throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,                  throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,
Line 932 
Line 889 
                          "DISABLE_PROVIDER_FAILED",                          "DISABLE_PROVIDER_FAILED",
                     "disable the provider failed."));                     "disable the provider failed."));
              }              }
   
              //              //
              // The provider disable failed since there are pending requests              // The provider disable failed since there are pending requests
              //              //
Line 945 
Line 903 
                     "disable the provider failed: Provider is busy."));                     "disable the provider failed: Provider is busy."));
              }              }
         }         }
         catch(CIMException&)  
         {  
             throw;  
         }  
     }  
  
     //     //
     // disable provider module before remove provider registration     // disable provider module before remove provider registration
Line 982 
Line 935 
         //         //
         // disable the provider module         // disable the provider module
         //         //
         try          Sint16 ret_value = _disableModule(
         {              instanceReference, moduleName, false, al);
             Sint16 ret_value = _disableModule(instanceReference,  
                     moduleName, false, al);  
  
             //             //
             // if the provider module disable failed             // if the provider module disable failed
             //             //
             // l10n  
             if (ret_value == -1)             if (ret_value == -1)
             {             {
                 throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms(              throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,
                   MessageLoaderParms(
                     "ControlProviders.ProviderRegistrationProvider."                     "ControlProviders.ProviderRegistrationProvider."
                         "ProviderRegistrationProvider."                         "ProviderRegistrationProvider."
                         "DISABLE_PROVIDER_MODULE_FAILED",                         "DISABLE_PROVIDER_MODULE_FAILED",
Line 1006 
Line 957 
             //             //
             if (ret_value == -2)             if (ret_value == -2)
             {             {
                 throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,MessageLoaderParms(              throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED,
                   MessageLoaderParms(
                     "ControlProviders.ProviderRegistrationProvider."                     "ControlProviders.ProviderRegistrationProvider."
                         "ProviderRegistrationProvider."                         "ProviderRegistrationProvider."
                         "DISABLE_PROVIDER_MODULE_FAILED_PROVIDER_BUSY",                         "DISABLE_PROVIDER_MODULE_FAILED_PROVIDER_BUSY",
                     "disable the provider module failed: Provider is busy."));                     "disable the provider module failed: Provider is busy."));
             }             }
         }         }
         catch(const CIMException&)  
         {  
             throw;  
         }  
     }  
  
     try  
     {  
         _providerRegistrationManager->deleteInstance(instanceReference);         _providerRegistrationManager->deleteInstance(instanceReference);
     }  
     catch(const CIMException&)  
     {  
         throw;  
     }  
  
     // complete processing the request     // complete processing the request
     handler.complete();     handler.complete();
Line 1113 
Line 1053 
  
     Sint16 ret_value;     Sint16 ret_value;
  
     try  
     {  
         if(methodName.equal(_STOP_PROVIDER))         if(methodName.equal(_STOP_PROVIDER))
         {         {
             // disable module             // disable module
              ret_value =  _disableModule(objectReference,          ret_value = _disableModule(objectReference, moduleName, false, al);
                                          moduleName, false, al);  
         }         }
         else if(methodName.equal(_START_PROVIDER))         else if(methodName.equal(_START_PROVIDER))
         {         {
Line 1131 
Line 1068 
             throw PEGASUS_CIM_EXCEPTION(CIM_ERR_METHOD_NOT_AVAILABLE,             throw PEGASUS_CIM_EXCEPTION(CIM_ERR_METHOD_NOT_AVAILABLE,
                     String::EMPTY);                     String::EMPTY);
         }         }
     }  
     catch(const CIMException&)  
     {  
         throw;  
     }  
  
     CIMValue retValue(ret_value);     CIMValue retValue(ret_value);
     handler.deliver(retValue);     handler.deliver(retValue);


Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2