org.opennms.netmgt.snmp.joesnmp
Class JoeSnmpV2TrapBuilder

java.lang.Object
  extended by org.opennms.netmgt.snmp.joesnmp.JoeSnmpV2TrapBuilder
All Implemented Interfaces:
SnmpTrapBuilder

public class JoeSnmpV2TrapBuilder
extends Object
implements SnmpTrapBuilder


Constructor Summary
JoeSnmpV2TrapBuilder()
           
 
Method Summary
 void addVarBind(SnmpObjId name, SnmpValue value)
           
 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

JoeSnmpV2TrapBuilder

public JoeSnmpV2TrapBuilder()
Method Detail

send

public void send(String destAddr,
                 int destPort,
                 String community)
          throws Exception
Specified by:
send in interface SnmpTrapBuilder
Throws:
Exception

sendTest

public void sendTest(String destAddr,
                     int destPort,
                     String community)
              throws Exception
Specified by:
sendTest in interface SnmpTrapBuilder
Throws:
Exception

addVarBind

public void addVarBind(SnmpObjId name,
                       SnmpValue value)
Specified by:
addVarBind in interface SnmpTrapBuilder


Copyright © 2011. All Rights Reserved.