Enum Policer.Unit
- java.lang.Object
-
- java.lang.Enum<Policer.Unit>
-
- org.onosproject.net.behaviour.trafficcontrol.Policer.Unit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Policer.Unit>
- Enclosing interface:
- Policer
public static enum Policer.Unit extends java.lang.Enum<Policer.Unit>
Unit of traffic used by this policer.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description B_PER_SEC
Byte per second.KB_PER_SEC
KByte per second.MB_PER_SEC
MByte per second.PKTS_PER_SEC
Packets per second.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Policer.Unit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Policer.Unit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PKTS_PER_SEC
public static final Policer.Unit PKTS_PER_SEC
Packets per second.
-
B_PER_SEC
public static final Policer.Unit B_PER_SEC
Byte per second.
-
KB_PER_SEC
public static final Policer.Unit KB_PER_SEC
KByte per second.
-
MB_PER_SEC
public static final Policer.Unit MB_PER_SEC
MByte per second.
-
-
Method Detail
-
values
public static Policer.Unit[] 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 (Policer.Unit c : Policer.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Policer.Unit 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 namejava.lang.NullPointerException
- if the argument is null
-
-