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 SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionInetAddressListElement(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" elementprotectedInetAddressListElement(NXCPMessage msg, long baseId) Create element from NXCP message
- 
Method SummaryModifier and TypeMethodDescriptionbooleanvoidfillMessage(NXCPMessage msg, long baseId) Fill NXCP messageintlongintgetType()intinthashCode()booleanisSubnet()toString()voidupdate(InetAddress baseAddress, int maskBits, int zoneUIN, long proxyId, String comment) Update object methodvoidupdate(InetAddress baseAddress, InetAddress endAddress, int zoneUIN, long proxyId, String comment) Update object method
- 
Field Details- 
SUBNETpublic static final int SUBNET- See Also:
 
- 
RANGEpublic static final int RANGE- See Also:
 
 
- 
- 
Constructor Details- 
InetAddressListElementpublic 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
 
- 
InetAddressListElementpublic 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
 
- 
InetAddressListElementCreate element from NXCP message- Parameters:
- msg- NXCP message
- baseId- base variable ID
 
 
- 
- 
Method Details- 
updatepublic 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
 
- 
updatepublic 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
 
- 
fillMessageFill NXCP message- Parameters:
- msg- NXCP message
- baseId- object base id
 
- 
getTypepublic int getType()- Returns:
- the type
 
- 
getBaseAddress- Returns:
- the baseAddress
 
- 
getEndAddress- Returns:
- the endAddress
 
- 
getMaskBitspublic int getMaskBits()- Returns:
- the maskBits
 
- 
getZoneUINpublic int getZoneUIN()- Returns:
- the zoneUIN
 
- 
getProxyIdpublic long getProxyId()- Returns:
- the proxyId
 
- 
getComment- Returns:
- the comment
 
- 
toString
- 
hashCodepublic int hashCode()
- 
equals
- 
isSubnetpublic boolean isSubnet()
 
-