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 Object implements SnmpV1TrapBuilder
-
-
Constructor Summary
Constructors Constructor Description JoeSnmpV1TrapBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVarBind(SnmpObjId name, SnmpValue value)voidsend(String destAddr, int destPort, String community)voidsendTest(String destAddr, int destPort, String community)voidsetAgentAddress(InetAddress agentAddress)voidsetEnterprise(SnmpObjId enterpriseId)voidsetGeneric(int generic)voidsetSpecific(int specific)voidsetTimeStamp(long timeStamp)
-
-
-
Method Detail
-
setEnterprise
public void setEnterprise(SnmpObjId enterpriseId)
- Specified by:
setEnterprisein interfaceSnmpV1TrapBuilder
-
setAgentAddress
public void setAgentAddress(InetAddress agentAddress)
- Specified by:
setAgentAddressin interfaceSnmpV1TrapBuilder
-
setGeneric
public void setGeneric(int generic)
- Specified by:
setGenericin interfaceSnmpV1TrapBuilder
-
setSpecific
public void setSpecific(int specific)
- Specified by:
setSpecificin interfaceSnmpV1TrapBuilder
-
setTimeStamp
public void setTimeStamp(long timeStamp)
- Specified by:
setTimeStampin interfaceSnmpV1TrapBuilder- Parameters:
timeStamp- A timestamp value, in TimeTicks (centiseconds), not to exceed 2^32-1
-
send
public void send(String destAddr, int destPort, String community) throws Exception
- Specified by:
sendin interfaceSnmpTrapBuilder- Throws:
Exception
-
sendTest
public void sendTest(String destAddr, int destPort, String community) throws Exception
- Specified by:
sendTestin interfaceSnmpTrapBuilder- Throws:
Exception
-
addVarBind
public void addVarBind(SnmpObjId name, SnmpValue value)
- Specified by:
addVarBindin interfaceSnmpTrapBuilder
-
-