public static class Snmp4JTrapNotifier.Snmp4JV1TrapInformation extends TrapInformation
| Constructor and Description |
|---|
Snmp4JV1TrapInformation(InetAddress agent,
String community,
org.snmp4j.PDUv1 pdu) |
| Modifier and Type | Method and Description |
|---|---|
org.snmp4j.PDUv1 |
getPdu()
Returns the Protocol Data Unit that was encapsulated within the SNMP
Trap message
|
int |
getPduLength() |
protected Integer |
getRequestId() |
SnmpVarBindDTO |
getSnmpVarBindDTO(int i) |
long |
getTimeStamp()
Get the SNMP TimeTicks value for the sysUpTime of the agent that
generated the trap.
|
InetAddress |
getTrapAddress() |
TrapIdentity |
getTrapIdentity() |
protected org.snmp4j.smi.VariableBinding |
getVarBindAt(int i) |
String |
getVersion() |
String |
toString() |
getAgentAddress, getCommunity, getCreationTime, getLocation, getSystemId, setCreationTime, setLocation, setSystemId, validatepublic Snmp4JV1TrapInformation(InetAddress agent, String community, org.snmp4j.PDUv1 pdu)
public org.snmp4j.PDUv1 getPdu()
public InetAddress getTrapAddress()
getTrapAddress in class TrapInformationInetAddress of the agent that generated the trap
as found in the SNMPv1 AgentAddress field. This can vary from the value
of TrapInformation.getAgentAddress() if the SNMPv1 trap has been forwarded.public String getVersion()
getVersion in class TrapInformationpublic int getPduLength()
getPduLength in class TrapInformationpublic long getTimeStamp()
TrapInformationgetTimeStamp in class TrapInformationpublic TrapIdentity getTrapIdentity()
getTrapIdentity in class TrapInformationprotected org.snmp4j.smi.VariableBinding getVarBindAt(int i)
public SnmpVarBindDTO getSnmpVarBindDTO(int i)
getSnmpVarBindDTO in class TrapInformationprotected Integer getRequestId()
getRequestId in class TrapInformationCopyright © 2020. All rights reserved.