org.opennms.netmgt.linkd.snmp
Class CiscoVlanTable

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<CiscoVlanTableEntry>
              extended by org.opennms.netmgt.linkd.snmp.CiscoVlanTable
All Implemented Interfaces:
Iterable<CiscoVlanTableEntry>, Collection<CiscoVlanTableEntry>, Collectable

public class CiscoVlanTable
extends SnmpTable<CiscoVlanTableEntry>

CiscoVlanTable uses a SnmpSession to collect the Cisco VTP specific MIB VLAN table entries. It implements the SnmpHandler to receive notifications when a reply is received/error occurs in the SnmpSession used to send requests/receive replies.

Version:
$Id: $
Author:
Antonio Russo
See Also:
RFC1213

Field Summary
 
Fields inherited from class org.opennms.netmgt.snmp.CollectionTracker
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR
 
Constructor Summary
CiscoVlanTable(InetAddress address)
           Constructs an CiscoVlanTable object that is used to collect the vlan elements from the remote agent.
 
Method Summary
protected  CiscoVlanTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
          createTableEntry
 
Methods inherited from class org.opennms.netmgt.capsd.snmp.SnmpTable
add, addAll, clear, contains, containsAll, getEntries, isEmpty, iterator, remove, removeAll, reportGenErr, reportNoSuchNameErr, retainAll, size, storeResult, toArray, toArray
 
Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker
buildNextPdu, isFinished, setFailed, setMaxRepetitions, setTimedOut
 
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

CiscoVlanTable

public CiscoVlanTable(InetAddress address)

Constructs an CiscoVlanTable object that is used to collect the vlan elements from the remote agent. Once all the elements are collected, or there is an error in the collection the signaler object is notified to inform other threads.

Parameters:
address - a InetAddress object.
See Also:
CiscoVlanTableEntry
Method Detail

createTableEntry

protected CiscoVlanTableEntry createTableEntry(SnmpObjId base,
                                               SnmpInstId inst,
                                               Object val)

createTableEntry

Specified by:
createTableEntry in class SnmpTable<CiscoVlanTableEntry>
Parameters:
base - a SnmpObjId object.
inst - a SnmpInstId object.
val - a Object object.
Returns:
a T object.


Copyright © 2011. All Rights Reserved.