(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.27.2.1 and 1.31

version 1.27.2.1, 2006/02/10 16:11:46 version 1.31, 2006/07/25 18:27:26
Line 62 
Line 62 
  
 PEGASUS_USING_STD; PEGASUS_USING_STD;
  
   #ifdef HPUX_EMANATE
           static snmpDeliverTrap_emanate snmpTrap;
   #elif defined (PEGASUS_USE_NET_SNMP)
           static snmpDeliverTrap_netsnmp snmpTrap;
   #else
           static snmpDeliverTrap_stub snmpTrap;
   #endif
   
   snmpIndicationHandler::snmpIndicationHandler()
   {
       PEG_METHOD_ENTER (TRC_IND_HANDLER,
           "snmpIndicationHandler::snmpIndicationHandler");
       PEG_METHOD_EXIT();
   }
   
 void snmpIndicationHandler::initialize(CIMRepository* repository) void snmpIndicationHandler::initialize(CIMRepository* repository)
 { {
       PEG_METHOD_ENTER (TRC_IND_HANDLER,
           "snmpIndicationHandler::initialize");
   
     _repository = repository;     _repository = repository;
   
   #ifdef PEGASUS_USE_NET_SNMP
       snmpTrap.initialize();
   #endif
   
       PEG_METHOD_EXIT();
   }
   
   void snmpIndicationHandler::terminate()
   {
       PEG_METHOD_ENTER (TRC_IND_HANDLER,
           "snmpIndicationHandler::terminate");
   
   #ifdef PEGASUS_USE_NET_SNMP
       snmpTrap.terminate();
   #endif
   
       PEG_METHOD_EXIT();
   }
   
   snmpIndicationHandler::~snmpIndicationHandler()
   {
       PEG_METHOD_ENTER (TRC_IND_HANDLER,
           "snmpIndicationHandler::~snmpIndicationHandler");
   
   
       PEG_METHOD_EXIT();
 } }
  
 // l10n - note: ignoring indication language // l10n - note: ignoring indication language
Line 153 
Line 198 
         // trap destination and SNMP type are defined in handlerInstance         // trap destination and SNMP type are defined in handlerInstance
         // and passing this instance as it is to deliverTrap() call         // and passing this instance as it is to deliverTrap() call
  
 #ifdef HPUX_EMANATE  
         static snmpDeliverTrap_emanate emanateTrap;  
 #elif defined (PEGASUS_USE_NET_SNMP)  
         static snmpDeliverTrap_netsnmp emanateTrap;  
 #else  
         static snmpDeliverTrap_stub emanateTrap;  
 #endif  
   
         Uint32 targetHostPos = handler.findProperty(CIMName ("TargetHost"));         Uint32 targetHostPos = handler.findProperty(CIMName ("TargetHost"));
         Uint32 targetHostFormatPos = handler.findProperty(CIMName ("TargetHostFormat"));         Uint32 targetHostFormatPos = handler.findProperty(CIMName ("TargetHostFormat"));
         Uint32 otherTargetHostFormatPos = handler.findProperty(CIMName (         Uint32 otherTargetHostFormatPos = handler.findProperty(CIMName (
Line 172 
Line 209 
  
         if ((targetHostPos != PEG_NOT_FOUND) &&         if ((targetHostPos != PEG_NOT_FOUND) &&
             (targetHostFormatPos != PEG_NOT_FOUND) &&             (targetHostFormatPos != PEG_NOT_FOUND) &&
             (snmpVersionPos != PEG_NOT_FOUND) &&              (snmpVersionPos != PEG_NOT_FOUND))
             (indicationClass.findQualifier(CIMName ("MappingStrings")) !=  
                 PEG_NOT_FOUND))  
         {         {
             // properties from the handler instance             // properties from the handler instance
             String targetHost;             String targetHost;
Line 263 
Line 298 
                 handler.getProperty(engineIDPos).getValue().get(engineID);                 handler.getProperty(engineIDPos).getValue().get(engineID);
             }             }
  
             emanateTrap.deliverTrap(              snmpTrap.deliverTrap(
                 trapOid,                 trapOid,
                 securityName,                 securityName,
                 targetHost,                 targetHost,
Line 315 
Line 350 
                 MessageLoaderParms("Handler.snmpIndicationHandler.snmpIndicationHandler.FAILED_TO_DELIVER_TRAP",                 MessageLoaderParms("Handler.snmpIndicationHandler.snmpIndicationHandler.FAILED_TO_DELIVER_TRAP",
                                    "Failed to deliver trap."));                                    "Failed to deliver trap."));
     }     }
   
       PEG_METHOD_EXIT();
 } }
  
 // 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


Legend:
Removed from v.1.27.2.1  
changed lines
  Added in v.1.31

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2