Class DefaultMeterFeatures

  • All Implemented Interfaces:
    MeterFeatures

    public final class DefaultMeterFeatures
    extends Object
    implements MeterFeatures
    Default implementation of MeterFeatures.
    • Method Detail

      • deviceId

        public DeviceId deviceId()
        Description copied from interface: MeterFeatures
        Return the device id to which this meter features apply.
        Specified by:
        deviceId in interface MeterFeatures
        Returns:
        the device id
      • maxMeter

        public long maxMeter()
        Description copied from interface: MeterFeatures
        Returns the maximum number of meters accepted by the device.
        Specified by:
        maxMeter in interface MeterFeatures
        Returns:
        the maximum meter value.
      • startIndex

        public long startIndex()
        Description copied from interface: MeterFeatures
        Returns the start index (inclusive) of the meters.
        Specified by:
        startIndex in interface MeterFeatures
        Returns:
        the start index
      • endIndex

        public long endIndex()
        Description copied from interface: MeterFeatures
        Returns the end index (inclusive) of the meters.
        Specified by:
        endIndex in interface MeterFeatures
        Returns:
        the end index
      • isBurstSupported

        public boolean isBurstSupported()
        Description copied from interface: MeterFeatures
        Returns if burst size is available.
        Specified by:
        isBurstSupported in interface MeterFeatures
        Returns:
        burst availability
      • isStatsSupported

        public boolean isStatsSupported()
        Description copied from interface: MeterFeatures
        Returns if statistics collection is available.
        Specified by:
        isStatsSupported in interface MeterFeatures
        Returns:
        statistics availability
      • maxBands

        public short maxBands()
        Description copied from interface: MeterFeatures
        Returns the maximum bands per meter.
        Specified by:
        maxBands in interface MeterFeatures
        Returns:
        the max bands value
      • maxColor

        public short maxColor()
        Description copied from interface: MeterFeatures
        Returns the maximum colors value for DiffServ operation.
        Specified by:
        maxColor in interface MeterFeatures
        Returns:
        the maximum colors value.
      • features

        public Set<MeterFeaturesFlag> features()
        Description copied from interface: MeterFeatures
        Returns features flags that supported for meter actions by device.
        Specified by:
        features in interface MeterFeatures
        Returns:
        meter features flags otherwise empty set.