org.opennms.netmgt.snmp.joesnmp
Class V2TrapInformation
java.lang.Object
org.opennms.netmgt.snmp.TrapInformation
org.opennms.netmgt.snmp.joesnmp.V2TrapInformation
- All Implemented Interfaces:
- TrapNotification
public class V2TrapInformation
- extends TrapInformation
V2 Trap information object for processing by the queue reader
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
V2TrapInformation
public 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.
- Parameters:
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 data
getPduLength
protected int getPduLength()
- Specified by:
getPduLength in class TrapInformation
getTimeStamp
protected long getTimeStamp()
- Specified by:
getTimeStamp in class TrapInformation
getTrapIdentity
protected TrapIdentity getTrapIdentity()
- Specified by:
getTrapIdentity in class TrapInformation
getTrapAddress
public InetAddress getTrapAddress()
- Specified by:
getTrapAddress in class TrapInformation
getVarBindAt
protected SnmpVarBind getVarBindAt(int index)
getVersion
protected String getVersion()
- Specified by:
getVersion in class TrapInformation
validate
protected void validate()
- Overrides:
validate in class TrapInformation
processVarBindAt
protected void processVarBindAt(int i)
- Specified by:
processVarBindAt in class TrapInformation
Copyright © 2008. All Rights Reserved.