org.opennms.netmgt.snmp.snmp4j
Class Snmp4JV2TrapBuilder

java.lang.Object
  extended by org.opennms.netmgt.snmp.snmp4j.Snmp4JV2TrapBuilder
All Implemented Interfaces:
SnmpTrapBuilder
Direct Known Subclasses:
Snmp4JV1TrapBuilder

public class Snmp4JV2TrapBuilder
extends Object
implements SnmpTrapBuilder


Constructor Summary
protected Snmp4JV2TrapBuilder(Snmp4JStrategy strategy)
           
protected Snmp4JV2TrapBuilder(Snmp4JStrategy strategy, org.snmp4j.PDU pdu, int type)
           
 
Method Summary
 void addVarBind(SnmpObjId name, SnmpValue value)
           
protected  org.snmp4j.PDU getPDU()
           
 void send(String destAddr, int destPort, String community)
           
 void sendTest(String destAddr, int destPort, String community)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Snmp4JV2TrapBuilder

protected Snmp4JV2TrapBuilder(Snmp4JStrategy strategy,
                              org.snmp4j.PDU pdu,
                              int type)

Snmp4JV2TrapBuilder

protected Snmp4JV2TrapBuilder(Snmp4JStrategy strategy)
Method Detail

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.