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 long |
getTimeStamp() |
InetAddress |
getTrapAddress() |
protected TrapIdentity |
getTrapIdentity() |
protected org.snmp4j.smi.VariableBinding |
getVarBindAt(int index) |
protected String |
getVersion() |
protected void |
processVarBindAt(int i) |
protected void |
validate() |
getAgent, getAgentAddress, getCommunity, getTrapProcessor, processTrap, processVarBindpublic 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 TrapInformationprotected long getTimeStamp()
getTimeStamp in class TrapInformationprotected TrapIdentity getTrapIdentity()
getTrapIdentity in class TrapInformationpublic InetAddress getTrapAddress()
getTrapAddress in class TrapInformationprotected org.snmp4j.smi.VariableBinding getVarBindAt(int index)
protected String getVersion()
getVersion in class TrapInformationprotected void validate()
validate in class TrapInformationprotected void processVarBindAt(int i)
processVarBindAt in class TrapInformationCopyright © 2015. All rights reserved.