Package org.onosproject.net.pi.model
Interface PiMeterModel
-
@Beta public interface PiMeterModel
Model of a meter in a protocol-independent pipeline.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PiMeterModel.Unit
Meter rate unit.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PiMeterId
id()
Returns the ID of this meter.PiMeterType
meterType()
Returns the type of this meter.long
size()
Returns the number of cells of this meter.PiTableId
table()
Returns the table model associated with this meter.PiMeterModel.Unit
unit()
Returns the unit of this meter.
-
-
-
Method Detail
-
id
PiMeterId id()
Returns the ID of this meter.- Returns:
- meter ID
-
meterType
PiMeterType meterType()
Returns the type of this meter.- Returns:
- meter type
-
unit
PiMeterModel.Unit unit()
Returns the unit of this meter.- Returns:
- unit
-
table
PiTableId table()
Returns the table model associated with this meter. Meaningful only if the meter type isPiMeterType.DIRECT
.- Returns:
- table model
-
size
long size()
Returns the number of cells of this meter. Meaningful only if the meter type isPiMeterType.INDIRECT
.- Returns:
- size
-
-