Package org.opennms.netmgt.snmp.snmp4j
Class Snmp4JTrapNotifier.Snmp4JV1TrapInformation
- java.lang.Object
-
- org.opennms.netmgt.snmp.TrapInformation
-
- org.opennms.netmgt.snmp.snmp4j.Snmp4JTrapNotifier.Snmp4JV1TrapInformation
-
- Enclosing class:
- Snmp4JTrapNotifier
public static class Snmp4JTrapNotifier.Snmp4JV1TrapInformation extends TrapInformation
-
-
Constructor Summary
Constructors Constructor Description Snmp4JV1TrapInformation(InetAddress agent, String community, org.snmp4j.PDUv1 pdu)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.snmp4j.PDUv1getPdu()Returns the Protocol Data Unit that was encapsulated within the SNMP Trap messageintgetPduLength()protected IntegergetRequestId()SnmpVarBindDTOgetSnmpVarBindDTO(int i)longgetTimeStamp()Get the SNMP TimeTicks value for the sysUpTime of the agent that generated the trap.InetAddressgetTrapAddress()TrapIdentitygetTrapIdentity()protected org.snmp4j.smi.VariableBindinggetVarBindAt(int i)StringgetVersion()StringtoString()-
Methods inherited from class org.opennms.netmgt.snmp.TrapInformation
getAgentAddress, getCommunity, getCreationTime, getLocation, getSystemId, setCreationTime, setLocation, setSystemId, validate
-
-
-
-
Constructor Detail
-
Snmp4JV1TrapInformation
public Snmp4JV1TrapInformation(InetAddress agent, String community, org.snmp4j.PDUv1 pdu)
-
-
Method Detail
-
getPdu
public org.snmp4j.PDUv1 getPdu()
Returns the Protocol Data Unit that was encapsulated within the SNMP Trap message
-
getTrapAddress
public InetAddress getTrapAddress()
- Specified by:
getTrapAddressin classTrapInformation- Returns:
- The
InetAddressof the agent that generated the trap as found in the SNMPv1 AgentAddress field. This can vary from the value ofTrapInformation.getAgentAddress()if the SNMPv1 trap has been forwarded.
-
getVersion
public String getVersion()
- Specified by:
getVersionin classTrapInformation
-
getPduLength
public int getPduLength()
- Specified by:
getPduLengthin classTrapInformation
-
getTimeStamp
public long getTimeStamp()
Description copied from class:TrapInformationGet the SNMP TimeTicks value for the sysUpTime of the agent that generated the trap. Note that the units for this value are 1/100ths of a second instead of milliseconds.- Specified by:
getTimeStampin classTrapInformation
-
getTrapIdentity
public TrapIdentity getTrapIdentity()
- Specified by:
getTrapIdentityin classTrapInformation
-
getVarBindAt
protected org.snmp4j.smi.VariableBinding getVarBindAt(int i)
-
getSnmpVarBindDTO
public SnmpVarBindDTO getSnmpVarBindDTO(int i)
- Specified by:
getSnmpVarBindDTOin classTrapInformation
-
getRequestId
protected Integer getRequestId()
- Specified by:
getRequestIdin classTrapInformation
-
-