Package org.opennms.netmgt.snmp.joesnmp
Class JoeSnmpV1TrapBuilder
- java.lang.Object
-
- org.opennms.netmgt.snmp.joesnmp.JoeSnmpV1TrapBuilder
-
- All Implemented Interfaces:
SnmpTrapBuilder
,SnmpV1TrapBuilder
public class JoeSnmpV1TrapBuilder extends java.lang.Object implements SnmpV1TrapBuilder
-
-
Constructor Summary
Constructors Constructor Description JoeSnmpV1TrapBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVarBind(SnmpObjId name, SnmpValue value)
void
send(java.lang.String destAddr, int destPort, java.lang.String community)
void
sendTest(java.lang.String destAddr, int destPort, java.lang.String community)
void
setAgentAddress(java.net.InetAddress agentAddress)
void
setEnterprise(SnmpObjId enterpriseId)
void
setGeneric(int generic)
void
setSpecific(int specific)
void
setTimeStamp(long timeStamp)
-
-
-
Method Detail
-
setEnterprise
public void setEnterprise(SnmpObjId enterpriseId)
- Specified by:
setEnterprise
in interfaceSnmpV1TrapBuilder
-
setAgentAddress
public void setAgentAddress(java.net.InetAddress agentAddress)
- Specified by:
setAgentAddress
in interfaceSnmpV1TrapBuilder
-
setGeneric
public void setGeneric(int generic)
- Specified by:
setGeneric
in interfaceSnmpV1TrapBuilder
-
setSpecific
public void setSpecific(int specific)
- Specified by:
setSpecific
in interfaceSnmpV1TrapBuilder
-
setTimeStamp
public void setTimeStamp(long timeStamp)
- Specified by:
setTimeStamp
in interfaceSnmpV1TrapBuilder
- Parameters:
timeStamp
- A timestamp value, in TimeTicks (centiseconds), not to exceed 2^32-1
-
send
public void send(java.lang.String destAddr, int destPort, java.lang.String community) throws java.lang.Exception
- Specified by:
send
in interfaceSnmpTrapBuilder
- Throws:
java.lang.Exception
-
sendTest
public void sendTest(java.lang.String destAddr, int destPort, java.lang.String community) throws java.lang.Exception
- Specified by:
sendTest
in interfaceSnmpTrapBuilder
- Throws:
java.lang.Exception
-
addVarBind
public void addVarBind(SnmpObjId name, SnmpValue value)
- Specified by:
addVarBind
in interfaceSnmpTrapBuilder
-
-