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 class
PiAction.Builder
Builder 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.Builder
builder()
Returns an action builder.boolean
equals(Object o)
int
hashCode()
PiActionId
id()
Return the identifier of this action.Collection<PiActionParam>
parameters()
Returns all runtime parameters of this action.String
toString()
PiTableAction.Type
type()
Type of this action.
-
-
-
Method Detail
-
type
public PiTableAction.Type type()
Description copied from interface:PiTableAction
Type of this action.- Specified by:
type
in 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
-
-