public class CiscoVlanTable extends VlanTableBasic
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.
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR
DEFAULT_VLAN_INDEX, DEFAULT_VLAN_NAME, DEFAULT_VLAN_STATUS
Constructor and Description |
---|
CiscoVlanTable(InetAddress address)
Constructs an CiscoVlanTable object that is used to collect the vlan
elements from the remote agent.
|
Modifier and Type | Method and Description |
---|---|
protected CiscoVlanTableEntry |
createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
createTableEntry
|
List<OnmsVlan> |
getVlansForSnmpCollection() |
add, addAll, clear, contains, containsAll, getEntries, isEmpty, iterator, remove, removeAll, reportGenErr, reportNoSuchNameErr, retainAll, size, storeResult, toArray, toArray
buildNextPdu, isFinished, setFailed, setMaxRepetitions, setTimedOut
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
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.
address
- a InetAddress
object.CiscoVlanTableEntry
protected CiscoVlanTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntry
createTableEntry
in class SnmpTable<SnmpStore>
base
- a SnmpObjId
object.inst
- a SnmpInstId
object.val
- a Object
object.public List<OnmsVlan> getVlansForSnmpCollection()
getVlansForSnmpCollection
in interface VlanTable
getVlansForSnmpCollection
in class VlanTableBasic
Copyright © 2015. All rights reserved.