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, validate
public Snmp4JV1TrapInformation(InetAddress agent, String community, org.snmp4j.PDUv1 pdu)
public org.snmp4j.PDUv1 getPdu()
public InetAddress getTrapAddress()
getTrapAddress
in class TrapInformation
InetAddress
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 TrapInformation
public int getPduLength()
getPduLength
in class TrapInformation
public long getTimeStamp()
TrapInformation
getTimeStamp
in class TrapInformation
public TrapIdentity getTrapIdentity()
getTrapIdentity
in class TrapInformation
protected org.snmp4j.smi.VariableBinding getVarBindAt(int i)
public SnmpVarBindDTO getSnmpVarBindDTO(int i)
getSnmpVarBindDTO
in class TrapInformation
protected Integer getRequestId()
getRequestId
in class TrapInformation
Copyright © 2021. All rights reserved.