Class SnmpTrapHelper
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.snmptrap.SnmpTrapHelper
-
public class SnmpTrapHelper extends Object
The Class SnmpTrapHelper.Inspired by
org.opennms.netmgt.scriptd.helper.SnmpTrapHelper
fromopennms-services
- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description SnmpTrapHelper()
Constructs a new SNMPTrapHelper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forwardTrap(SnmpTrapConfig trapConfig)
Create an SNMP trap based on the content of the specified trap configuration, and send it to the appropriate destination.int
getEstimatedPacketSize(SnmpTrapConfig trapConfig, SnmpAgentConfig agentConfig)
Gets the estimated packet size.
-
-
-
Method Detail
-
getEstimatedPacketSize
public int getEstimatedPacketSize(SnmpTrapConfig trapConfig, SnmpAgentConfig agentConfig)
Gets the estimated packet size.- Parameters:
trapConfig
- the trap configuration objectagentConfig
- the agent configuration object- Returns:
- the estimated packet size
-
forwardTrap
public void forwardTrap(SnmpTrapConfig trapConfig) throws SnmpTrapException
Create an SNMP trap based on the content of the specified trap configuration, and send it to the appropriate destination.- Parameters:
trapConfig
- The trap configuration mapping object- Throws:
SnmpTrapException
- if any.
-
-