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

Diff for /pegasus/src/Pegasus/Provider/InternalCIMOMHandleRep.cpp between version 1.25 and 1.26

version 1.25, 2006/09/01 17:51:28 version 1.26, 2006/11/14 18:34:54
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Chip Vincent (cvincent@us.ibm.com)  
 //  
 // Modified By:  
 //      Carol Ann Krug Graves, Hewlett-Packard Company (carolann_graves@hp.com)  
 //      Mike Day, IBM (mdday@us.ibm.com)  
 //      Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)  
 //              Seema Gupta, (gseema@in.ibm.com for PEP135)  
 //      Amit K Arora, IBM (amita@in.ibm.com) for Bug#1090  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
  
Line 59 
Line 50 
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 InternalCIMOMHandleMessageQueue::InternalCIMOMHandleMessageQueue(void)  InternalCIMOMHandleMessageQueue::InternalCIMOMHandleMessageQueue()
     : MessageQueue(PEGASUS_QUEUENAME_INTERNALCLIENT),     : MessageQueue(PEGASUS_QUEUENAME_INTERNALCLIENT),
     _output_qid(0),     _output_qid(0),
     _return_qid(0),     _return_qid(0),
Line 76 
Line 67 
     _return_qid = getQueueId();     _return_qid = getQueueId();
 } }
  
 InternalCIMOMHandleMessageQueue::~InternalCIMOMHandleMessageQueue(void)  InternalCIMOMHandleMessageQueue::~InternalCIMOMHandleMessageQueue()
 { {
     try     try
     {     {
Line 88 
Line 79 
     }     }
 } }
  
 void InternalCIMOMHandleMessageQueue::handleEnqueue(void)  void InternalCIMOMHandleMessageQueue::handleEnqueue()
 { {
     PEG_METHOD_ENTER(TRC_CIMOM_HANDLE, "InternalCIMOMHandleMessageQueue::handleEnqueue");      PEG_METHOD_ENTER(TRC_CIMOM_HANDLE,
           "InternalCIMOMHandleMessageQueue::handleEnqueue");
  
     Message* message = dequeue();     Message* message = dequeue();
  
Line 158 
Line 150 
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
 } }
  
 CIMResponseMessage* InternalCIMOMHandleMessageQueue::sendRequest(CIMRequestMessage* request)  CIMResponseMessage* InternalCIMOMHandleMessageQueue::sendRequest(
       CIMRequestMessage* request)
 { {
     PEG_METHOD_ENTER(TRC_CIMOM_HANDLE, "InternalCIMOMHandleRep::sendRequest");     PEG_METHOD_ENTER(TRC_CIMOM_HANDLE, "InternalCIMOMHandleRep::sendRequest");
  
Line 188 
Line 181 
         dynamic_cast<CIMResponseMessage *>(_response.dequeue_wait());         dynamic_cast<CIMResponseMessage *>(_response.dequeue_wait());
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(response);      return response;
 } }
  
 static void _deleteContentLanguage(void* data) static void _deleteContentLanguage(void* data)
Line 212 
Line 205 
  
     if(ycmGetCurrentUser(os400UserName) == 0)     if(ycmGetCurrentUser(os400UserName) == 0)
     {     {
         throw CIMException(          throw CIMException(CIM_ERR_FAILED, MessageLoaderParms(
             CIM_ERR_FAILED,  
             MessageLoaderParms(  
                 "Common.CIMOMHandleOS400UserState.UNKNOWN_ERROR",                 "Common.CIMOMHandleOS400UserState.UNKNOWN_ERROR",
                 "An internal error occurred during the processing of the CIMOM handle"));              "An internal error occurred during the processing of the "
                   "CIMOM handle"));
     }     }
  
     EtoA(os400UserName);     EtoA(os400UserName);
Line 236 
Line 228 
  
         if(context.contains(AcceptLanguageListContainer::NAME))         if(context.contains(AcceptLanguageListContainer::NAME))
     {     {
         // propagate the accept languages container if it exists (get() with throw          // propagate the accept languages container if it exists
         // an exception if it does not exist)          // (get() with throw an exception if it does not exist)
         temp.insert(context.get(AcceptLanguageListContainer::NAME));         temp.insert(context.get(AcceptLanguageListContainer::NAME));
     }     }
         else         else
Line 258 
Line 250 
  
         if(context.contains(ContentLanguageListContainer::NAME))         if(context.contains(ContentLanguageListContainer::NAME))
     {     {
         // propagate the accept languages container if it exists (get() with throw          // propagate the accept languages container if it exists
         // an exception if it does not)          // (get() with throw an exception if it does not)
         temp.insert(context.get(ContentLanguageListContainer::NAME));         temp.insert(context.get(ContentLanguageListContainer::NAME));
     }     }
         else         else
Line 290 
Line 282 
 } }
 #endif #endif
  
 CIMResponseMessage* InternalCIMOMHandleRep::do_request(CIMRequestMessage* request)  CIMResponseMessage* InternalCIMOMHandleRep::do_request(
       CIMRequestMessage* request)
 { {
     PEG_METHOD_ENTER(TRC_CIMOM_HANDLE, "InternalCIMOMHandleRep::do_request");     PEG_METHOD_ENTER(TRC_CIMOM_HANDLE, "InternalCIMOMHandleRep::do_request");
  
     #ifdef PEGASUS_OS_OS400     #ifdef PEGASUS_OS_OS400
     // On OS/400, this code runs in a system state thread.  Swap the     // On OS/400, this code runs in a system state thread.  Swap the
     // thread profile to be able to access server resources.     // thread profile to be able to access server resources.
     if(CIMOMHandleOS400SystemState::setProfileHandle(os400PH) != CIM_ERR_SUCCESS)      if (CIMOMHandleOS400SystemState::setProfileHandle(os400PH) !=
               CIM_ERR_SUCCESS)
     {     {
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         throw Exception("Could not set profile handle");         throw Exception("Could not set profile handle");
Line 358 
Line 352 
         delete response;         delete response;
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         throw PEGASUS_CIM_EXCEPTION_L(          throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED, MessageLoaderParms(
             CIM_ERR_FAILED,  
             MessageLoaderParms(  
                 "Provider.CIMOMHandle.EMPTY_CIM_RESPONSE",                 "Provider.CIMOMHandle.EMPTY_CIM_RESPONSE",
                 "Empty CIM Response"));                 "Empty CIM Response"));
     }     }
Line 377 
Line 369 
  
         if(response->operationContext.contains(ContentLanguageListContainer::NAME))         if(response->operationContext.contains(ContentLanguageListContainer::NAME))
     {     {
         // If the response has a Content-Language then save it into thread-specific storage          // If the response has a Content-Language then save it into
           // thread-specific storage
         ContentLanguageListContainer container =         ContentLanguageListContainer container =
             response->operationContext.get(ContentLanguageListContainer::NAME);             response->operationContext.get(ContentLanguageListContainer::NAME);
  
Line 433 
Line 426 
                 propertyList);                 propertyList);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimClass);          return cimClass;
     }     }
     #endif     #endif
  
Line 483 
Line 476 
             "Exception caught in CIMOMHandle");             "Exception caught in CIMOMHandle");
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         throw CIMException(          throw CIMException(CIM_ERR_FAILED, MessageLoaderParms(
             CIM_ERR_FAILED,  
             MessageLoaderParms(  
                 "Provider.CIMOMHandle.CAUGHT_EXCEPTION",                 "Provider.CIMOMHandle.CAUGHT_EXCEPTION",
                 "Exception caught in CIMOMHandle"));                 "Exception caught in CIMOMHandle"));
     }     }
Line 493 
Line 484 
     CIMClass cimClass = response->cimClass;     CIMClass cimClass = response->cimClass;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimClass);      return cimClass;
 } }
  
  
Line 525 
Line 516 
                 includeClassOrigin);                 includeClassOrigin);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimClasses);          return cimClasses;
     }     }
     #endif     #endif
  
Line 583 
Line 574 
     Array<CIMClass> cimClasses = response->cimClasses;     Array<CIMClass> cimClasses = response->cimClasses;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimClasses);      return cimClasses;
 } }
  
  
Line 609 
Line 600 
                 deepInheritance);                 deepInheritance);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimClassNames);          return cimClassNames;
     }     }
     #endif     #endif
  
Line 664 
Line 655 
     Array<CIMName> cimClassNames = response->classNames;     Array<CIMName> cimClassNames = response->classNames;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimClassNames);      return cimClassNames;
 } }
  
  
Line 918 
Line 909 
                 propertyList);                 propertyList);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimInstance);          return cimInstance;
     }     }
     #endif     #endif
  
Line 977 
Line 968 
     CIMInstance cimInstance = response->cimInstance;     CIMInstance cimInstance = response->cimInstance;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimInstance);      return cimInstance;
 } }
  
 Array<CIMInstance> InternalCIMOMHandleRep::enumerateInstances( Array<CIMInstance> InternalCIMOMHandleRep::enumerateInstances(
Line 1010 
Line 1001 
                 propertyList);                 propertyList);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimInstances);          return cimInstances;
     }     }
     #endif     #endif
  
Line 1070 
Line 1061 
     Array<CIMInstance> cimInstances = response->cimNamedInstances;     Array<CIMInstance> cimInstances = response->cimNamedInstances;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimInstances);      return cimInstances;
 } }
  
  
Line 1094 
Line 1085 
                 className);                 className);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimObjectPaths);          return cimObjectPaths;
     }     }
     #endif     #endif
  
Line 1149 
Line 1140 
     Array<CIMObjectPath> cimObjectPaths = response->instanceNames;     Array<CIMObjectPath> cimObjectPaths = response->instanceNames;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimObjectPaths);      return cimObjectPaths;
 } }
  
 CIMObjectPath InternalCIMOMHandleRep::createInstance( CIMObjectPath InternalCIMOMHandleRep::createInstance(
Line 1172 
Line 1163 
                 newInstance);                 newInstance);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimReference);          return cimReference;
     }     }
     #endif     #endif
  
Line 1226 
Line 1217 
     CIMObjectPath cimReference = response->instanceName;     CIMObjectPath cimReference = response->instanceName;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimReference);      return cimReference;
 } }
  
  
Line 1407 
Line 1398 
                 query);                 query);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimObjects);          return cimObjects;
     }     }
     #endif     #endif
  
Line 1462 
Line 1453 
     Array<CIMObject> cimObjects = response->cimObjects;     Array<CIMObject> cimObjects = response->cimObjects;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimObjects);      return cimObjects;
 } }
  
  
Line 1499 
Line 1490 
                 propertyList);                 propertyList);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimObjects);          return cimObjects;
     }     }
     #endif     #endif
  
Line 1560 
Line 1551 
     Array<CIMObject> cimObjects = response->cimObjects;     Array<CIMObject> cimObjects = response->cimObjects;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimObjects);      return cimObjects;
 } }
  
  
Line 1592 
Line 1583 
                 resultRole);                 resultRole);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimObjectPaths);          return cimObjectPaths;
     }     }
     #endif     #endif
  
Line 1650 
Line 1641 
     Array<CIMObjectPath> cimObjectPaths = response->objectNames;     Array<CIMObjectPath> cimObjectPaths = response->objectNames;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimObjectPaths);      return cimObjectPaths;
 } }
  
  
Line 1683 
Line 1674 
                 propertyList);                 propertyList);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimObjects);          return cimObjects;
     }     }
     #endif     #endif
  
Line 1742 
Line 1733 
     Array<CIMObject> cimObjects = response->cimObjects;     Array<CIMObject> cimObjects = response->cimObjects;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimObjects);      return cimObjects;
 } }
  
  
Line 1770 
Line 1761 
                 role);                 role);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimObjectPaths);          return cimObjectPaths;
     }     }
     #endif     #endif
  
Line 1826 
Line 1817 
     Array<CIMObjectPath> cimObjectPaths = response->objectNames;     Array<CIMObjectPath> cimObjectPaths = response->objectNames;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimObjectPaths);      return cimObjectPaths;
 } }
  
  
Line 1851 
Line 1842 
                 propertyName);                 propertyName);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimValue);          return cimValue;
     }     }
     #endif     #endif
  
Line 1906 
Line 1897 
     CIMValue cimValue = response->value;     CIMValue cimValue = response->value;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimValue);      return cimValue;
 } }
  
  
Line 2015 
Line 2006 
                 outParameters);                 outParameters);
  
         PEG_METHOD_EXIT();         PEG_METHOD_EXIT();
         return(cimValue);          return cimValue;
     }     }
     #endif     #endif
  
Line 2072 
Line 2063 
     outParameters = response->outParameters;     outParameters = response->outParameters;
  
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     return(cimValue);      return cimValue;
 } }
  
  


Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2