org.opennms.netmgt.snmp.joesnmp
Class JoeSnmpV1TrapBuilder
java.lang.Object
org.opennms.netmgt.snmp.joesnmp.JoeSnmpV1TrapBuilder
- All Implemented Interfaces:
- org.opennms.netmgt.snmp.SnmpTrapBuilder, org.opennms.netmgt.snmp.SnmpV1TrapBuilder
public class JoeSnmpV1TrapBuilder
- extends Object
- implements org.opennms.netmgt.snmp.SnmpV1TrapBuilder
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JoeSnmpV1TrapBuilder
public JoeSnmpV1TrapBuilder()
setEnterprise
public void setEnterprise(org.opennms.netmgt.snmp.SnmpObjId enterpriseId)
- Specified by:
setEnterprise in interface org.opennms.netmgt.snmp.SnmpV1TrapBuilder
setAgentAddress
public void setAgentAddress(InetAddress agentAddress)
- Specified by:
setAgentAddress in interface org.opennms.netmgt.snmp.SnmpV1TrapBuilder
setGeneric
public void setGeneric(int generic)
- Specified by:
setGeneric in interface org.opennms.netmgt.snmp.SnmpV1TrapBuilder
setSpecific
public void setSpecific(int specific)
- Specified by:
setSpecific in interface org.opennms.netmgt.snmp.SnmpV1TrapBuilder
setTimeStamp
public void setTimeStamp(long timeStamp)
- Specified by:
setTimeStamp in interface org.opennms.netmgt.snmp.SnmpV1TrapBuilder
send
public void send(String destAddr,
int destPort,
String community)
throws Exception
- Specified by:
send in interface org.opennms.netmgt.snmp.SnmpTrapBuilder
- Throws:
Exception
sendTest
public void sendTest(String destAddr,
int destPort,
String community)
throws Exception
- Specified by:
sendTest in interface org.opennms.netmgt.snmp.SnmpTrapBuilder
- Throws:
Exception
addVarBind
public void addVarBind(org.opennms.netmgt.snmp.SnmpObjId name,
org.opennms.netmgt.snmp.SnmpValue value)
- Specified by:
addVarBind in interface org.opennms.netmgt.snmp.SnmpTrapBuilder
Copyright ? 2007. All Rights Reserved.