Package org.onosproject.net.meter
Enum MeterFailReason
- java.lang.Object
- 
- java.lang.Enum<MeterFailReason>
- 
- org.onosproject.net.meter.MeterFailReason
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<MeterFailReason>
 
 public enum MeterFailReason extends java.lang.Enum<MeterFailReason> Enum used to represent a meter failure condition.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description BAD_BANDBad band.BAD_BAND_VALUEBad value value.BAD_BURSTBad burst size value.BAD_RATEBad rate value.EXISTING_METERA meter with the same identifier already exists.INVALID_METERInvalid meter definition.OUT_OF_BANDSThe device does not support any more bands for this meter.OUT_OF_METERSThe device does not support any more meters.TIMEOUTThe operation for this meter installation timed out.UNKNOWNThe meter that was attempted to be modified is unknown.UNKNOWN_COMMANDUnknown command.UNKNOWN_DEVICEThe target device is unknown.UNKNOWN_FLAGSUnknown flags.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static MeterFailReasonvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MeterFailReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
EXISTING_METERpublic static final MeterFailReason EXISTING_METER A meter with the same identifier already exists. Essentially a duplicate meter exists.
 - 
OUT_OF_METERSpublic static final MeterFailReason OUT_OF_METERS The device does not support any more meters.
 - 
OUT_OF_BANDSpublic static final MeterFailReason OUT_OF_BANDS The device does not support any more bands for this meter.
 - 
UNKNOWNpublic static final MeterFailReason UNKNOWN The meter that was attempted to be modified is unknown.
 - 
TIMEOUTpublic static final MeterFailReason TIMEOUT The operation for this meter installation timed out.
 - 
INVALID_METERpublic static final MeterFailReason INVALID_METER Invalid meter definition.
 - 
UNKNOWN_DEVICEpublic static final MeterFailReason UNKNOWN_DEVICE The target device is unknown.
 - 
UNKNOWN_COMMANDpublic static final MeterFailReason UNKNOWN_COMMAND Unknown command.
 - 
UNKNOWN_FLAGSpublic static final MeterFailReason UNKNOWN_FLAGS Unknown flags.
 - 
BAD_RATEpublic static final MeterFailReason BAD_RATE Bad rate value.
 - 
BAD_BURSTpublic static final MeterFailReason BAD_BURST Bad burst size value.
 - 
BAD_BANDpublic static final MeterFailReason BAD_BAND Bad band.
 - 
BAD_BAND_VALUEpublic static final MeterFailReason BAD_BAND_VALUE Bad value value.
 
- 
 - 
Method Detail- 
valuespublic static MeterFailReason[] 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 (MeterFailReason c : MeterFailReason.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static MeterFailReason 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 name
- java.lang.NullPointerException- if the argument is null
 
 
- 
 
-