public enum ECodeMeterModFailed extends Enum<ECodeMeterModFailed> implements ErrorCode
ErrorType.METER_MOD_FAILED
error type.Enum Constant and Description |
---|
BAD_BAND
Band unsupported; Since 1.3.
|
BAD_BAND_VALUE
Band value unsupported; Since 1.3.
|
BAD_BURST
Burst size unsupported; Since 1.3.
|
BAD_COMMAND
Unsupported or unknown command; Since 1.3.
|
BAD_FLAGS
Flag configuration unsupported; Since 1.3.
|
BAD_RATE
Rate unsupported; Since 1.3.
|
INVALID_METER
Meter not added because the meter specified is invalid; Since 1.3.
|
METER_EXISTS
Meter not added because a meter ADD attempted to replace an
existing meter; Since 1.3.
|
OUT_OF_BANDS
The maximum number of properties for a meter has been exceeded;
Since 1.3.
|
OUT_OF_METERS
No more meters available; Since 1.3.
|
UNKNOWN
Unspecified error; Since 1.3.
|
UNKNOWN_METER
Meter not modified because a meter MODIFY attempted to modify
a non-existent meter; Since 1.3.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
ErrorType |
parentType()
Returns the parent error type for this error code.
|
static void |
validate(ECodeMeterModFailed code,
ProtocolVersion pv)
Validates the given error code against the specified protocol version,
silently returning if all is well, throwing an exception otherwise.
|
static ECodeMeterModFailed |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECodeMeterModFailed[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECodeMeterModFailed UNKNOWN
public static final ECodeMeterModFailed METER_EXISTS
public static final ECodeMeterModFailed INVALID_METER
public static final ECodeMeterModFailed UNKNOWN_METER
public static final ECodeMeterModFailed BAD_COMMAND
public static final ECodeMeterModFailed BAD_FLAGS
public static final ECodeMeterModFailed BAD_RATE
public static final ECodeMeterModFailed BAD_BURST
public static final ECodeMeterModFailed BAD_BAND
public static final ECodeMeterModFailed BAD_BAND_VALUE
public static final ECodeMeterModFailed OUT_OF_METERS
public static final ECodeMeterModFailed OUT_OF_BANDS
public static ECodeMeterModFailed[] values()
for (ECodeMeterModFailed c : ECodeMeterModFailed.values()) System.out.println(c);
public static ECodeMeterModFailed valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ErrorType parentType()
ErrorCode
parentType
in interface ErrorCode
public int getCode(ProtocolVersion pv)
OfpCodeBasedEnum
getCode
in interface OfpCodeBasedEnum
pv
- the protocol versionpublic static void validate(ECodeMeterModFailed code, ProtocolVersion pv)
code
- the codepv
- the protocol versionVersionMismatchException
- if the code is not defined in the
given protocol versionCopyright © 2015. All Rights Reserved.