org.opennms.netmgt.snmp
Class TrapInformation

java.lang.Object
  extended by 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


Constructor Summary
protected TrapInformation(InetAddress agent, String community, TrapProcessor trapProcessor)
           
 
Method Summary
protected  InetAddress getAgent()
          Returns the sending agent's internet address
protected  InetAddress getAgentAddress()
           
protected  String getCommunity()
          Returns the SNMP community string from the received packet.
protected abstract  int getPduLength()
           
protected abstract  long getTimeStamp()
           
protected abstract  InetAddress getTrapAddress()
           
protected abstract  TrapIdentity getTrapIdentity()
           
 TrapProcessor getTrapProcessor()
           
protected abstract  String getVersion()
           
protected  ThreadCategory log()
           
protected  void processTrap()
           
protected  void processVarBind(SnmpObjId name, SnmpValue value)
           
protected abstract  void processVarBindAt(int i)
           
protected  void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrapInformation

protected TrapInformation(InetAddress agent,
                          String community,
                          TrapProcessor trapProcessor)
Method Detail

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.