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 and Description |
---|
IfXTable(InetAddress address)
Constructs an IfXTable object that is used to collect the interface
elements from the remote agent.
|
IfXTable(InetAddress address,
Set<SnmpInstId> ifIndices)
Constructor for IfXTable.
|
Modifier and Type | Method and Description |
---|---|
protected IfXTableEntry |
createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
createTableEntry
|
String |
getIfAlias(int ifIndex)
getIfAlias
|
String |
getIfName(int ifIndex)
getIfName
|
void |
updateSnmpInterfaceData(OnmsNode node)
updateSnmpInterfaceData
|
void |
updateSnmpInterfaceData(OnmsNode node,
Integer ifIndex)
updateSnmpInterfaceData
|
getEntries, getEntry, getEntry, getInstances, reportFatalErr, reportGenErr, reportNonFatalErr, reportNoSuchNameErr, storeResult
buildNextPdu, getWalkRequests, handleWalkResponses, isFinished, setFailed, setMaxRepetitions, setMaxRetries, setTimedOut
failed, getCollectionTracker, getParent, reportTooBigErr, setFinished, setParent, timedOut
public IfXTable(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.
address
- TODOIfXTableEntry
public IfXTable(InetAddress address, Set<SnmpInstId> ifIndices)
Constructor for IfXTable.
address
- a InetAddress
object.ifIndices
- a Set
object.protected IfXTableEntry createTableEntry(SnmpObjId base, SnmpInstId inst, Object val)
createTableEntry
createTableEntry
in class SnmpTable<IfXTableEntry>
base
- a SnmpObjId
object.inst
- a SnmpInstId
object.val
- a Object
object.public String getIfName(int ifIndex)
getIfName
ifIndex
- a int.String
object.public String getIfAlias(int ifIndex)
getIfAlias
ifIndex
- a int.String
object.public void updateSnmpInterfaceData(OnmsNode node)
updateSnmpInterfaceData
node
- a OnmsNode
object.Copyright © 2021. All rights reserved.