Package org.netxms.client
Class InetAddressListElement
java.lang.Object
org.netxms.client.InetAddressListElement
Element of IP address list. Can represent either subnet or address range.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionInetAddressListElement
(InetAddress baseAddress, int maskBits, int zoneUIN, long proxyId, String comment) Create new "subnet" elementInetAddressListElement
(InetAddress baseAddress, InetAddress endAddress, int zoneUIN, long proxyId, String comment) Create new "range" elementprotected
InetAddressListElement
(NXCPMessage msg, long baseId) Create element from NXCP message -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
fillMessage
(NXCPMessage msg, long baseId) Fill NXCP messageint
long
int
getType()
int
int
hashCode()
boolean
isSubnet()
toString()
void
update
(InetAddress baseAddress, int maskBits, int zoneUIN, long proxyId, String comment) Update object methodvoid
update
(InetAddress baseAddress, InetAddress endAddress, int zoneUIN, long proxyId, String comment) Update object method
-
Field Details
-
SUBNET
public static final int SUBNET- See Also:
-
RANGE
public static final int RANGE- See Also:
-
-
Constructor Details
-
InetAddressListElement
public InetAddressListElement(InetAddress baseAddress, InetAddress endAddress, int zoneUIN, long proxyId, String comment) Create new "range" element- Parameters:
baseAddress
- base addressendAddress
- end addresszoneUIN
- zone UINproxyId
- proxy node IDcomment
- element comment
-
InetAddressListElement
public InetAddressListElement(InetAddress baseAddress, int maskBits, int zoneUIN, long proxyId, String comment) Create new "subnet" element- Parameters:
baseAddress
- base addressmaskBits
- mask bitszoneUIN
- zone UINproxyId
- proxy node IDcomment
- element comment
-
InetAddressListElement
Create element from NXCP message- Parameters:
msg
- NXCP messagebaseId
- 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 addressendAddress
- end addresszoneUIN
- zone UINproxyId
- proxy node IDcomment
- element comment
-
update
public void update(InetAddress baseAddress, int maskBits, int zoneUIN, long proxyId, String comment) Update object method- Parameters:
baseAddress
- base addressmaskBits
- mask bitszoneUIN
- zone UINproxyId
- proxy node IDcomment
- element comment
-
fillMessage
Fill NXCP message- Parameters:
msg
- NXCP messagebaseId
- object base id
-
getType
public int getType()- Returns:
- the type
-
getBaseAddress
- Returns:
- the baseAddress
-
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
- Returns:
- the comment
-
toString
-
hashCode
public int hashCode() -
equals
-
isSubnet
public boolean isSubnet()
-