Package org.onosproject.net.pi.model
Interface PiCounterModel
-
@Beta public interface PiCounterModel
Model of a counter in protocol-independent pipeline.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PiCounterModel.Unit
Counter unit.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PiCounterType
counterType()
Returns the type of counter.PiCounterId
id()
Returns the ID of this counter.long
size()
Returns the number of cells of this counter.PiTableId
table()
Returns the table ID associated with this counter.PiCounterModel.Unit
unit()
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
-
-