Class IpAddrTable

    • Constructor Detail

      • IpAddrTable

        public IpAddrTable​(java.net.InetAddress address)

        Constructs an IpAddrTable object that is used to collect the address 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.

        Parameters:
        address - TODO
        See Also:
        IpAddrTableEntry
      • IpAddrTable

        public IpAddrTable​(java.net.InetAddress address,
                           java.util.Set<SnmpInstId> ipAddrs)

        Constructor for IpAddrTable.

        Parameters:
        address - a InetAddress object.
        ipAddrs - a Set object.
    • Method Detail

      • getIfIndices

        public java.util.Set<java.lang.Integer> getIfIndices()

        getIfIndices

        Returns:
        a Set object.
      • getIfAddress

        public java.net.InetAddress getIfAddress​(int ifIndex)

        getIfAddress

        Parameters:
        ifIndex - a int.
        Returns:
        a InetAddress object.
      • getNetMask

        public java.net.InetAddress getNetMask​(int ifIndex)

        getNetMask

        Parameters:
        ifIndex - a int.
        Returns:
        a InetAddress object.
      • getNetMask

        public java.net.InetAddress getNetMask​(java.net.InetAddress address)

        getNetMask

        Parameters:
        address - a InetAddress object.
        Returns:
        a InetAddress object.
      • getIfIndex

        public java.lang.Integer getIfIndex​(java.net.InetAddress address)

        getIfIndex

        Parameters:
        address - a InetAddress object.
        Returns:
        a Integer object.
      • getEntryByIfIndex

        public IpAddrTableEntry getEntryByIfIndex​(int ifIndex)

        getEntryByIfIndex

        Parameters:
        ifIndex - a int.
        Returns:
        a IpAddrTableEntry object.
      • getEntry

        public IpAddrTableEntry getEntry​(java.net.InetAddress address)

        getEntry

        Parameters:
        address - a InetAddress object.
        Returns:
        a IpAddrTableEntry object.
      • updateIpInterfaceData

        public void updateIpInterfaceData​(OnmsNode node)

        updateIpInterfaceData

        Parameters:
        node - a OnmsNode object.
      • updateIpInterfaceData

        public boolean updateIpInterfaceData​(OnmsNode node,
                                             java.net.InetAddress ipAddr)

        updateIpInterfaceData

        Parameters:
        node - a OnmsNode object.
        ipAddr - a InetAddress object.
      • getIpAddresses

        public java.util.Set<java.lang.String> getIpAddresses()

        getIpAddresses

        Returns:
        a Set object.