@Beta
public interface PiTableModel
Modifier and Type | Method and Description |
---|---|
Optional<PiActionModel> |
action(PiActionId actionId)
Returns the action model associated with the given ID, if present.
|
PiActionProfileModel |
actionProfile()
Returns the model of the action profile that implements this table.
|
Collection<PiActionModel> |
actions()
Returns the actions supported by this table.
|
Optional<PiActionModel> |
constDefaultAction()
Returns the model of the constant default action associated with this
table, if any.
|
Collection<PiCounterModel> |
counters()
Returns a collection of direct counters associated to this table.
|
boolean |
hasDefaultMutableParams()
Returns true if the default action has mutable parameters that can be
changed at runtime, false otherwise.
|
PiTableId |
id()
Returns the ID of this table.
|
boolean |
isConstantTable()
Returns true if the table is populated with static entries that cannot be
modified by the control plane at runtime.
|
Optional<PiMatchFieldModel> |
matchField(PiMatchFieldId matchFieldId)
Returns the match field model associated with the given ID, if present.
|
Collection<PiMatchFieldModel> |
matchFields()
Returns the collection of match fields supported by this table.
|
long |
maxSize()
Returns the maximum number of entries supported by this table.
|
Collection<PiMeterModel> |
meters()
Returns a collection of direct meters associated to this table.
|
boolean |
supportsAging()
Returns true if this table supports aging, false otherwise.
|
PiTableType |
tableType()
Returns the type of this table.
|
PiTableId id()
PiTableType tableType()
PiActionProfileModel actionProfile()
PiTableType.INDIRECT
,
otherwise returns null.long maxSize()
Collection<PiCounterModel> counters()
Collection<PiMeterModel> meters()
boolean supportsAging()
Collection<PiMatchFieldModel> matchFields()
Collection<PiActionModel> actions()
Optional<PiActionModel> constDefaultAction()
boolean hasDefaultMutableParams()
boolean isConstantTable()
Optional<PiActionModel> action(PiActionId actionId)
actionId
- action IDOptional<PiMatchFieldModel> matchField(PiMatchFieldId matchFieldId)
matchFieldId
- match field ID