Package org.onosproject.net.packet
Enum PacketInFilter.FilterAction
- java.lang.Object
-
- java.lang.Enum<PacketInFilter.FilterAction>
-
- org.onosproject.net.packet.PacketInFilter.FilterAction
-
- All Implemented Interfaces:
Serializable
,Comparable<PacketInFilter.FilterAction>
- Enclosing interface:
- PacketInFilter
public static enum PacketInFilter.FilterAction extends Enum<PacketInFilter.FilterAction>
Types of filter action applied to incoming packets.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FILTER_DISABLED
Signifies that this filter is disabled.FILTER_INVALID
Signifies that the filter applied is invalid filter.FILTER_VALID
Signifies that filter applied is a valid filter.PACKET_ALLOW
Signifies that the packet is allowed to be processed.PACKET_BLOCKED
Signifies that the packet processing is blocked as the threshold has crossed.PACKET_DENY
Signifies that the packet is denied from being processed as it crossed the maxCounter.WINDOW_BLOCKED
Signifies that the current window for packet processing is full and the window is blocked for packet processing.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PacketInFilter.FilterAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static PacketInFilter.FilterAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PACKET_ALLOW
public static final PacketInFilter.FilterAction PACKET_ALLOW
Signifies that the packet is allowed to be processed.
-
PACKET_DENY
public static final PacketInFilter.FilterAction PACKET_DENY
Signifies that the packet is denied from being processed as it crossed the maxCounter.
-
FILTER_VALID
public static final PacketInFilter.FilterAction FILTER_VALID
Signifies that filter applied is a valid filter.
-
FILTER_DISABLED
public static final PacketInFilter.FilterAction FILTER_DISABLED
Signifies that this filter is disabled.
-
WINDOW_BLOCKED
public static final PacketInFilter.FilterAction WINDOW_BLOCKED
Signifies that the current window for packet processing is full and the window is blocked for packet processing.
-
PACKET_BLOCKED
public static final PacketInFilter.FilterAction PACKET_BLOCKED
Signifies that the packet processing is blocked as the threshold has crossed.
-
FILTER_INVALID
public static final PacketInFilter.FilterAction FILTER_INVALID
Signifies that the filter applied is invalid filter.
-
-
Method Detail
-
values
public static PacketInFilter.FilterAction[] 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 (PacketInFilter.FilterAction c : PacketInFilter.FilterAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PacketInFilter.FilterAction 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 nameNullPointerException
- if the argument is null
-
-