|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.snmp.CollectionTracker
org.opennms.netmgt.snmp.AggregateTracker
org.opennms.netmgt.capsd.snmp.SnmpTable<IfXTableEntry>
org.opennms.netmgt.capsd.snmp.IfXTable
public final class IfXTable
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.
| Field Summary |
|---|
| Fields inherited from class org.opennms.netmgt.snmp.CollectionTracker |
|---|
GEN_ERR, NO_ERR, NO_SUCH_NAME_ERR, TOO_BIG_ERR |
| Constructor Summary | |
|---|---|
IfXTable(InetAddress address)
Constructs an IfXTable object that is used to collect the interface elements from the remote agent. |
|
| Method Summary | |
|---|---|
protected IfXTableEntry |
createTableEntry(SnmpObjId base,
SnmpInstId inst,
Object val)
createTableEntry |
IfXTableEntry |
getEntry(int ifIndex)
getEntry |
String |
getIfAlias(int ifIndex)
getIfAlias |
Long |
getIfHighSpeed(int ifIndex)
getIfHighSpeed |
String |
getIfName(int ifIndex)
getIfName |
| 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 |
|---|
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| Method Detail |
|---|
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 IfXTableEntry getEntry(int ifIndex)
getEntry
ifIndex - a int.
IfXTableEntry object.public String getIfName(int ifIndex)
getIfName
ifIndex - a int.
String object.public String getIfAlias(int ifIndex)
getIfAlias
ifIndex - a int.
String object.public Long getIfHighSpeed(int ifIndex)
getIfHighSpeed
ifIndex - a int.
Long object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||