Package org.onosproject.net.pi.model
Interface PiCounterModel
-
@Beta public interface PiCounterModelModel of a counter in protocol-independent pipeline.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPiCounterModel.UnitCounter unit.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PiCounterTypecounterType()Returns the type of counter.PiCounterIdid()Returns the ID of this counter.longsize()Returns the number of cells of this counter.PiTableIdtable()Returns the table ID associated with this counter.PiCounterModel.Unitunit()Returns the unit of this counter.
-
-
-
Method Detail
-
id
PiCounterId id()
Returns the ID of this counter.- Returns:
- counter ID
-
counterType
PiCounterType counterType()
Returns the type of counter.- Returns:
- counter type
-
unit
PiCounterModel.Unit unit()
Returns the unit of this counter.- Returns:
- counter unit
-
table
PiTableId table()
Returns the table ID associated with this counter. Meaningful only if the counter type isPiCounterType.DIRECT.- Returns:
- table model
-
size
long size()
Returns the number of cells of this counter. Meaningful only if the counter type isPiCounterType.INDIRECT.- Returns:
- size
-
-