Package org.onosproject.net.pi.runtime
Class PiAction
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiAction
-
- All Implemented Interfaces:
PiTableAction
@Beta public final class PiAction extends Object implements PiTableAction
Instance of an action, and its runtime parameters, of a table entry in a protocol-independent pipeline.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPiAction.BuilderBuilder of protocol-independent actions.-
Nested classes/interfaces inherited from interface org.onosproject.net.pi.runtime.PiTableAction
PiTableAction.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PiAction.Builderbuilder()Returns an action builder.booleanequals(Object o)inthashCode()PiActionIdid()Return the identifier of this action.Collection<PiActionParam>parameters()Returns all runtime parameters of this action.StringtoString()PiTableAction.Typetype()Type of this action.
-
-
-
Method Detail
-
type
public PiTableAction.Type type()
Description copied from interface:PiTableActionType of this action.- Specified by:
typein interfacePiTableAction- Returns:
- a type
-
id
public PiActionId id()
Return the identifier of this action.- Returns:
- action identifier
-
parameters
public Collection<PiActionParam> parameters()
Returns all runtime parameters of this action. Return an empty collection if the action doesn't take any runtime parameters.- Returns:
- list of byte sequences
-
builder
public static PiAction.Builder builder()
Returns an action builder.- Returns:
- a new builder
-
-