Package org.onosproject.net.flow
Enum FlowRule.FlowRemoveReason
- java.lang.Object
-
- java.lang.Enum<FlowRule.FlowRemoveReason>
-
- org.onosproject.net.flow.FlowRule.FlowRemoveReason
-
- All Implemented Interfaces:
Serializable
,Comparable<FlowRule.FlowRemoveReason>
- Enclosing interface:
- FlowRule
public static enum FlowRule.FlowRemoveReason extends Enum<FlowRule.FlowRemoveReason>
Reason for flow parameter received from switches. Used to check reason parameter in flows.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE
EVICTION
GROUP_DELETE
HARD_TIMEOUT
IDLE_TIMEOUT
METER_DELETE
NO_REASON
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlowRule.FlowRemoveReason
parseShort(short reason)
Covert short to enum.static FlowRule.FlowRemoveReason
valueOf(String name)
Returns the enum constant of this type with the specified name.static FlowRule.FlowRemoveReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE_TIMEOUT
public static final FlowRule.FlowRemoveReason IDLE_TIMEOUT
-
HARD_TIMEOUT
public static final FlowRule.FlowRemoveReason HARD_TIMEOUT
-
DELETE
public static final FlowRule.FlowRemoveReason DELETE
-
GROUP_DELETE
public static final FlowRule.FlowRemoveReason GROUP_DELETE
-
METER_DELETE
public static final FlowRule.FlowRemoveReason METER_DELETE
-
EVICTION
public static final FlowRule.FlowRemoveReason EVICTION
-
NO_REASON
public static final FlowRule.FlowRemoveReason NO_REASON
-
-
Method Detail
-
values
public static FlowRule.FlowRemoveReason[] 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 (FlowRule.FlowRemoveReason c : FlowRule.FlowRemoveReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FlowRule.FlowRemoveReason 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
-
parseShort
public static FlowRule.FlowRemoveReason parseShort(short reason)
Covert short to enum.- Parameters:
reason
- remove reason in integer- Returns:
- reason in enum
-
-