org.opennms.netmgt.snmp
Class TrapInformation

java.lang.Object
  extended by org.opennms.netmgt.snmp.TrapInformation
All Implemented Interfaces:
TrapNotification

public abstract class TrapInformation
extends java.lang.Object
implements TrapNotification


Constructor Summary
protected TrapInformation(java.net.InetAddress agent, java.lang.String community, TrapProcessor trapProcessor)
           
 
Method Summary
protected  java.net.InetAddress getAgent()
          Returns the sending agent's internet address
protected  java.net.InetAddress getAgentAddress()
           
protected  java.lang.String getCommunity()
          Returns the SNMP community string from the received packet.
protected abstract  int getPduLength()
           
protected abstract  long getTimeStamp()
           
protected abstract  java.net.InetAddress getTrapAddress()
           
protected abstract  TrapIdentity getTrapIdentity()
           
 TrapProcessor getTrapProcessor()
           
protected abstract  java.lang.String getVersion()
           
protected  org.apache.log4j.Category 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(java.net.InetAddress agent,
                          java.lang.String community,
                          TrapProcessor trapProcessor)
Method Detail

getTrapAddress

protected abstract java.net.InetAddress getTrapAddress()

getAgent

protected java.net.InetAddress getAgent()
Returns the sending agent's internet address


getCommunity

protected java.lang.String getCommunity()
Returns the SNMP community string from the received packet.


validate

protected void validate()

log

protected org.apache.log4j.Category log()

getAgentAddress

protected java.net.InetAddress getAgentAddress()

getTrapProcessor

public TrapProcessor getTrapProcessor()
Specified by:
getTrapProcessor in interface TrapNotification

getVersion

protected abstract java.lang.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 © 2007. All Rights Reserved.