Package org.netxms.client.objects
Class Subnet
java.lang.Object
org.netxms.client.objects.AbstractObject
org.netxms.client.objects.GenericObject
org.netxms.client.objects.Subnet
- All Implemented Interfaces:
ZoneMember
Subnet object
-
Field Summary
Fields inherited from class org.netxms.client.objects.AbstractObject
accessList, alias, assetId, ASSETS, backupZoneProxyId, BUSINESSSERVICEROOT, CALCULATE_DEFAULT, CALCULATE_MOST_CRITICAL, CALCULATE_MULTIPLE_THRESHOLDS, CALCULATE_SINGLE_THRESHOLD, categoryId, children, comments, commentsSource, CONTEXT, creationTime, customAttributes, DASHBOARDROOT, dashboards, drillDownObjectId, fixedPropagatedStatus, flags, geolocation, guid, inheritAccessRights, inMaintenanceMode, isDeleted, maintenanceInitiatorId, mapImage, moduleData, nameOnMap, NETWORK, NETWORKMAPROOT, OBJECT_ACCESSPOINT, OBJECT_ASSET, OBJECT_ASSETGROUP, OBJECT_ASSETROOT, OBJECT_BUSINESSSERVICE, OBJECT_BUSINESSSERVICEPROTOTYPE, OBJECT_BUSINESSSERVICEROOT, OBJECT_CHASSIS, OBJECT_CLUSTER, OBJECT_COLLECTOR, OBJECT_CONDITION, OBJECT_CONTAINER, OBJECT_CUSTOM, OBJECT_DASHBOARD, OBJECT_DASHBOARDGROUP, OBJECT_DASHBOARDROOT, OBJECT_GENERIC, OBJECT_INTERFACE, OBJECT_MOBILEDEVICE, OBJECT_NETWORK, OBJECT_NETWORKMAP, OBJECT_NETWORKMAPGROUP, OBJECT_NETWORKMAPROOT, OBJECT_NETWORKSERVICE, OBJECT_NODE, OBJECT_RACK, OBJECT_SENSOR, OBJECT_SERVICEROOT, OBJECT_SUBNET, OBJECT_TEMPLATE, OBJECT_TEMPLATEGROUP, OBJECT_TEMPLATEROOT, OBJECT_VPNCONNECTOR, OBJECT_WIRELESSDOMAIN, OBJECT_ZONE, objectClass, objectId, objectName, parents, partialObject, pollStates, postalAddress, primaryZoneProxyId, PROPAGATE_DEFAULT, PROPAGATE_FIXED, PROPAGATE_RELATIVE, PROPAGATE_TRANSLATED, PROPAGATE_UNCHANGED, responsibleUsers, SERVICEROOT, session, status, statusCalculationMethod, statusPropagationMethod, statusShift, statusSingleThreshold, statusThresholds, statusTransformation, TEMPLATEROOT, trustedObjects, urls, ZONE0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet name of NetXMS object's class.Get all strings in objectint
Get number of bits in subnet maskint
Get ID of the zone this object belongs toGet name of the zone this object belongs toboolean
If this method returns true object can have visible alarms.boolean
If this method returns true object is allowed to be on custom network map.boolean
Check if this subnet is a point-to-point subnet as defined by RFC 3021.Methods inherited from class org.netxms.client.objects.AbstractObject
addString, areChildrenSynchronized, getAccessList, getAlias, getAllChildren, getAllChildren, getAllParents, getAllParents, getAssetId, getBackupZoneProxyId, getCategory, getCategoryId, getChildCount, getChildIdList, getChildren, getChildrenAsArray, getComments, getCommentsSource, getConfiguredNameOnMap, getCreationTime, getCustomAttribute, getCustomAttributes, getCustomAttributeValue, getCustomAttributeValueAsBoolean, getDashboards, getDrillDownObjectId, getEffectiveRights, getFixedPropagatedStatus, getGeolocation, getGuid, getIcon, getMaintenanceInitiatorId, getMapImage, getModuleData, getNameOnMap, getNameWithAlias, getObjectClass, getObjectId, getObjectName, getObjectNameWithPath, getParentChain, getParentCount, getParentIdList, getParents, getParentsAsArray, getPostalAddress, getPrimaryZoneProxyId, getResponsibleUsers, getStatus, getStatusCalculationMethod, getStatusPropagationMethod, getStatusShift, getStatusSingleThreshold, getStatusThresholds, getStatusTransformation, getTrustedObjects, getUrls, hasAccessibleChildren, hasChildren, hasCustomAttribute, hasDashboard, hashCode, hasParents, hasUrls, isChildOf, isChildOf, isDefaultImage, isDeleted, isDirectChildOf, isDirectParentOf, isInheritAccessRights, isInMaintenanceMode, isParentOf, isParentOf, isPartialObject, setSession
-
Constructor Details
-
Subnet
Create from NXCP message.- Parameters:
msg
- NXCP messagesession
- owning client session
-
-
Method Details
-
getNetworkAddress
- Returns:
- the networkAddress
-
getSubnetAddress
- Returns:
- the networkAddress
-
getSubnetMask
public int getSubnetMask()Get number of bits in subnet mask- Returns:
- number of bits in subnet mask
-
isPointToPoint
public boolean isPointToPoint()Check if this subnet is a point-to-point subnet as defined by RFC 3021.- Returns:
- true if this subnet is point-to-point subnet
-
getObjectClassName
Description copied from class:AbstractObject
Get name of NetXMS object's class.- Overrides:
getObjectClassName
in classAbstractObject
- Returns:
- Name of NetXMS object's class
- See Also:
-
isAllowedOnMap
public boolean isAllowedOnMap()Description copied from class:AbstractObject
If this method returns true object is allowed to be on custom network map. Default implementation always returns false.- Overrides:
isAllowedOnMap
in classAbstractObject
- Returns:
- true if object is allowed to be on custom network map
- See Also:
-
isAlarmsVisible
public boolean isAlarmsVisible()Description copied from class:AbstractObject
If this method returns true object can have visible alarms. Default implementation always returns false.- Overrides:
isAlarmsVisible
in classAbstractObject
- Returns:
- true if object can contain visible alarms
- See Also:
-
getZoneId
public int getZoneId()Description copied from interface:ZoneMember
Get ID of the zone this object belongs to- Specified by:
getZoneId
in interfaceZoneMember
- Returns:
- zone ID
- See Also:
-
getZoneName
Description copied from interface:ZoneMember
Get name of the zone this object belongs to- Specified by:
getZoneName
in interfaceZoneMember
- Returns:
- zone name
- See Also:
-
getStrings
Description copied from class:AbstractObject
Get all strings in object- Overrides:
getStrings
in classAbstractObject
- Returns:
- set of all strings in object
- See Also:
-