org.opennms.netmgt.snmp.joesnmp
Class JoeSnmpV1TrapBuilder

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

public class JoeSnmpV1TrapBuilder
extends Object
implements SnmpV1TrapBuilder


Constructor Summary
JoeSnmpV1TrapBuilder()
           
 
Method Summary
 void addVarBind(SnmpObjId name, SnmpValue value)
           
 void send(String destAddr, int destPort, String community)
           
 void sendTest(String destAddr, int destPort, String community)
           
 void setAgentAddress(InetAddress agentAddress)
           
 void setEnterprise(SnmpObjId enterpriseId)
           
 void setGeneric(int generic)
           
 void setSpecific(int specific)
           
 void setTimeStamp(long timeStamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoeSnmpV1TrapBuilder

public JoeSnmpV1TrapBuilder()
Method Detail

setEnterprise

public void setEnterprise(SnmpObjId enterpriseId)
Specified by:
setEnterprise in interface SnmpV1TrapBuilder

setAgentAddress

public void setAgentAddress(InetAddress agentAddress)
Specified by:
setAgentAddress in interface SnmpV1TrapBuilder

setGeneric

public void setGeneric(int generic)
Specified by:
setGeneric in interface SnmpV1TrapBuilder

setSpecific

public void setSpecific(int specific)
Specified by:
setSpecific in interface SnmpV1TrapBuilder

setTimeStamp

public void setTimeStamp(long timeStamp)
Specified by:
setTimeStamp in interface SnmpV1TrapBuilder

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 © 2008. All Rights Reserved.