Enum Instruction.Type
- java.lang.Object
-
- java.lang.Enum<Instruction.Type>
-
- org.onosproject.net.flow.instructions.Instruction.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Instruction.Type>
- Enclosing interface:
- Instruction
public static enum Instruction.Type extends java.lang.Enum<Instruction.Type>
Represents the type of traffic treatment.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXTENSIONSignifies that an extension instruction will be used.GROUPSignifies that traffic should be sent out of a group.L0MODIFICATIONSignifies that the traffic should be modified in L0 way.L1MODIFICATIONSignifies that the traffic should be modified in L1 way.L2MODIFICATIONSignifies that the traffic should be modified in L2 way.L3MODIFICATIONSignifies that the traffic should be modified in L3 way.L4MODIFICATIONSignifies that the traffic should be modified in L4 way.METADATASignifies that metadata be attached to traffic.METERSignifies that traffic should be metered according to a meter.NOACTIONSignifies that the traffic requires no action.OUTPUTSignifies that the traffic should be output to a port.PROTOCOL_INDEPENDENTSignifies that a protocol-independent instruction will be used.QUEUESignifies that the traffic should be enqueued to an already-configured queue on a port.STAT_TRIGGERSignifies that statistics will be triggered.TABLESignifies that the traffic should be passed to another table.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Instruction.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Instruction.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOACTION
public static final Instruction.Type NOACTION
Signifies that the traffic requires no action. In OF10, the behavior of NOACTION is DROP. In OF13, the behavior depends on current Action Set.
-
OUTPUT
public static final Instruction.Type OUTPUT
Signifies that the traffic should be output to a port.
-
GROUP
public static final Instruction.Type GROUP
Signifies that traffic should be sent out of a group.
-
QUEUE
public static final Instruction.Type QUEUE
Signifies that the traffic should be enqueued to an already-configured queue on a port.
-
METER
public static final Instruction.Type METER
Signifies that traffic should be metered according to a meter.
-
L0MODIFICATION
public static final Instruction.Type L0MODIFICATION
Signifies that the traffic should be modified in L0 way.
-
L1MODIFICATION
public static final Instruction.Type L1MODIFICATION
Signifies that the traffic should be modified in L1 way.
-
L2MODIFICATION
public static final Instruction.Type L2MODIFICATION
Signifies that the traffic should be modified in L2 way.
-
TABLE
public static final Instruction.Type TABLE
Signifies that the traffic should be passed to another table.
-
L3MODIFICATION
public static final Instruction.Type L3MODIFICATION
Signifies that the traffic should be modified in L3 way.
-
METADATA
public static final Instruction.Type METADATA
Signifies that metadata be attached to traffic.
-
L4MODIFICATION
public static final Instruction.Type L4MODIFICATION
Signifies that the traffic should be modified in L4 way.
-
PROTOCOL_INDEPENDENT
public static final Instruction.Type PROTOCOL_INDEPENDENT
Signifies that a protocol-independent instruction will be used.
-
EXTENSION
public static final Instruction.Type EXTENSION
Signifies that an extension instruction will be used.
-
STAT_TRIGGER
public static final Instruction.Type STAT_TRIGGER
Signifies that statistics will be triggered.
-
-
Method Detail
-
values
public static Instruction.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Instruction.Type c : Instruction.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Instruction.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-