public class V2TrapInformation extends TrapInformation
Constructor and Description |
---|
V2TrapInformation(InetAddress agent,
String community,
SnmpPduPacket 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() |
protected InetAddress |
getTrapAddress() |
protected TrapIdentity |
getTrapIdentity() |
protected String |
getVersion() |
protected void |
processVarBindAt(int i) |
String |
toString() |
protected void |
validate() |
getAgent, getAgentAddress, getCommunity, getTrapProcessor, processTrap, processVarBind
public V2TrapInformation(InetAddress agent, String community, SnmpPduPacket 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
protected InetAddress getTrapAddress()
getTrapAddress
in class TrapInformation
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.