Enum PiPacketOperationType

    • 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​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null