org.opennms.netmgt.snmp
Class TrapInformation
java.lang.Object
org.opennms.netmgt.snmp.TrapInformation
- All Implemented Interfaces:
- TrapNotification
- Direct Known Subclasses:
- Snmp4JTrapNotifier.Snmp4JV1TrapInformation, Snmp4JTrapNotifier.Snmp4JV2TrapInformation, V1TrapInformation, V2TrapInformation
public abstract class TrapInformation
- extends Object
- implements TrapNotification
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrapInformation
protected TrapInformation(InetAddress agent,
String community,
TrapProcessor trapProcessor)
getTrapAddress
protected abstract InetAddress getTrapAddress()
getAgent
protected InetAddress getAgent()
- Returns the sending agent's internet address
getCommunity
protected String getCommunity()
- Returns the SNMP community string from the received packet.
validate
protected void validate()
log
protected ThreadCategory log()
getAgentAddress
protected InetAddress getAgentAddress()
getTrapProcessor
public TrapProcessor getTrapProcessor()
- Specified by:
getTrapProcessor in interface TrapNotification
getVersion
protected abstract String getVersion()
getPduLength
protected abstract int getPduLength()
getTimeStamp
protected abstract long getTimeStamp()
getTrapIdentity
protected abstract TrapIdentity getTrapIdentity()
processTrap
protected void processTrap()
processVarBindAt
protected abstract void processVarBindAt(int i)
processVarBind
protected void processVarBind(SnmpObjId name,
SnmpValue value)
Copyright © 2011. All Rights Reserved.