Package org.onosproject.net.flow
Enum StatTriggerField
- java.lang.Object
-
- java.lang.Enum<StatTriggerField>
-
- org.onosproject.net.flow.StatTriggerField
-
- All Implemented Interfaces:
Serializable
,Comparable<StatTriggerField>
public enum StatTriggerField extends Enum<StatTriggerField>
Stat fields are supported default by OXS.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BYTE_COUNT
Number of bytes in flow entry.DURATION
Time flow entry has been alive.FLOW_COUNT
Number of aggregated flow entries.IDLE_TIME
Time flow entry has been idle.PACKET_COUNT
Number of packets in flow entry.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StatTriggerField
valueOf(String name)
Returns the enum constant of this type with the specified name.static StatTriggerField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DURATION
public static final StatTriggerField DURATION
Time flow entry has been alive. Unit indicates nanoseconds.
-
IDLE_TIME
public static final StatTriggerField IDLE_TIME
Time flow entry has been idle. Unit indicates nanoseconds.
-
FLOW_COUNT
public static final StatTriggerField FLOW_COUNT
Number of aggregated flow entries.
-
PACKET_COUNT
public static final StatTriggerField PACKET_COUNT
Number of packets in flow entry.
-
BYTE_COUNT
public static final StatTriggerField BYTE_COUNT
Number of bytes in flow entry.
-
-
Method Detail
-
values
public static StatTriggerField[] 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 (StatTriggerField c : StatTriggerField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatTriggerField 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
-
-