Class InetAddressListElement


  • public class InetAddressListElement
    extends Object
    Element of IP address list. Can represent either subnet or address range.
    • Constructor Detail

      • InetAddressListElement

        public InetAddressListElement​(InetAddress baseAddress,
                                      InetAddress endAddress,
                                      long zoneUIN,
                                      long proxyId,
                                      String comment)
        Create new "range" element
        Parameters:
        baseAddress - base address
        endAddress - end address
        zoneUIN - zone UIN
        proxyId - proxy node ID
        comment - element comment
      • InetAddressListElement

        public InetAddressListElement​(InetAddress baseAddress,
                                      int maskBits,
                                      long zoneUIN,
                                      long proxyId,
                                      String comment)
        Create new "subnet" element
        Parameters:
        baseAddress - base address
        maskBits - mask bits
        zoneUIN - zone UIN
        proxyId - proxy node ID
        comment - element comment
      • InetAddressListElement

        protected InetAddressListElement​(org.netxms.base.NXCPMessage msg,
                                         long baseId)
        Create element from NXCP message
        Parameters:
        msg - NXCP message
        baseId - base variable ID
    • Method Detail

      • update

        public void update​(InetAddress baseAddress,
                           InetAddress endAddress,
                           long zoneUIN,
                           long proxyId,
                           String comment)
        Update object method
        Parameters:
        baseAddress - base address
        endAddress - end address
        zoneUIN - zone UIN
        proxyId - proxy node ID
        comment - element comment
      • update

        public void update​(InetAddress baseAddress,
                           int maskBits,
                           long zoneUIN,
                           long proxyId,
                           String comment)
        Update object method
        Parameters:
        baseAddress - base address
        maskBits - mask bits
        zoneUIN - zone UIN
        proxyId - proxy node ID
        comment - element comment
      • fillMessage

        public void fillMessage​(org.netxms.base.NXCPMessage msg,
                                long baseId)
        Fill NXCP message
        Parameters:
        msg - NXCP message
        baseId - object base id
      • getType

        public int getType()
        Returns:
        the type
      • getBaseAddress

        public InetAddress getBaseAddress()
        Returns:
        the baseAddress
      • getEndAddress

        public InetAddress getEndAddress()
        Returns:
        the endAddress
      • getMaskBits

        public int getMaskBits()
        Returns:
        the maskBits
      • getZoneUIN

        public long getZoneUIN()
        Returns:
        the zoneUIN
      • getProxyId

        public long getProxyId()
        Returns:
        the proxyId
      • getComment

        public String getComment()
        Returns:
        the comment
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isSubnet

        public boolean isSubnet()