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.
      • 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.