public class JoeSnmpV1TrapBuilder extends Object implements SnmpV1TrapBuilder
Constructor and Description |
---|
JoeSnmpV1TrapBuilder() |
Modifier and Type | Method and Description |
---|---|
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) |
public void setEnterprise(SnmpObjId enterpriseId)
setEnterprise
in interface SnmpV1TrapBuilder
public void setAgentAddress(InetAddress agentAddress)
setAgentAddress
in interface SnmpV1TrapBuilder
public void setGeneric(int generic)
setGeneric
in interface SnmpV1TrapBuilder
public void setSpecific(int specific)
setSpecific
in interface SnmpV1TrapBuilder
public void setTimeStamp(long timeStamp)
setTimeStamp
in interface SnmpV1TrapBuilder
timeStamp
- A timestamp value, in TimeTicks (centiseconds), not to exceed 2^32-1public void send(String destAddr, int destPort, String community) throws Exception
send
in interface SnmpTrapBuilder
Exception
public void sendTest(String destAddr, int destPort, String community) throws Exception
sendTest
in interface SnmpTrapBuilder
Exception
public void addVarBind(SnmpObjId name, SnmpValue value)
addVarBind
in interface SnmpTrapBuilder
Copyright © 2021. All rights reserved.