public static class Snmp4JTrapNotifier.Snmp4JV2TrapInformation extends TrapInformation
Constructor and Description |
---|
Snmp4JV2TrapInformation(InetAddress agent,
String community,
org.snmp4j.PDU pdu,
TrapProcessor trapProcessor)
Constructs a new trap information instance that contains the sending
agent, the community string, and the Protocol Data Unit.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getPduLength() |
protected Integer |
getRequestId() |
protected long |
getTimeStamp() |
InetAddress |
getTrapAddress() |
protected TrapIdentity |
getTrapIdentity() |
protected org.snmp4j.smi.VariableBinding |
getVarBindAt(int index) |
protected String |
getVersion() |
protected void |
processVarBindAt(int i) |
String |
toString() |
protected void |
validate() |
getAgent, getAgentAddress, getCommunity, getTrapProcessor, processTrap, processVarBind
public Snmp4JV2TrapInformation(InetAddress agent, String community, org.snmp4j.PDU pdu, TrapProcessor trapProcessor)
agent
- The sending agent's addresscommunity
- The community string from the SNMP packet.pdu
- The encapsulated Protocol Data Unit.trapProcessor
- The trap processor used to process the trap dataprotected int getPduLength()
getPduLength
in class TrapInformation
protected long getTimeStamp()
getTimeStamp
in class TrapInformation
protected TrapIdentity getTrapIdentity()
getTrapIdentity
in class TrapInformation
public InetAddress getTrapAddress()
getTrapAddress
in class TrapInformation
protected org.snmp4j.smi.VariableBinding getVarBindAt(int index)
protected String getVersion()
getVersion
in class TrapInformation
protected void validate()
validate
in class TrapInformation
protected void processVarBindAt(int i)
processVarBindAt
in class TrapInformation
protected Integer getRequestId()
getRequestId
in class TrapInformation
Copyright © 2017. All rights reserved.