Class 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.

    Author:
    Mike , Weave
    See Also:
    RFC2233
    • 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 - a InetAddress object.
        ifIndices - a Set object.
    • Method Detail

      • 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 - a OnmsNode object.
      • updateSnmpInterfaceData

        public void updateSnmpInterfaceData​(OnmsNode node,
                                            java.lang.Integer ifIndex)

        updateSnmpInterfaceData

        Parameters:
        node - a OnmsNode object.
        ifIndex - a Integer object.