org.opennms.netmgt.snmp.snmp4j
Class Snmp4JV2TrapBuilder
java.lang.Object
org.opennms.netmgt.snmp.snmp4j.Snmp4JV2TrapBuilder
- All Implemented Interfaces:
- SnmpTrapBuilder
- Direct Known Subclasses:
- Snmp4JV1TrapBuilder
public class Snmp4JV2TrapBuilder
- extends Object
- implements SnmpTrapBuilder
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Snmp4JV2TrapBuilder
protected Snmp4JV2TrapBuilder(Snmp4JStrategy strategy,
org.snmp4j.PDU pdu,
int type)
Snmp4JV2TrapBuilder
protected Snmp4JV2TrapBuilder(Snmp4JStrategy strategy)
getPDU
protected org.snmp4j.PDU getPDU()
send
public void send(String destAddr,
int destPort,
String community)
throws Exception
- Specified by:
send in interface SnmpTrapBuilder
- Throws:
Exception
addVarBind
public void addVarBind(SnmpObjId name,
SnmpValue value)
- Specified by:
addVarBind in interface SnmpTrapBuilder
sendTest
public void sendTest(String destAddr,
int destPort,
String community)
throws Exception
- Specified by:
sendTest in interface SnmpTrapBuilder
- Throws:
Exception
Copyright © 2009. All Rights Reserved.