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

Diff for /pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpIndicationHandler.cpp between version 1.19 and 1.20

version 1.19, 2003/10/09 16:43:40 version 1.20, 2003/10/16 21:06:11
Line 77 
Line 77 
     String mapstr1;     String mapstr1;
     String mapstr2;     String mapstr2;
  
       PEG_METHOD_ENTER (TRC_IND_HANDLER,
           "snmpIndicationHandler::handleIndication");
   
       try
       {
     CIMClass indicationClass = _repository->getClass(     CIMClass indicationClass = _repository->getClass(
         nameSpace, indication.getClassName(), false, true, false, CIMPropertyList());              nameSpace, indication.getClassName(), false, true,
               false, CIMPropertyList());
  
     Uint32 propertyCount = indication.getPropertyCount();     Uint32 propertyCount = indication.getPropertyCount();
  
Line 192 
Line 198 
                 }                 }
                 else                 else
                 {                 {
                           PEG_TRACE_STRING(TRC_IND_HANDLER, Tracer::LEVEL4,
                                            "Invalid MappingStrings Value " + trapOid);
                           PEG_METHOD_EXIT();
                     // l10n                     // l10n
                     // throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, "Invalid MappingStrings Value");                     // throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, "Invalid MappingStrings Value");
                     throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_FAILED,                     throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_FAILED,
Line 201 
Line 210 
             }             }
             else             else
             {             {
                       PEG_TRACE_STRING(TRC_IND_HANDLER, Tracer::LEVEL4,
                                    "Qualifier MappingStrings can not be found.");
                       PEG_METHOD_EXIT();
                 //L10N_ TODO DONE                 //L10N_ TODO DONE
                 //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, "Qualifier MappingStrings can not be found");                 //throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, "Qualifier MappingStrings can not be found");
                 MessageLoaderParms parms("Handler.snmpIndicationHandler.snmpIndicationHandler.QUALIFIER_MAPPINGS_NOT_FOUND",                 MessageLoaderParms parms("Handler.snmpIndicationHandler.snmpIndicationHandler.QUALIFIER_MAPPINGS_NOT_FOUND",
Line 220 
Line 232 
         {         {
             handler.getProperty(portNumberPos).getValue().get(portNumber);             handler.getProperty(portNumberPos).getValue().get(portNumber);
         }         }
               else
               {
                   // default port
                   portNumber = SNMP_TRAP_DEFAULT_PORT;
               }
   
         handler.getProperty(snmpVersionPos).getValue().get(snmpVersion);         handler.getProperty(snmpVersionPos).getValue().get(snmpVersion);
         if (securityNamePos != PEG_NOT_FOUND)         if (securityNamePos != PEG_NOT_FOUND)
         {         {
Line 245 
Line 263 
     }     }
     else     else
     {     {
               PEG_TRACE_STRING(TRC_IND_HANDLER, Tracer::LEVEL4,
                   "Invalid IndicationHandlerSNMPMapper instance.");
               PEG_METHOD_EXIT();
       // l10n       // l10n
  
       // throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED,       // throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED,
Line 255 
Line 276 
                                                         "Invalid IndicationHandlerSNMPMapper instance"));                                                         "Invalid IndicationHandlerSNMPMapper instance"));
     }     }
 } }
       catch (CIMException & c)
       {
           PEG_TRACE_STRING(TRC_IND_HANDLER, Tracer::LEVEL4, c.getMessage());
           PEG_METHOD_EXIT();
   
           throw PEGASUS_CIM_EXCEPTION (CIM_ERR_FAILED, c.getMessage());
       }
       catch (Exception& e)
       {
           PEG_TRACE_STRING(TRC_IND_HANDLER, Tracer::LEVEL4, e.getMessage());
           PEG_METHOD_EXIT();
   
           throw PEGASUS_CIM_EXCEPTION (CIM_ERR_FAILED, e.getMessage());
       }
       catch (...)
       {
           PEG_TRACE_STRING(TRC_IND_HANDLER, Tracer::LEVEL4,
                   "Failed to deliver trap.");
           PEG_METHOD_EXIT();
   
           throw PEGASUS_CIM_EXCEPTION_L (CIM_ERR_FAILED,
                   MessageLoaderParms("Handler.snmpIndicationHandler.snmpIndicationHandler.FAILED_TO_DELIVER_TRAP",
                                      "Failed to deliver trap."));
       }
   }
  
 // This is the dynamic entry point into this dynamic module. The name of // This is the dynamic entry point into this dynamic module. The name of
 // this handler is "snmpIndicationHandler" which is appended to "PegasusCreateHandler_" // this handler is "snmpIndicationHandler" which is appended to "PegasusCreateHandler_"


Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2