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

Diff for /pegasus/src/Pegasus/ProviderManager2/Default/DefaultProviderManager.cpp between version 1.56.2.2 and 1.57

version 1.56.2.2, 2006/03/07 18:45:58 version 1.57, 2006/01/11 20:44:29
Line 1 
Line 1 
 //%2006////////////////////////////////////////////////////////////////////////  //%2005////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
Line 8 
Line 8 
 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 // EMC Corporation; VERITAS Software Corporation; The Open Group. // EMC Corporation; VERITAS Software Corporation; The Open Group.
 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;  
 // EMC Corporation; Symantec Corporation; The Open Group.  
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 62 
Line 60 
 #include <Pegasus/ProviderManager2/ProviderManagerService.h> #include <Pegasus/ProviderManager2/ProviderManagerService.h>
 #include <Pegasus/ProviderManager2/ProviderType.h> #include <Pegasus/ProviderManager2/ProviderType.h>
  
 #define HandleCatch(handler)                                                   \  
 catch(CIMException & e)                                                        \  
 {                                                                              \  
     PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,                      \  
                      "Exception: " + e.getMessage());                          \  
     handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage());   \  
 }                                                                              \  
     catch(Exception & e)                                                       \  
 {                                                                              \  
     PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,                      \  
                      "Exception: " + e.getMessage());                          \  
     handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage());\  
 }                                                                              \  
     catch(...)                                                                 \  
 {                                                                              \  
     PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,                      \  
                      "Exception: Unknown");                                    \  
     handler.setStatus(CIM_ERR_FAILED, "Unknown error.");                       \  
 }                                                                              \  
 STAT_RESPONSEEND  
   
   
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 // auto variable to protect provider during operations // auto variable to protect provider during operations
Line 258 
Line 234 
             request->buildResponse());             request->buildResponse());
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     OperationResponseHandler handler(      OperationResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 313 
Line 288 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     GetInstanceResponseHandler handler(      GetInstanceResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 355 
Line 329 
  
         pm_service_op_lock op_lock(&ph.GetProvider());         pm_service_op_lock op_lock(&ph.GetProvider());
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         ph.GetProvider().getInstance(         ph.GetProvider().getInstance(
             context,             context,
Line 364 
Line 338 
             request->includeClassOrigin,             request->includeClassOrigin,
             propertyList,             propertyList,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 389 
Line 385 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     EnumerateInstancesResponseHandler handler(      EnumerateInstancesResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 432 
Line 427 
  
         pm_service_op_lock op_lock(&ph.GetProvider());         pm_service_op_lock op_lock(&ph.GetProvider());
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         ph.GetProvider().enumerateInstances(         ph.GetProvider().enumerateInstances(
             context,             context,
Line 441 
Line 436 
             request->includeClassOrigin,             request->includeClassOrigin,
             propertyList,             propertyList,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 466 
Line 483 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     EnumerateInstanceNamesResponseHandler handler(      EnumerateInstanceNamesResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     // process the request     // process the request
     try     try
Line 508 
Line 524 
  
         pm_service_op_lock op_lock(&ph.GetProvider());         pm_service_op_lock op_lock(&ph.GetProvider());
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         ph.GetProvider().enumerateInstanceNames(         ph.GetProvider().enumerateInstanceNames(
             context,             context,
             objectPath,             objectPath,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 540 
Line 578 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     CreateInstanceResponseHandler handler(      CreateInstanceResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 582 
Line 619 
  
         pm_service_op_lock op_lock(&ph.GetProvider());         pm_service_op_lock op_lock(&ph.GetProvider());
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         ph.GetProvider().createInstance(         ph.GetProvider().createInstance(
             context,             context,
             objectPath,             objectPath,
             request->newInstance,             request->newInstance,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 615 
Line 674 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     ModifyInstanceResponseHandler handler(      ModifyInstanceResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 659 
Line 717 
  
         pm_service_op_lock op_lock(&ph.GetProvider());         pm_service_op_lock op_lock(&ph.GetProvider());
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         ph.GetProvider().modifyInstance(         ph.GetProvider().modifyInstance(
             context,             context,
Line 668 
Line 726 
             request->includeQualifiers,             request->includeQualifiers,
             propertyList,             propertyList,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 694 
Line 774 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     DeleteInstanceResponseHandler handler(      DeleteInstanceResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 736 
Line 815 
  
         pm_service_op_lock op_lock(&ph.GetProvider());         pm_service_op_lock op_lock(&ph.GetProvider());
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         ph.GetProvider().deleteInstance(         ph.GetProvider().deleteInstance(
             context,             context,
             objectPath,             objectPath,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 767 
Line 868 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     ExecQueryResponseHandler handler(      ExecQueryResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 817 
Line 917 
  
         pm_service_op_lock op_lock(&ph.GetProvider());         pm_service_op_lock op_lock(&ph.GetProvider());
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         ph.GetProvider().execQuery(         ph.GetProvider().execQuery(
             context,             context,
             objectPath,             objectPath,
             qx,             qx,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 847 
Line 969 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     AssociatorsResponseHandler handler(      AssociatorsResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     // process the request     // process the request
     try     try
Line 889 
Line 1010 
                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));
             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
         pm_service_op_lock op_lock(&ph.GetProvider());         pm_service_op_lock op_lock(&ph.GetProvider());
  
         ph.GetProvider().associators(         ph.GetProvider().associators(
Line 903 
Line 1024 
             request->includeClassOrigin,             request->includeClassOrigin,
             request->propertyList,             request->propertyList,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 928 
Line 1071 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     AssociatorNamesResponseHandler handler(      AssociatorNamesResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     // process the request     // process the request
     try     try
Line 970 
Line 1112 
                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));
             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));
  
                 STAT_PMS_PROVIDERSTART;                  STAT_GETSTARTTIME;
         pm_service_op_lock op_lock(&ph.GetProvider());         pm_service_op_lock op_lock(&ph.GetProvider());
  
         ph.GetProvider().associatorNames(         ph.GetProvider().associatorNames(
Line 981 
Line 1123 
             request->role,             request->role,
             request->resultRole,             request->resultRole,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 1006 
Line 1170 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     ReferencesResponseHandler handler(      ReferencesResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     // process the request     // process the request
     try     try
Line 1048 
Line 1211 
                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));
             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
             "Calling provider.references: " +             "Calling provider.references: " +
Line 1065 
Line 1228 
             request->includeClassOrigin,             request->includeClassOrigin,
             request->propertyList,             request->propertyList,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 1090 
Line 1275 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     ReferenceNamesResponseHandler handler(      ReferenceNamesResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     // process the request     // process the request
     try     try
Line 1132 
Line 1316 
                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));
             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
             "Calling provider.referenceNames: " +             "Calling provider.referenceNames: " +
Line 1146 
Line 1330 
             request->resultClass,             request->resultClass,
             request->role,             request->role,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 1171 
Line 1377 
             request->buildResponse());             request->buildResponse());
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     GetPropertyResponseHandler handler(      GetPropertyResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 1208 
Line 1413 
  
         CIMName propertyName = request->propertyName;         CIMName propertyName = request->propertyName;
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
             "Calling provider.getProperty: " +             "Calling provider.getProperty: " +
Line 1222 
Line 1427 
             objectPath,             objectPath,
             propertyName,             propertyName,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 1247 
Line 1474 
             request->buildResponse());             request->buildResponse());
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     SetPropertyResponseHandler handler(      SetPropertyResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 1285 
Line 1511 
         CIMName propertyName = request->propertyName;         CIMName propertyName = request->propertyName;
         CIMValue propertyValue = request->newValue;         CIMValue propertyValue = request->newValue;
  
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
             "Calling provider.setProperty: " +             "Calling provider.setProperty: " +
Line 1300 
Line 1526 
             propertyName,             propertyName,
             propertyValue,             propertyValue,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 1326 
Line 1574 
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     // create a handler for this request     // create a handler for this request
     InvokeMethodResponseHandler handler(      InvokeMethodResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 1367 
Line 1614 
         instanceReference.setNameSpace(request->nameSpace);         instanceReference.setNameSpace(request->nameSpace);
  
         // forward request         // forward request
         STAT_PMS_PROVIDERSTART;          STAT_GETSTARTTIME;
  
         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
             "Calling provider.invokeMethod: " +             "Calling provider.invokeMethod: " +
Line 1381 
Line 1628 
             request->methodName,             request->methodName,
             request->inParameters,             request->inParameters,
             handler);             handler);
   
           STAT_PMS_PROVIDEREND;
       }
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown error.");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 1403 
Line 1672 
             request->buildResponse());             request->buildResponse());
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     OperationResponseHandler handler(      OperationResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 1458 
Line 1726 
                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));
             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));
             context.insert(request->operationContext.get(SubscriptionInstanceContainer::NAME));             context.insert(request->operationContext.get(SubscriptionInstanceContainer::NAME));
               context.insert(request->operationContext.get(SubscriptionLanguageListContainer::NAME));
             context.insert(request->operationContext.get(SubscriptionFilterConditionContainer::NAME));             context.insert(request->operationContext.get(SubscriptionFilterConditionContainer::NAME));
                  context.insert(request->operationContext.get(SubscriptionFilterQueryContainer::NAME));                  context.insert(request->operationContext.get(SubscriptionFilterQueryContainer::NAME));
  
Line 1550 
Line 1819 
             request->buildResponse());             request->buildResponse());
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     OperationResponseHandler handler(      OperationResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 1599 
Line 1867 
                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));
             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));
             context.insert(request->operationContext.get(SubscriptionInstanceContainer::NAME));             context.insert(request->operationContext.get(SubscriptionInstanceContainer::NAME));
               context.insert(request->operationContext.get(SubscriptionLanguageListContainer::NAME));
             context.insert(request->operationContext.get(SubscriptionFilterConditionContainer::NAME));             context.insert(request->operationContext.get(SubscriptionFilterConditionContainer::NAME));
                  context.insert(request->operationContext.get(SubscriptionFilterQueryContainer::NAME));                  context.insert(request->operationContext.get(SubscriptionFilterQueryContainer::NAME));
  
Line 1674 
Line 1943 
             request->buildResponse());             request->buildResponse());
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     OperationResponseHandler handler(      OperationResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 1725 
Line 1993 
                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));                 context.insert(request->operationContext.get(AcceptLanguageListContainer::NAME));
             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));             context.insert(request->operationContext.get(ContentLanguageListContainer::NAME));
             context.insert(request->operationContext.get(SubscriptionInstanceContainer::NAME));             context.insert(request->operationContext.get(SubscriptionInstanceContainer::NAME));
               context.insert(request->operationContext.get(SubscriptionLanguageListContainer::NAME));
  
         CIMObjectPath subscriptionName = request->subscriptionInstance.getPath();         CIMObjectPath subscriptionName = request->subscriptionInstance.getPath();
  
Line 1823 
Line 2092 
             request->buildResponse());             request->buildResponse());
     PEGASUS_ASSERT(response != 0);     PEGASUS_ASSERT(response != 0);
  
     OperationResponseHandler handler(      OperationResponseHandler handler(request, response);
         request, response, _responseChunkCallback);  
  
     try     try
     {     {
Line 1836 
Line 2104 
         OpProviderHolder ph = providerManager.getProvider(         OpProviderHolder ph = providerManager.getProvider(
             name.getPhysicalName(), name.getLogicalName());             name.getPhysicalName(), name.getLogicalName());
  
                 STAT_PMS_PROVIDERSTART                  STAT_GETSTARTTIME
  
         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,         PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
                        "Calling provider.: " +                        "Calling provider.: " +
Line 1862 
Line 2130 
       ph.GetProvider().consumeIndication(context,       ph.GetProvider().consumeIndication(context,
                                 request->destinationPath,                                 request->destinationPath,
                                 indication_copy);                                 indication_copy);
   
             STAT_PMS_PROVIDEREND
   
       }
   
       catch(CIMException & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(e.getCode(), e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(Exception & e)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: " + e.getMessage());
   
           handler.setStatus(CIM_ERR_FAILED, e.getContentLanguages(), e.getMessage()); // l10n
       }
       catch(...)
       {
           PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4,
               "Exception: Unknown");
   
           handler.setStatus(CIM_ERR_FAILED, "Unknown Error");
     }     }
     HandleCatch(handler);  
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
  
Line 2254 
Line 2546 
  
 void DefaultProviderManager::_callEnableIndications void DefaultProviderManager::_callEnableIndications
     (CIMInstance & req_provider,     (CIMInstance & req_provider,
      PEGASUS_INDICATION_CALLBACK_T _indicationCallback,       PEGASUS_INDICATION_CALLBACK _indicationCallback,
      OpProviderHolder & ph)      OpProviderHolder & ph)
 { {
     PEG_METHOD_ENTER (TRC_PROVIDERMANAGER,     PEG_METHOD_ENTER (TRC_PROVIDERMANAGER,
Line 2265 
Line 2557 
         CIMRequestMessage * request = 0;         CIMRequestMessage * request = 0;
         CIMResponseMessage * response = 0;         CIMResponseMessage * response = 0;
         EnableIndicationsResponseHandler * enableHandler =         EnableIndicationsResponseHandler * enableHandler =
             new EnableIndicationsResponseHandler(              new EnableIndicationsResponseHandler
                 request,                  (request, response, req_provider, _indicationCallback);
                 response,  
                 req_provider,  
                 _indicationCallback,  
                 _responseChunkCallback);  
  
         PEG_TRACE_STRING (TRC_PROVIDERMANAGER, Tracer::LEVEL4,         PEG_TRACE_STRING (TRC_PROVIDERMANAGER, Tracer::LEVEL4,
             "Calling provider.enableIndications: " +             "Calling provider.enableIndications: " +


Legend:
Removed from v.1.56.2.2  
changed lines
  Added in v.1.57

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2