public class SnmpTrapHelper extends Object
Inspired by org.opennms.netmgt.scriptd.helper.SnmpTrapHelper from opennms-services
| Constructor and Description | 
|---|
SnmpTrapHelper()
Constructs a new SNMPTrapHelper. 
 | 
| Modifier and Type | Method and 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. 
 | 
public int getEstimatedPacketSize(SnmpTrapConfig trapConfig, SnmpAgentConfig agentConfig)
trapConfig - the trap configuration objectagentConfig - the agent configuration objectpublic void forwardTrap(SnmpTrapConfig trapConfig) throws SnmpTrapException
trapConfig - The trap configuration mapping objectSnmpTrapException - if any.Copyright © 2021. All rights reserved.