Class IfXTable
- java.lang.Object
-
- org.opennms.netmgt.snmp.CollectionTracker
-
- org.opennms.netmgt.snmp.AggregateTracker
-
- org.opennms.netmgt.provision.service.snmp.SnmpTable<IfXTableEntry>
-
- org.opennms.netmgt.provision.service.snmp.IfXTable
-
- All Implemented Interfaces:
Collectable
,ProxiableTracker
public final class IfXTable extends SnmpTable<IfXTableEntry>
The IfXTable uses a SnmpSession to collect the entries in the remote agent's interface extensions table. It implements the SnmpHandler to receive notifications and handle errors associated with the data collection. Data is collected using a series of GETNEXT PDU request to walk multiple parts of the interface table at once. The number of SNMP packets should not exceed the number of interface + 1, assuming no lost packets or error conditions occur.
-
-
Constructor Summary
Constructors Constructor Description IfXTable(java.net.InetAddress address)
Constructs an IfXTable object that is used to collect the interface elements from the remote agent.IfXTable(java.net.InetAddress address, java.util.Set<SnmpInstId> ifIndices)
Constructor for IfXTable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IfXTableEntry
createTableEntry(SnmpObjId base, SnmpInstId inst, java.lang.Object val)
createTableEntryjava.lang.String
getIfAlias(int ifIndex)
getIfAliasjava.lang.String
getIfName(int ifIndex)
getIfNamevoid
updateSnmpInterfaceData(OnmsNode node)
updateSnmpInterfaceDatavoid
updateSnmpInterfaceData(OnmsNode node, java.lang.Integer ifIndex)
updateSnmpInterfaceData-
Methods inherited from class org.opennms.netmgt.provision.service.snmp.SnmpTable
getEntries, getEntry, getEntry, getInstances, reportFatalErr, reportGenErr, reportNonFatalErr, reportNoSuchNameErr, storeResult
-
Methods inherited from class org.opennms.netmgt.snmp.AggregateTracker
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
-
Methods inherited from class org.opennms.netmgt.snmp.CollectionTracker
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
-
-
-
-
Constructor Detail
-
IfXTable
public IfXTable(java.net.InetAddress address)
Constructs an IfXTable object that is used to collect the interface elements from the remote agent. Once all the interfaces are collected, or there is an error in the collection the signaler object is notified to inform other threads.
- Parameters:
address
- TODO- See Also:
IfXTableEntry
-
IfXTable
public IfXTable(java.net.InetAddress address, java.util.Set<SnmpInstId> ifIndices)
Constructor for IfXTable.
- Parameters:
address
- aInetAddress
object.ifIndices
- aSet
object.
-
-
Method Detail
-
createTableEntry
protected IfXTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, java.lang.Object val)
createTableEntry
- Specified by:
createTableEntry
in classSnmpTable<IfXTableEntry>
- Parameters:
base
- aSnmpObjId
object.inst
- aSnmpInstId
object.val
- aObject
object.- Returns:
- a T object.
-
getIfName
public java.lang.String getIfName(int ifIndex)
getIfName
- Parameters:
ifIndex
- a int.- Returns:
- a
String
object.
-
getIfAlias
public java.lang.String getIfAlias(int ifIndex)
getIfAlias
- Parameters:
ifIndex
- a int.- Returns:
- a
String
object.
-
updateSnmpInterfaceData
public void updateSnmpInterfaceData(OnmsNode node)
updateSnmpInterfaceData
- Parameters:
node
- aOnmsNode
object.
-
-