Class DefaultMeter

    • Method Detail

      • deviceId

        public DeviceId deviceId()
        Description copied from interface: Meter
        The target device for this meter.
        Specified by:
        deviceId in interface Meter
        Returns:
        a device id
      • id

        public MeterId id()
        Description copied from interface: Meter
        This meters id.
        Specified by:
        id in interface Meter
        Returns:
        a meter id
      • meterCellId

        public MeterCellId meterCellId()
        Description copied from interface: Meter
        Returns the meter cell identifier of this meter.
        Specified by:
        meterCellId in interface Meter
        Returns:
        a meter identifier
      • appId

        public ApplicationId appId()
        Description copied from interface: Meter
        The id of the application which created this meter. Could be null if the meter is read from the controller southbound.
        Specified by:
        appId in interface Meter
        Returns:
        an application id
      • unit

        public Meter.Unit unit()
        Description copied from interface: Meter
        The unit used within this meter.
        Specified by:
        unit in interface Meter
        Returns:
        the unit
      • isBurst

        public boolean isBurst()
        Description copied from interface: Meter
        Signals whether this meter applies to bursts only.
        Specified by:
        isBurst in interface Meter
        Returns:
        a boolean
      • bands

        public Collection<Band> bands()
        Description copied from interface: Meter
        The collection of bands to apply on the dataplane.
        Specified by:
        bands in interface Meter
        Returns:
        a collection of bands.
      • state

        public MeterState state()
        Description copied from interface: Meter
        Fetches the state of this meter.
        Specified by:
        state in interface Meter
        Returns:
        a meter state
      • life

        public long life()
        Description copied from interface: Meter
        The lifetime in seconds of this meter.
        Specified by:
        life in interface Meter
        Returns:
        number of seconds
      • referenceCount

        public long referenceCount()
        Description copied from interface: Meter
        The number of flows pointing to this meter.
        Specified by:
        referenceCount in interface Meter
        Returns:
        a reference count
      • packetsSeen

        public long packetsSeen()
        Description copied from interface: Meter
        Number of packets processed by this meter.
        Specified by:
        packetsSeen in interface Meter
        Returns:
        a packet count
      • bytesSeen

        public long bytesSeen()
        Description copied from interface: Meter
        Number of bytes processed by this meter.
        Specified by:
        bytesSeen in interface Meter
        Returns:
        a byte count
      • setState

        public void setState​(MeterState state)
        Description copied from interface: MeterEntry
        Updates the state of this meter.
        Specified by:
        setState in interface MeterEntry
        Parameters:
        state - a meter state
      • setLife

        public void setLife​(long life)
        Description copied from interface: MeterEntry
        Set the amount of time the meter has existed in seconds.
        Specified by:
        setLife in interface MeterEntry
        Parameters:
        life - number of seconds
      • setReferenceCount

        public void setReferenceCount​(long count)
        Description copied from interface: MeterEntry
        Sets the number of flows which are using this meter.
        Specified by:
        setReferenceCount in interface MeterEntry
        Parameters:
        count - a reference count.
      • setProcessedPackets

        public void setProcessedPackets​(long packets)
        Description copied from interface: MeterEntry
        Updates the number of packets seen by this meter.
        Specified by:
        setProcessedPackets in interface MeterEntry
        Parameters:
        packets - a packet count.
      • setProcessedBytes

        public void setProcessedBytes​(long bytes)
        Description copied from interface: MeterEntry
        Updates the number of bytes seen by the meter.
        Specified by:
        setProcessedBytes in interface MeterEntry
        Parameters:
        bytes - a byte counter.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object