Package org.onosproject.net.meter
Interface Meter
- 
- All Superinterfaces:
- Annotated,- PiTranslatable
 - All Known Subinterfaces:
- MeterEntry
 - All Known Implementing Classes:
- DefaultMeter
 
 public interface Meter extends PiTranslatable, Annotated Represents a generalized meter cell configuration to be deployed on a device.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceMeter.BuilderA meter builder.static classMeter.Unit
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ApplicationIdappId()The id of the application which created this meter.Collection<Band>bands()The collection of bands to apply on the dataplane.longbytesSeen()Number of bytes processed by this meter.DeviceIddeviceId()The target device for this meter.MeterIdid()Deprecated.in Nightingale release (version 1.13.0).booleanisBurst()Signals whether this meter applies to bursts only.longlife()The lifetime in seconds of this meter.MeterCellIdmeterCellId()Returns the meter cell identifier of this meter.longpacketsSeen()Number of packets processed by this meter.longreferenceCount()The number of flows pointing to this meter.MeterStatestate()Fetches the state of this meter.Meter.Unitunit()The unit used within this meter.- 
Methods inherited from interface org.onosproject.net.Annotatedannotations
 
- 
 
- 
- 
- 
Method Detail- 
deviceIdDeviceId deviceId() The target device for this meter.- Returns:
- a device id
 
 - 
id@Deprecated MeterId id() Deprecated.in Nightingale release (version 1.13.0). UsemeterCellId()instead.This meters id.- Returns:
- a meter id
 
 - 
meterCellIdMeterCellId meterCellId() Returns the meter cell identifier of this meter.- Returns:
- a meter identifier
 
 - 
appIdApplicationId appId() The id of the application which created this meter. Could be null if the meter is read from the controller southbound.- Returns:
- an application id
 
 - 
unitMeter.Unit unit() The unit used within this meter.- Returns:
- the unit
 
 - 
isBurstboolean isBurst() Signals whether this meter applies to bursts only.- Returns:
- a boolean
 
 - 
bandsCollection<Band> bands() The collection of bands to apply on the dataplane.- Returns:
- a collection of bands.
 
 - 
stateMeterState state() Fetches the state of this meter.- Returns:
- a meter state
 
 - 
lifelong life() The lifetime in seconds of this meter.- Returns:
- number of seconds
 
 - 
referenceCountlong referenceCount() The number of flows pointing to this meter.- Returns:
- a reference count
 
 - 
packetsSeenlong packetsSeen() Number of packets processed by this meter.- Returns:
- a packet count
 
 - 
bytesSeenlong bytesSeen() Number of bytes processed by this meter.- Returns:
- a byte count
 
 
- 
 
-