Package org.netxms.client
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.
-
-
Constructor Summary
Constructors Modifier Constructor Description InetAddressListElement(InetAddress baseAddress, int maskBits, long zoneUIN, long proxyId, String comment)Create new "subnet" elementInetAddressListElement(InetAddress baseAddress, InetAddress endAddress, long zoneUIN, long proxyId, String comment)Create new "range" elementprotectedInetAddressListElement(org.netxms.base.NXCPMessage msg, long baseId)Create element from NXCP message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)voidfillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP messageInetAddressgetBaseAddress()StringgetComment()InetAddressgetEndAddress()intgetMaskBits()longgetProxyId()intgetType()longgetZoneUIN()inthashCode()booleanisSubnet()StringtoString()voidupdate(InetAddress baseAddress, int maskBits, long zoneUIN, long proxyId, String comment)Update object methodvoidupdate(InetAddress baseAddress, InetAddress endAddress, long zoneUIN, long proxyId, String comment)Update object method
-
-
-
Field Detail
-
SUBNET
public static final int SUBNET
- See Also:
- Constant Field Values
-
RANGE
public static final int RANGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InetAddressListElement
public InetAddressListElement(InetAddress baseAddress, InetAddress endAddress, long 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, long zoneUIN, long proxyId, String comment)
Create new "subnet" element- Parameters:
baseAddress- base addressmaskBits- mask bitszoneUIN- zone UINproxyId- proxy node IDcomment- element comment
-
InetAddressListElement
protected InetAddressListElement(org.netxms.base.NXCPMessage msg, long baseId)Create element from NXCP message- Parameters:
msg- NXCP messagebaseId- 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 addressendAddress- end addresszoneUIN- zone UINproxyId- proxy node IDcomment- element comment
-
update
public void update(InetAddress baseAddress, int maskBits, long zoneUIN, long proxyId, String comment)
Update object method- Parameters:
baseAddress- base addressmaskBits- mask bitszoneUIN- zone UINproxyId- proxy node IDcomment- element comment
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg, long baseId)Fill NXCP message- Parameters:
msg- NXCP messagebaseId- 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
-
isSubnet
public boolean isSubnet()
-
-