Package org.onosproject.net.meter
Enum MeterEvent.Type
- java.lang.Object
-
- java.lang.Enum<MeterEvent.Type>
-
- org.onosproject.net.meter.MeterEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MeterEvent.Type>
- Enclosing class:
- MeterEvent
public static enum MeterEvent.Type extends java.lang.Enum<MeterEvent.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description METER_ADD_REQ
A meter addition was requested.METER_ADDED
A meter was finally added to device.METER_REFERENCE_COUNT_ZERO
Meter is not used by any flow.METER_REM_REQ
A meter removal was requested.METER_REMOVED
A meter was finally removed from device.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MeterEvent.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MeterEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
METER_ADD_REQ
public static final MeterEvent.Type METER_ADD_REQ
A meter addition was requested.
-
METER_REM_REQ
public static final MeterEvent.Type METER_REM_REQ
A meter removal was requested.
-
METER_ADDED
public static final MeterEvent.Type METER_ADDED
A meter was finally added to device.
-
METER_REMOVED
public static final MeterEvent.Type METER_REMOVED
A meter was finally removed from device.
-
METER_REFERENCE_COUNT_ZERO
public static final MeterEvent.Type METER_REFERENCE_COUNT_ZERO
Meter is not used by any flow. It can be deleted.
-
-
Method Detail
-
values
public static MeterEvent.Type[] 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 (MeterEvent.Type c : MeterEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MeterEvent.Type 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
-
-