Package org.onosproject.net.pi.runtime
Enum PiMeterBandType
- java.lang.Object
-
- java.lang.Enum<PiMeterBandType>
-
- org.onosproject.net.pi.runtime.PiMeterBandType
-
- All Implemented Interfaces:
Serializable
,Comparable<PiMeterBandType>
@Beta public enum PiMeterBandType extends Enum<PiMeterBandType>
Type of meter band of a protocol-independent pipeline.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
humanReadableName()
Returns a human readable representation of this PI meter band type (useful for logging).static PiMeterBandType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PiMeterBandType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMITTED
public static final PiMeterBandType COMMITTED
Committed band config.
-
PEAK
public static final PiMeterBandType PEAK
Peak band config.
-
-
Method Detail
-
values
public static PiMeterBandType[] 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 (PiMeterBandType c : PiMeterBandType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PiMeterBandType 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
-
humanReadableName
public String humanReadableName()
Returns a human readable representation of this PI meter band type (useful for logging).- Returns:
- string
-
-