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

Diff for /pegasus/src/Pegasus/IndicationService/IndicationService.cpp between version 1.88 and 1.89

version 1.88, 2003/09/29 21:51:07 version 1.89, 2003/09/30 21:02:04
Line 1735 
Line 1735 
 #endif #endif
  
             matchedSubscriptions = _getMatchingSubscriptions(             matchedSubscriptions = _getMatchingSubscriptions(
                 indication.getClassName (), nameSpaces, propertyList);                  indication.getClassName (), nameSpaces, propertyList,
                   true, request->provider);
  
 #ifdef PEGASUS_INDICATION_PERFINST #ifdef PEGASUS_INDICATION_PERFINST
             elapsed = stopWatch.getElapsed ();             elapsed = stopWatch.getElapsed ();
Line 3554 
Line 3555 
 Array <CIMInstance> IndicationService::_getMatchingSubscriptions ( Array <CIMInstance> IndicationService::_getMatchingSubscriptions (
     const CIMName & supportedClass,     const CIMName & supportedClass,
     const Array <CIMNamespaceName> nameSpaces,     const Array <CIMNamespaceName> nameSpaces,
     const CIMPropertyList & supportedProperties)      const CIMPropertyList & supportedProperties,
       const Boolean checkProvider,
       const CIMInstance & provider)
 { {
     Array <CIMInstance> matchingSubscriptions;     Array <CIMInstance> matchingSubscriptions;
     Array <CIMInstance> subscriptions;     Array <CIMInstance> subscriptions;
Line 3579 
Line 3582 
             {             {
                 Boolean match = true;                 Boolean match = true;
  
                   if (checkProvider)
                   {
                       //
                       //  Check if the provider who generated this indication
                       //  accepted this subscription
                       //
                       String activeSubscriptionsKey =
                           _generateActiveSubscriptionsKey
                           (subscriptions [j].getPath ());
                       ActiveSubscriptionsTableEntry tableValue;
                       if (_lockedLookupActiveSubscriptionsEntry
                           (activeSubscriptionsKey, tableValue))
                       {
                           //
                           //  If provider is not in list, it did not accept the
                           //  subscription
                           //
                           if ((_providerInList (provider, tableValue)) ==
                               PEG_NOT_FOUND)
                           {
                               match = false;
                               break;
                           }
                       }
                   }
   
                 //                 //
                 //  If supported properties is null (all properties)                 //  If supported properties is null (all properties)
                 //  the subscription can be supported                 //  the subscription can be supported
Line 3619 
Line 3648 
                     if (propertyList.isNull ())                     if (propertyList.isNull ())
                     {                     {
                         match = false;                         match = false;
                           break;
                     }                     }
                     else                     else
                     {                     {
Line 3635 
Line 3665 
                                 propertyList[k]))                                 propertyList[k]))
                             {                             {
                                 match = false;                                 match = false;
                                   break;
                             }                             }
                         }                         }
                     }                     }
Line 4470 
Line 4501 
  
     try     try
     {     {
           //
           //  Get the indication class object from the repository
           //  Specify localOnly=false because superclass properties are needed
           //  Specify includeQualifiers=false because qualifiers are not needed
           //
         indicationClass = _repository->getClass (nameSpaceName,         indicationClass = _repository->getClass (nameSpaceName,
             indicationClassName);              indicationClassName, false, false);
     }     }
     catch (Exception e)     catch (Exception e)
     {     {


Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2