Class IpAddressTable

    • Constructor Detail

      • IpAddressTable

        public IpAddressTable​(java.net.InetAddress address)

        Constructs an IpAddressTable 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:
        IpAddressTableEntry
      • IpAddressTable

        public IpAddressTable​(java.net.InetAddress address,
                              java.util.Set<java.net.InetAddress> inetAddresses,
                              java.util.Set<SnmpInstId> ipAddresses)

        Constructor for IpAddressTable.

        Parameters:
        address - a InetAddress object.
        ipAddresses - 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.
      • 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 String object.
      • getIpAddresses

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

        getIpAddresses

        Returns:
        a Set object.
      • createTable

        public static IpAddressTable createTable​(java.net.InetAddress address,
                                                 java.util.Set<java.net.InetAddress> ipAddresses)
      • getInstanceIds

        public static java.util.Set<SnmpInstId> getInstanceIds​(java.util.Set<java.net.InetAddress> ipAddresses)
      • getInstanceForAddress

        public static SnmpInstId getInstanceForAddress​(java.net.InetAddress address)