Enum 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
      EXTENSION
      Signifies that an extension instruction will be used.
      GROUP
      Signifies that traffic should be sent out of a group.
      L0MODIFICATION
      Signifies that the traffic should be modified in L0 way.
      L1MODIFICATION
      Signifies that the traffic should be modified in L1 way.
      L2MODIFICATION
      Signifies that the traffic should be modified in L2 way.
      L3MODIFICATION
      Signifies that the traffic should be modified in L3 way.
      L4MODIFICATION
      Signifies that the traffic should be modified in L4 way.
      METADATA
      Signifies that metadata be attached to traffic.
      METER
      Signifies that traffic should be metered according to a meter.
      NOACTION
      Signifies that the traffic requires no action.
      OUTPUT
      Signifies that the traffic should be output to a port.
      PROTOCOL_INDEPENDENT
      Signifies that a protocol-independent instruction will be used.
      QUEUE
      Signifies that the traffic should be enqueued to an already-configured queue on a port.
      STAT_TRIGGER
      Signifies that statistics will be triggered.
      TABLE
      Signifies that the traffic should be passed to another table.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Instruction.Type valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        java.lang.NullPointerException - if the argument is null