Package org.onosproject.net.pi.model
Enum PiPacketOperationType
- java.lang.Object
-
- java.lang.Enum<PiPacketOperationType>
-
- org.onosproject.net.pi.model.PiPacketOperationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PiPacketOperationType>
@Beta public enum PiPacketOperationType extends java.lang.Enum<PiPacketOperationType>
Type of packet operation in a protocol-independent pipeline.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PACKET_IN
Represents a packet-in, i.e.PACKET_OUT
Represents a packet-out, i.e.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PiPacketOperationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PiPacketOperationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PACKET_OUT
public static final PiPacketOperationType PACKET_OUT
Represents a packet-out, i.e. a packet generated by the control plane, optionally encapsulated with control information and sent through a network device port.
-
PACKET_IN
public static final PiPacketOperationType PACKET_IN
Represents a packet-in, i.e. a packet originated at the data plane, optionally encapsulated with control information and sent to the controller for further inspection.
-
-
Method Detail
-
values
public static PiPacketOperationType[] 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 (PiPacketOperationType c : PiPacketOperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PiPacketOperationType 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
-
-