org.opennms.netmgt.capsd.snmp
Class SnmpTable<T extends SnmpTableEntry>

java.lang.Object
  extended by org.opennms.netmgt.snmp.CollectionTracker
      extended by org.opennms.netmgt.snmp.AggregateTracker
          extended by org.opennms.netmgt.capsd.snmp.SnmpTable<T>
All Implemented Interfaces:
Collectable
Direct Known Subclasses:
CdpCacheTable, CiscoVlanTable, Dot1dBasePortTable, Dot1dStpPortTable, Dot1dTpFdbTable, Dot1qStaticVlanTable, ExtremeNetworkVlanTable, IfTable, IfXTable, IntelVlanTable, IpAddrTable, IpNetToMediaTable, IpRouteTable, QBridgeDot1dTpFdbTable, RapidCityVlanTable, ThreeComVlanTable

public abstract class SnmpTable<T extends SnmpTableEntry>
extends AggregateTracker


Field Summary
 
Fields inherited from class org.opennms.netmgt.snmp.CollectionTracker
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR
 
Constructor Summary
protected SnmpTable(InetAddress address, String tableName, NamedSnmpVar[] columns)
           
 
Method Summary
protected abstract  T createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
           
 List<T> getEntries()
           
protected  void reportGenErr(String msg)
           
protected  void reportNoSuchNameErr(String msg)
           
protected  void storeResult(SnmpObjId base, SnmpInstId inst, SnmpValue val)
           
 
Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker
buildNextPdu, isFinished, setFailed, setMaxRepititions, setTimedOut
 
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportTooBigErr, setParent, timedOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpTable

protected SnmpTable(InetAddress address,
                    String tableName,
                    NamedSnmpVar[] columns)
Method Detail

storeResult

protected void storeResult(SnmpObjId base,
                           SnmpInstId inst,
                           SnmpValue val)
Overrides:
storeResult in class CollectionTracker

createTableEntry

protected abstract T createTableEntry(SnmpObjId base,
                                      SnmpInstId inst,
                                      Object val)

getEntries

public List<T> getEntries()

reportGenErr

protected void reportGenErr(String msg)
Overrides:
reportGenErr in class CollectionTracker

reportNoSuchNameErr

protected void reportNoSuchNameErr(String msg)
Overrides:
reportNoSuchNameErr in class CollectionTracker


Copyright © 2009. All Rights Reserved.