Class Subnet

    • Constructor Detail

      • Subnet

        public Subnet​(org.netxms.base.NXCPMessage msg,
                      NXCSession session)
        Parameters:
        msg -
    • Method Detail

      • getNetworkAddress

        public org.netxms.base.InetAddressEx getNetworkAddress()
        Returns:
        the networkAddress
      • getSubnetAddress

        public InetAddress 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
      • 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 class AbstractObject
        Returns:
        true if object is allowed to be on custom network map
      • 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 class AbstractObject
        Returns:
        true if object can contain visible alarms
      • getZoneId

        public long getZoneId()
        Description copied from interface: ZoneMember
        Get ID of the zone this object belongs to
        Specified by:
        getZoneId in interface ZoneMember
        Returns:
        zone ID
      • getZoneName

        public String getZoneName()
        Description copied from interface: ZoneMember
        Get name of the zone this object belongs to
        Specified by:
        getZoneName in interface ZoneMember
        Returns:
        zone name