Class InetAddressListElement

java.lang.Object
org.netxms.client.InetAddressListElement

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

  • Constructor Details

    • InetAddressListElement

      public InetAddressListElement(InetAddress baseAddress, InetAddress endAddress, int 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, int 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(NXCPMessage msg, long baseId)
      Create element from NXCP message
      Parameters:
      msg - NXCP message
      baseId - base variable ID
  • Method Details

    • update

      public void update(InetAddress baseAddress, InetAddress endAddress, int 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, int 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(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 int getZoneUIN()
      Returns:
      the zoneUIN
    • getProxyId

      public long getProxyId()
      Returns:
      the proxyId
    • getComment

      public String getComment()
      Returns:
      the comment
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • isSubnet

      public boolean isSubnet()